aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
AgeCommit message (Collapse)AuthorFilesLines
2004-02-102004-02-10 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+2
* gnu/java/awt/EmbeddedWindow.java (setHandle): Use java.awt.Component.getPeer() instead of java.awt.Component.peer directly. From-SVN: r77605
2004-02-102004-02-10 David Jee <djee@redhat.com>David Jee1-1/+2
* gnu/java/awt/peer/gtk/GtkButtonPeer.java (gtkSetLabel): New native method definition. (setLabel): Use gtkSetLabel. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method. From-SVN: r77604
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch2-3/+2
* 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
2004-02-03GtkListPeer.java, [...]: Fix handling of alias methods...Thomas Fitzsimmons1-10/+10
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
2004-02-03* gnu/java/nio/DatagramChannelImpl.javaMohan Embar2-10/+49
(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
2004-01-30* gnu/java/net/PlainSocketImpl.javaMohan Embar3-18/+78
(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
2004-01-29Index: libjava/ChangeLogScott Gilbertson1-0/+26
from Scott Gilbertson <scottg@mantatest.com> * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented. From-SVN: r76899
2004-01-29Makefile.am: Added gnu/awt/xlib/XFontPeer.java.Scott Gilbertson3-7/+376
* Makefile.am: Added gnu/awt/xlib/XFontPeer.java. * Makefile.in: Re-generated. * gnu/awt/xlib/XFontPeer.java: New file. * gnu/awt/xlib/XGraphics.java (setFont): Test for null font. (setClip): Commented out debug printout. * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit. (getFontPeer): Return XFontPeer. (getLocalGraphicsEnvironment): New method. (getClasspathFontPeer): New method. (createFont): New method. From-SVN: r76891
2004-01-29ClasspathFontPeer.java (getTransform): Never return null.Scott Gilbertson1-0/+2
* gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never return null. From-SVN: r76874
2004-01-292004-01-29 Kim Ho <kho@redhat.com>Kim Ho1-0/+5
* gnu/java/awt/peer/gtk/GtkFramePeer.java (gtkLayoutSetVisible): New method (setMenuBar): Hide layout before setting MenuBar and reshow it after. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (gtkLayoutSetVisible): Hide or show the Gtk Layout. From-SVN: r76861
2004-01-282004-01-28 Michael Koch <konqueror@gmx.de>Michael Koch1-14/+0
* gnu/java/lang/ClassHelper.java (getPackagePortion): Removed. From-SVN: r76809
2004-01-282004-01-28 David Jee <djee@redhat.com>David Jee1-0/+1
* gnu/java/awt/peer/gtk/GtkFramePeer.java (create): Set the default foreground color to java.awt.SystemColor.windowText. From-SVN: r76792
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+2
* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java, * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Reindented to merge with classpath. From-SVN: r76757
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+1
* gnu/java/net/protocol/http/Connection.java (getOutputStream): Fixed typo. From-SVN: r76748
2004-01-272004-01-27 Kim Ho <kho@redhat.com>Kim Ho2-7/+5
* 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
2004-01-27GtkFramePeer.java (setMenuBar): Fix spacing.Kim Ho1-1/+1
2004-01-26 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Fix spacing. From-SVN: r76730
2004-01-27GtkFramePeer.java (moveLayout): New method.Kim Ho1-8/+20
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
2004-01-262004-01-26 David Jee <djee@redhat.com>David Jee2-36/+49
* 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
2004-01-26GtkFramePeer.java (menuBarHeight): Mark private.Kim Ho1-12/+20
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
2004-01-25GtkToolkit.java (checkImage): Inform image observer of image loading status.Thomas Fitzsimmons1-3/+17
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
2004-01-242004-01-24 Michael Koch <konqueror@gmx.de>Michael Koch1-130/+3
* gnu/java/net/protocol/jar/Connection.java (hdrHash): Removed. (hdrVec): Removed. (gotHeaders): Removed. (getHeaderField): Removed. (getHeaderFields): Removed. (getHeaderFieldKey): Removed. (getKey): Removed. (getField): Removed. (getHeaders): Removed. From-SVN: r76523
2004-01-23FileLockImpl.java: Compile fixes.Michael Koch1-3/+1
2004-01-23 Michael Koch <konqueror@gmx.de> * gnu/java/nio/FileLockImpl.java: Compile fixes. From-SVN: r76427
2004-01-23FileLockImpl.java: Fixed filename in copyright.Michael Koch2-6/+15
2004-01-23 Michael Koch <konqueror@gmx.de> * gnu/java/nio/FileLockImpl.java: Fixed filename in copyright. (released): Removed. (finalize): New method. * gnu/java/nio/natFileLockImpl.cc (releaseImpl): Implemented. * java/nio/channels/FileChannelImpl.java: Reworked imports. (lock): Implemented. (lockImpl): New method. (tryLock): Implemented. (tryLockImpl): New method. * java/nio/channels/natFileChannelImpl.cc (lockImpl): New method. (tryLockImpl): New method. From-SVN: r76422
2004-01-232004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch1-6/+13
* gnu/java/net/protocol/http/Connection.java (connect): Don't initialize bufferedOutputStream if not needed. (sendRequest): Set property for content length if content is present. Write content only if present. (getOutputStream): Check if already connected, dont connect, initalize bufferedOutputStream if needed. From-SVN: r76412
2004-01-23BitwiseXORComposite-1.png: New file.Michael Koch1-0/+0
2004-01-23 Michael Koch <konqueror@gmx.de> * gnu/java/awt/doc-files/BitwiseXORComposite-1.png: New file. From-SVN: r76410
2004-01-222004-01-22 Graydon Hoare <graydon@redhat.com>Graydon Hoare2-0/+4
* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Predicate static initialization on GtkToolkit.useGraphics2D(). * java/awt/Component.java (processPaintEvent): Consume event. * javax/swing/AbstractButton.java: Reimplement, document. * javax/swing/DefaultButtonModel.java: Reimplement, document. * javax/swing/JComponent.java (paint): Use double buffer. (listenerList): Enable member. * javax/swing/ToggleButtonModel.java: Remove incorrect constructor. * javax/swing/JToggleButton.java (JToggleButton): Modify model constructor. * javax/swing/SwingUtilities.java (layoutCompoundLabel): Adjust arithmetic. * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document. * javax/swing/plaf/basic/BasicGraphicsUtils.java (getPreferredButtonSize): Include margins in calculation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals): Receive up events from subordinate layout component. From-SVN: r76344
2004-01-21GtkFramePeer.java (postConfigureEvent): Fix comments.Kim Ho1-6/+7
2004-01-21 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent): Fix comments. (removeMenuBarPeer): Make package private. (setMenuBarPeer): Make package private. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (menubar_resize_cb): Mark attributes unused. (getMenuBarHeight): ditto. From-SVN: r76299
2004-01-20GtkComponentPeer.java (setBounds): Calculate proper offsets for heavyweight ↵Thomas Fitzsimmons1-2/+29
components packed in lightweight... 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds): Calculate proper offsets for heavyweight components packed in lightweight containers. From-SVN: r76230
2004-01-20GtkTextFieldPeer.java, [...] (native create): Add width parameter.Thomas Fitzsimmons1-24/+76
2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c (native create): Add width parameter. (create): Calculate text entry width based on current font's metrics and number of columns. Set TextField's font if not already set. Call native create. (gtkEntryGetBorderWidth): New native method. (gtkEntryGetSize): Remove method. (getMinimumSize): Call minimumSize. (getPreferredSize): Call preferredSize. (minimumSize): Calculate minimum size based on backing GtkEntry's borders, font metrics and number of columns. (preferredSize): Likewise for preferred size. (get_border_width): New static function. From-SVN: r76228
2004-01-20GtkFramePeer.java (setResizable): Override GtkWindowPeer's setResizable ↵Thomas Fitzsimmons1-0/+12
method to account for menu bar height when... 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable): Override GtkWindowPeer's setResizable method to account for menu bar height when setting the frame's size. From-SVN: r76227
2004-01-19TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused.Fernando Nasser1-1/+3
* gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused. From-SVN: r76160
2004-01-19GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter.Kim Ho1-10/+58
2004-01-19 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter. (removeMenuBarPeer): New native method. (setMenuBar): Call remove if menu bar is null. Adjust insets appropriately. (postSizeAllocateEvent): New method. Called when menu bar size is allocated. Adjust insets and redo layout. (GtkFramePeer): Set menu bar during frame creation. (postConfigureEvent): Adjust position and size to accomodate menu bar. * java/awt/Frame.java (setMenuBar): addNotify to create menu bar. * java/awt/Menu.java (addSeparator): Use peer's addSeparator. (addNotify): Create the peer if it doesn't exist and call addNotify for the menu's items. * java/awt/MenuBar.java (addNotify): Create this menu bar's menus. * java/awt/MenuItem.java (addNotify): Create the peer if it doesn't exist. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (removeMenuBarPeer): New method. Remove menu bar on the current frame. (setMenuBarPeer): Add the menu bar to the current frame and the callback for size-allocate events on the menu bar. (getMenuBarHeight): Add menu bar parameter. (menubar_resize_cb): New callback method for postSizeAllocate events. Also: Fix indentation on last ChangeLog entry. From-SVN: r76149
2004-01-192004-01-16 Kim Ho <kho@redhat.com>Kim Ho1-1/+0
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (gtkWidgetGetDimensions): Remove. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (gtkWidgetGetDimensions): Remove. From-SVN: r76148
2004-01-16GtkComponentPeer.java (GtkComponentPeer): If it is a FileDialog and has ↵Kim Ho2-2/+13
dimensions of 0 by 0... 2004-01-16 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If it is a FileDialog and has dimensions of 0 by 0, then the initial size is set to size request plus insets. * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (gtkWidgetGetDimensions): Override method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (gtkWidgetGetDimensions): Override method. Returns size request plus insets. From-SVN: r75993
2004-01-16* gnu/java/awt/peer/gtk/GdkGraphics2D.java:Olga Rodimina1-1/+1
(doPolygon): set fill rule of polygon to WIND_EVEN_ODD by default From-SVN: r75971
2004-01-15GdkGraphics2D.java: Implemented rendering hints related methods.Olga Rodimina1-5/+60
* gnu/java/awt/peer/gtk/GdkGraphics2D.java: Implemented rendering hints related methods. (getDefaultHints): New helper method. Returns default rendering hints. (walkPath): changed to normalize path if the KEY_STROKE_CONTROL key is in "normalize" mode. (draw3DRect): changed coordinates of rectangle by +0.5 if in "normalize" mode. From-SVN: r75943
2004-01-14re PR libgcj/12001 (_Jv_FindClass dumps core when Oracle's classes12.zip in ↵Nathan Bryant1-11/+13
$CLASSPATH) PR libgcj/12001: * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty array to superclass. (init): Changed interface; add URLs here. (initialize): New static method. * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here... (_Jv_RunMain): ... not here. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r75889
2004-01-13GtkTextAreaPeer.java, [...] (native create): Add width and height parameters.Thomas Fitzsimmons1-19/+91
2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (native create): Add width and height parameters. Set text view's size request according to new parameters. (create): Calculate text view size based on current font's metrics and number of rows and columns. Set TextArea's font if not already set. Call native create. (getMinimumSize): Call minimumSize. (getPreferredSize): Call preferredSize. (getHScrollbarHeight): New method. (getVScrollbarWidth): New method. (minimumSize): Calculate minimum size based on scrollbar visibility, scrollbar sizes, font metrics and number of rows and columns. (preferredSize): Likewise for preferred size. (gtkTextGetSize): Remove method. From-SVN: r75817
2004-01-132004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons4-108/+35
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (initializeInsets): Remove method. (GtkComponentPeer): Initialize insets field. Remove call to initializeInsets. * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets): Remove method. * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets): Remove method. * gnu/java/awt/peer/gtk/GtkWindowPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: (latestInsets): Remove field. (native create): Add insets parameter. Call window_get_frame_extents. Set the window's default size and size request based on its frame extents. (create): Initialize insets. (postInsetsChangedEvent): New method. (postConfigureEvent): Remove parameters top, left, bottom, right. Remove insets-related logic. (connectJObject): Handle property-notify-event. (window_get_frame_extents, request_frame_extents, property_notify_predicate, window_property_changed_cb): New static functions. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Remove insets-related logic for configure events. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit): Update postConfigureEvent signature. From-SVN: r75816
2004-01-13TestAWT.java (DialogWindow): Add WindowAdapter to handle Window "Closing" ↵Fernando Nasser1-0/+9
events. * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter to handle Window "Closing" events. From-SVN: r75813
2004-01-132004-01-13�� David Jee�� <djee@redhat.com>David Jee1-0/+21
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (setBackground): New method. Children with no explicitly-set background will be repainted with the parent container's new background color. From-SVN: r75809
2004-01-13TestAWT.java: Fix test program so that it does not show modal dialogs twice ↵Fernando Nasser1-4/+35
and so that it... * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does not show modal dialogs twice and so that it allows showing a modal dialog from another modal dialog. From-SVN: r75803
2004-01-12JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ↵Graydon Hoare2-75/+303
ordering of Container... 2004-01-08 Graydon Hoare <graydon@redhat.com> * javax/swing/JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ordering of Container elements. From-SVN: r75745
2004-01-112004-01-11 Michael Koch <konqueror@gmx.de>Michael Koch1-12/+16
* gnu/java/lang/reflect/TypeSignature.java (getEncodingOfClass): Documentation fixed. (getClassForEncoding): Give class loader to Class.forName(). Documentation fixed. From-SVN: r75675
2004-01-102004-01-10 Michael Koch <konqueror@gmx.de>Michael Koch3-4/+3
* gnu/java/awt/image/ImageDecoder.java (produce): Made public. * gnu/java/awt/peer/GLightweightPeer.java, gnu/java/awt/peer/gtk/GtkToolkit.java: Reformated. From-SVN: r75653
2004-01-092004-01-09 Michael Koch <konqueror@gmx.de>Michael Koch1-19/+0
* gnu/java/lang/ArrayHelper.java (equalsArray): Removed. From-SVN: r75592
2004-01-08GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile ↵Fernando Nasser1-5/+126
native method. * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile native method. (setFile): New method. (setDirectory): Implemented. (connectSignals): New native method. (setFilenameFilter): Improve comment. (getGraphics): Comment. (gtkHideFileDialog): New method. (gtkDisposeFileDialog): New method. (gtkSetFilename): New method. * java/awt/Dialog.java (show): Block on modal dialogs, but only for FileDialog for now. (hide): New method. (dispose): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace deprecated creation functions. Make dialog modal. Add it to the window group. (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New function. (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename): Rename to... (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New name. (window_closed): New function. (ok_clicked): New function. (cancel_clicked): New function. From-SVN: r75557
2004-01-072004-01-07 Michael Koch <konqueror@gmx.de>Michael Koch3-7/+4
* gnu/java/nio/DatagramChannelImpl.java (blocking): Removed. (DatagramChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. * gnu/java/nio/ServerSocketChannelImpl.java (blocking): Removed. (ServerSocketChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. * gnu/java/nio/SocketChannelImpl.java (blocking): Removed. (SocketChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. (connect): Use isBlocking(). * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Use blockingLock() instead of LOCK. Set blocking after successfully called implConfigureBlocking(). (register): Use blockingLock() instead of LOCK. From-SVN: r75507
2004-01-06Connection.java: Reformated copyright.Michael Koch1-148/+34
2004-01-06 Michael Koch <konqueror@gmx.de> * gnu/java/net/protocol/file/Connection.java: Reformated copyright. (hdrHash): Removed. (hdrVec): Removed. (gotHeaders): Removed. (getHeaderField): Removed. (getHeaderField): Removed. (getHeaderFieldKey): Removed. (getKey): Removed. (getField): Removed. (getHeaders): Removed. From-SVN: r75473
2004-01-052004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons3-10/+54
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Set all insets to 0 when a Configure event is received for a GtkPlug. * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle. Make handle long, not int. (EmbeddedWindow()): New constructor. (EmbeddedWindow(int)): Rename window_id to handle. Make handle long, not int. (setHandle): New method. (getHandle): Return long, not int. * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method declaration. * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c: (create(long)): Take long parameter, not int. Cast gtk_plug_new argument to GdkNativeWindow. (construct): New method. (embed): New method. From-SVN: r75447