1. 05 Feb, 2004 7 commits
    • Scrollbar.java (next_scrollbar_number): New field. · bc1ec7f7
      2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* java/awt/Scrollbar.java (next_scrollbar_number): New field.
      	(Scrollbar (int, int, int, int, int)): Make default page
      	increment 10.
      	(setValues): Only call peer.setValues if one of the values has
      	changed.
      	(generateName): New method.
      	(getUniqueLong): New method.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
      	(range_scrollbar): Remove structure.
      	(post_adjustment_event): Remove function.
      	(post_change_event): Accept jobject argument.
      	(create): Cast jints to gdoubles.  Round scrollbar values to the
      	nearest integer.  Clamp min, max and value settings.
      	(connectJObject): Connect hook to widget->window.
      	(connectSignals): Remove range_scrollbar structure variables.
      	Remove "move-slider" connection.  Pass global peer reference to
      	"value-changed" callback.
      	(setLineIncrement): Cast jint value to gdouble.
      	(setPageIncrement): Likewise.
      	(setValues): Likewise.  Clamp min, max and value settings.
      
      From-SVN: r77332
      Thomas Fitzsimmons committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 693dcd3d
      	* javax/swing/AbstractCellEditor.java
      	(getCellEditorValue): Removed.
      	* javax/swing/Box.java: Reformated.
      	(serialVersionUID): New field.
      	* javax/swing/ButtonGroup.java:
      	Removed some weird whitespace.
      	* javax/swing/CellEditor.java: Reformated.
      	* javax/swing/CellRendererPane.java
      	(serialVersionUID): New field.
      	(AccessibleCellRendererPaneserialVersionUID): New field.
      	* javax/swing/DefaultListModel.java
      	(serialVersionUID): New field.
      	* javax/swing/JEditorPane.java
      	(serialVersionUID): New field.
      	(setPage): Throws IOException.
      	(addHyperlinkListener): Implemented.
      	(removeHyperlinkListener): Implemented.
      	(getHyperlinkListener): New method.
      	* javax/swing/JFileChooser.java
      	(serialVersionUID): New field.
      	(AccessibleJFileChooser.serialVersionUID): New field.
      	(addActionListener): Implemented.
      	(removeActionListener): Implemented.
      	(getActionListeners): New method.
      	* javax/swing/JFormattedTextField.java
      	(serialVersionUID): New field.
      	(AbstractFormatter.serialVersionUID): New field.
      	(clone): Throws CloneNotSupportedException
      	(setEditValid): Add missing argument.
      	(stringToValue): Throws ParseExcpetion.
      	(valueToString): Throws ParseException.
      	(commitEdit): Throws ParseException.
      	* javax/swing/JLabel.java
      	(serialVersionUID): New field.
      	* javax/swing/JList.java
      	(serialVersionUID): New field.
      	(addListSelectionListener): Reformated.
      	(removeListSelectionListener): Reformated.
      	(getListSelectionListeners): New method.
      	* javax/swing/colorchooser/AbstractColorChooserPanel.java:
      	Reformated.
      	(serialVersionUID): New field.
      	* javax/swing/table/AbstractTableModel.java
      	(getValueAt): Removed.
      	(getColumnCount): Removed.
      	(getRowCount): Removed.
      
      From-SVN: r77329
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 2d168657
      	* java/awt/datatransfer/DataFlavor.java
      	(imageFlavor): Javadoc added.
      	(javaJVMLocalObjectType): Fixed.
      
      From-SVN: r77328
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 7959d598
      	* java/lang/Thread.java
      	(Thread): Reordered.
      	(setContextClassLoader): Fixed javadoc comment.
      	(setPriority): Reordered.
      	(yield): Reordered.
      	(initialize_native): Reordered.
      	(gen_name): Reordered.
      
      From-SVN: r77327
      Michael Koch committed
    • Thread.java: Reordered fields... · 5ad13654
      2004-02-05  Michael Koch  <konqueror@gmx.de>
      
      	* java/lang/Thread.java: Reordered fields, reformated much code,
      	no functional changes, some variables renamed, javadoc comments
      	merged.
      
      From-SVN: r77322
      Michael Koch committed
    • Deflater.java, [...]: Reformated and javadoc comments merged from classpath. · 6d0c7d7b
      2004-02-05  Michael Koch  <konqueror@gmx.de>
      
      	* java/util/zip/Deflater.java,
      	java/util/zip/DeflaterOutputStream.java,
      	java/util/zip/GZIPInputStream.java:
      	Reformated and javadoc comments merged from classpath.
      
      From-SVN: r77319
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 99814868
      	* gnu/java/nio/NIOServerSocket.java
      	(impl): Unused, removed.
      	* gnu/java/nio/SocketChannelImpl.java
      	(finnishConnect): Don't throw NoConnectionPendingException if not
      	connected or no connection pending.
      
      From-SVN: r77317
      Michael Koch committed
  2. 04 Feb, 2004 3 commits
  3. 03 Feb, 2004 2 commits
    • GtkListPeer.java, [...]: Fix handling of alias methods... · b6d3cb37
      2004-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkListPeer.java,
      	java/awt/BorderLayout.java, java/awt/CardLayout.java,
      	java/awt/CheckboxGroup.java, java/awt/Choice.java,
      	java/awt/Component.java, java/awt/Container.java,
      	java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
      	java/awt/LayoutManager2.java, java/awt/List.java,
      	java/awt/Menu.java, java/awt/MenuBar.java,
      	java/awt/MenuItem.java, java/awt/Polygon.java,
      	java/awt/Rectangle.java, java/awt/ScrollPane.java,
      	java/awt/Scrollbar.java, java/awt/TextArea.java,
      	java/awt/TextField.java,
      	java/awt/image/renderable/RenderContext.java,
      	javax/swing/JApplet.java: Fix handling of alias methods, where a
      	method has been deprecated in favour of a new one with the same
      	funtion but a different name.  Put the method implementation in
      	the deprecated method and have the new method call the
      	deprecated one.  Make all other code call the new method.
      
      From-SVN: r77178
      Thomas Fitzsimmons committed
    • * gnu/java/nio/DatagramChannelImpl.java · 8696d927
      	(inChannelOperation): New field.
      	(isInChannelOperation): New accessor.
      	(setInChannelOperation): New modifier.
      	(receive): Use capacity() - position() of destination
      	buffer instead of remaining(). Set and reset our "in
      	channel operation indicator" before and after delegating
      	the receive to our datagram socket. Removed testing code.
      	Update destination buffer's current position if it is
      	backed by a byte array (hasArray() is true).
      	(send): Set and reset our "in channel operation indicator"
      	before and after delegating the send to our datagram socket.
      	Removed testing code. Update source buffer's current position
      	if it is backed by a byte array (hasArray() is true).
      	* gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
      	Use capacity() - position() of destination buffer instead
      	of remaining().
      	* java/net/DatagramSocket.java (receive): Don't throw an
      	IllegalBlockingModeException if we have a non-blocking
      	channel which initiated this operation.
      	(send): Likewise.
      
      From-SVN: r77173
      Mohan Embar committed
  4. 02 Feb, 2004 1 commit
  5. 01 Feb, 2004 1 commit
  6. 30 Jan, 2004 3 commits
    • configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. · a1ddb355
      2004-01-30  Michael Koch  <konqueror@gmx.de>
      
      	* configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
      	* configure: Regenerated.
      	* glib-2.0.m4: Removed.
      	* gtk-2.0.m4: Removed.
      	* libart.m4: Removed.
      	* pkg.m4: New file.
      
      From-SVN: r76993
      Michael Koch committed
    • * gnu/java/net/PlainSocketImpl.java · 7dcc98e2
      	(inChannelOperation): New field.
      	(isInChannelOperation): New accessor.
      	(setInChannelOperation): New modifier.
      	* gnu/java/nio/ServerSocketChannelImpl.java
      	(accept): Set and reset our server socket's PlainSocketImpl's
      	"in channel operation" indicator before and after delegating
      	the accept to our server socket.
      	* gnu/java/nio/SocketChannelImpl.java
      	(connect): Set and reset our socket's PlainSocketImpl's "in channel
      	operation" indicator before and after delegating the operation to
      	our socket.
      	(read): Likewise.
      	(write): Likewise.
      	* java/net/ServerSocket.java (implAccept): Don't throw an
      	IllegalBlockingModeException if we have a non-blocking
      	channel which initiated this accept operation.
      	* java/net/Socket.java (connect): Don't throw an
      	IllegalBlockingModeException if we have a non-blocking
      	channel which initiated this connect operation.
      	* java/nio/channels/spi/AbstractSelectableChannel.java
      	(configureBlocking): Only call implConfigureBlocking() if
      	the desired blocking mode is different from our current one.
      
      From-SVN: r76956
      Mohan Embar committed
    • BufferedReader.java (sbuf): New field. · ae30b3b2
      	* java/io/BufferedReader.java (sbuf): New field.
      	(readLine): Use String.valueOf instead of new String() as per
      	Per Bothner's suggestion. Use instance sbuf field instead of a
      	local StringBuffer instance.
      	* java/io/InputStreamReader.java (read(char[],int,int)): Pass the
      	caller's buffer to refill().
      	(read(void)): Pass our internal work buffer to refill if our
      	input queue is empty.
      	(refill): Changed return type to int. Use the specified buffer
      	instead of our work buffer as per Bryce McKinlay's suggestion.
      	Return the number of characters read or -1 for EOF.
      
      From-SVN: r76927
      Mohan Embar committed
  7. 29 Jan, 2004 5 commits
  8. 28 Jan, 2004 3 commits
    • 2004-01-28 Michael Koch <konqueror@gmx.de> · a54ca8cf
      	* gnu/java/lang/ClassHelper.java
      	(getPackagePortion): Removed.
      
      From-SVN: r76809
      Michael Koch committed
    • 2004-01-28 Michael Koch <konqueror@gmx.de> · 4f90e1c5
      	* javax/swing/JComponent.java
      	(listenerList): Initalize globally.
      	(ancestor_list): Removed.
      	(veto_list): Removed.
      	(change_list): Removed.
      	(get_veto_list): Removed.
      	(get_change_list): Removed.
      	(get_ancestor_list): Removed.
      	(removeAncestorListener): Reimplemented.
      	(removePropertyChangeListener): Likewise.
      	(removeVetoableChangeListener): Likewise.
      	(addAncestorListener): Likewise.
      	(addPropertyChangeListener): Likewise.
      	(addVetoableChangeListener): Likewise.
      	(getListeners): New method.
      	(getAncestorListeners): Likewise.
      	(getVetoableChangeListeners): Likewise.
      	(fireVetoableChange): Throws PropertyVetoException.
      	* javax/swing/JEditorPane.java
      	(JEditorPane): Throws IOException.
      
      From-SVN: r76802
      Michael Koch committed
    • 2004-01-28 David Jee <djee@redhat.com> · 796e87a2
      	* gnu/java/awt/peer/gtk/GtkFramePeer.java
      	(create): Set the default foreground color to
      	java.awt.SystemColor.windowText.
      
      From-SVN: r76792
      David Jee committed
  9. 27 Jan, 2004 10 commits
    • 2004-01-27 Michael Koch <konqueror@gmx.de> · 272c310d
      	* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
      	* gnu/java/awt/peer/gtk/GdkGlyphVector.java:
      	Reindented to merge with classpath.
      
      From-SVN: r76757
      Michael Koch committed
    • 2004-01-27 David Jee <djee@redhat.com> · f2919ef3
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(addExposeFilter): Handle GtkFramePeer separately.
      	(removeExposeFilter): Likewise.
      
      From-SVN: r76751
      David Jee committed
    • 2004-01-27 Michael Koch <konqueror@gmx.de> · 128d8364
      	* gnu/java/net/protocol/http/Connection.java
      	(getOutputStream): Fixed typo.
      
      From-SVN: r76748
      Michael Koch committed
    • 2004-01-27 Michael Koch <konqueror@gmx.de> · f79b7708
      	* java/lang/Class.java
      	(getConstructor): Removed SecurityException from throws clause.
      	(_getConstructors): Likewise.
      	(getConstructors): Likewise.
      	(getDeclaredConstructor): Likewise.
      	(getDeclaredClasses): Likewise.
      	(getDeclaredConstructors): Likewise.
      	(getDeclaredField): Likewise.
      	(getDeclaredMethod): Likewise.
      	(getDeclaredMethods): Likewise.
      	(getField): Likewise.
      	(getMethod): Likewise.
      	(getMethods): Likewise.
      
      From-SVN: r76747
      Michael Koch committed
    • 2004-01-27 Kim Ho <kho@redhat.com> · e300e74f
              * gnu/java/awt/peer/gtk/GtkFramePeer.java
              (removeMenuBarPeer): Remove MenuBarPeer argument.
              * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
              (dispose): Call native method.
              * java/awt/Frame.java (setMenuBar): Create and remove
              MenuBar peers only if the Frame has a peer.
              (addNotify): Create the MenuBar peer if one exists.
              (removeNotify): Remove MenuBar peer if one exists.
              * java/awt/Menu.java: Fix imports.
              (addNotify): Don't use full class name.
              (removeNotify): Call removeNotify on all children.
              * java/awt/MenuBar.java (removeNotify): Call
              removeNotify on all children.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (removeMenuBarPeer): Remove MenuBarPeer argument.
              Iterate through children to find the Frame's MenuBar.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
              New file.
              (dispose): Remove references to the MenuComponent.
      
      From-SVN: r76740
      Kim Ho committed
    • AbstractCellEditor.java: Reformated. · 80d4281f
      2004-01-27  Michael Koch  <konqueror@gmx.de>
      
      	* javax/swing/AbstractCellEditor.java: Reformated.
      	* javax/swing/DefaultListSelectionModel.java
      	(listenerList): Made protected.
      	(addListSelectionListener): Javadoc added.
      	(removeListSelectionListener): Likewise.
      	(getListeners): Likewise.
      	(getListSelectionListeners): Likewise.
      	* javax/swing/JComboBox.java: Merged copyright year.
      	* javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
      
      From-SVN: r76737
      Michael Koch committed
    • AbstractCellEditor.java: Reformated. · d6c7ebd5
      2004-01-27  Michael Koch  <konqueror@gmx.de>
      
      	* javax/swing/AbstractCellEditor.java: Reformated.
      	* javax/swing/DefaultListSelectionModel.java
      	(listenerList): Made protected.
      	(addListSelectionListener): Javadoc added.
      	(removeListSelectionListener): Likewise.
      	(getListeners): Likewise.
      	(getListSelectionListeners): Likewise.
      	* javax/swing/JComboBox.java: Merged copyright year.
      	* javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
      
      From-SVN: r76736
      Michael Koch committed
    • JTableHeader.java: Extend JComponent · dbc2d642
      2004-01-26  Andrew Haley  <aph@redhat.com>
      
              * javax/swing/table/JTableHeader.java: Extend JComponent
      
      From-SVN: r76733
      Andrew Haley committed
    • GtkFramePeer.java (setMenuBar): Fix spacing. · f2565037
      2004-01-26  Kim Ho  <kho@redhat.com>
      
              * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
              Fix spacing.
      
      From-SVN: r76730
      Kim Ho committed
    • GtkFramePeer.java (moveLayout): New method. · 57e13917
      2004-01-26  Kim Ho  <kho@redhat.com>
      
              * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
              method.
              (setMenuBar): Shift the Gtk layout up/down by the MenuBar
              height and let the Layout Managers readjust anything that
              needs to move.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (moveLayout): New method. Shift everything in the Gtk
              layout in the Y direction by an offset.
      
      From-SVN: r76729
      Kim Ho committed
  10. 26 Jan, 2004 3 commits
    • 2004-01-26 David Jee <djee@redhat.com> · 7edbd87e
      	* gnu/java/awt/peer/gtk/GtkComponentPeer.java
      	(handleEvent): Implemented. Handles PaintEvents.
      	(paint): Implemented. Use GTK native methods to queue updates
              for this heavyweight peer.
      	* gnu/java/awt/peer/gtk/GtkContainerPeer.java
      	(handleEvent): Removed.
      	* java/awt/Component.java
      	(paint): Implemented. Explictly paint the heavyweight peer.
      	(update): Clear the background for heavyweight components.
      	(paintAll): No need to call peer.paint() anymore.
      	(processEvent): Don't process PaintEvents here. It's now done in
      	the peer's handleEvent().
      	(processPaintEvent): Removed.
      	* java/awt/Container.java
      	(paint): No need to call super.paint(). Visit heavyweight
      	children as well.
      	(update): Don't clear the background here.  It's done in
      	Component.update().
      	(visitChildren): Added check to not recurse into Containers.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(filter_expose_event_handler): New method.  Filter unwanted
      	expose events while painting heavyweight peers.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
      	New method. Connect filter and block pre_event_handler.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
      	New method. Disconnect filter and unblock pre_event_handler.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
      	New method. Invalidate and update given area.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
      	(pre_event_handler): Add checks for unwanted expose events.
      
      From-SVN: r76668
      David Jee committed
    • 2004-01-26 David Jee <djee@redhat.com> · 81a88a61
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(find_bg_color_widget): For GtkButton, return its child.
      
      From-SVN: r76667
      David Jee committed
    • GtkFramePeer.java (menuBarHeight): Mark private. · ecf67f46
      2004-01-26  Kim Ho  <kho@redhat.com>
      
              * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
              private.
              (setMenuBar): Grab MenuBar height and change insets.
              (setBounds): Account for MenuBar height.
              (postInsetsChangedEvent): Ditto.
              (postSizeAllocateEvent): Remove.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (menubar_resize_cb): Remove
              (setMenuBarPeer): Remove callback.
              (getMenuBarHeight): Use size requisition instead of
              allocation.
      
      From-SVN: r76633
      Kim Ho committed
  11. 25 Jan, 2004 2 commits
    • TextArea.java: Fix indentation. · 062732fd
      2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* java/awt/TextArea.java: Fix indentation.  Flesh out javadocs.
      	(getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
      	when peer is null.
      	(setColumns): Remove FIXME -- peer will retrieve number of
      	columns by calling getColumns.
      	(setRows): Likewise for number of rows.
      	(next_text_number): New field.
      	(paramString): Fix param string.
      	(generateName): New method.
      	(getUniqueLong): New method.
      
      From-SVN: r76577
      Thomas Fitzsimmons committed
    • GtkToolkit.java (checkImage): Inform image observer of image loading status. · 0058a7d8
      2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
      	image observer of image loading status.
      	(getImage (String)): Start image production.
      	(getImage (URL)): Likewise.
      
      From-SVN: r76574
      Thomas Fitzsimmons committed