OSDN Git Service

2004-07-23 Mark Wielaard <mark@klomp.org>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-07-23  Mark Wielaard  <mark@klomp.org>
2
3         * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
4         missed in last commit.
5
6 2004-07-23  Mark Wielaard  <mark@klomp.org>
7
8         * java/lang/System.java (static): Set http.agent system property when
9         not yet set.
10         * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
11         from system property inside AccessController.doPrivileged() call.
12         (proxyPort): Made package private.
13         (proxyInUse): Likewise.
14         (proxyHost): Likewise.
15         (userAgent): Likewise.
16
17 2004-07-23  Mark Wielaard  <mark@klomp.org>
18
19         * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
20         implementation.
21
22 2004-07-22  Bryce McKinlay  <mckinlay@redhat.com>
23
24         * Makefile.am (ordinary_java_source_files): Add
25         DefaultContentHandlerFactory.java.
26         * Makefile.in: Rebuilt.
27         * java/net/URLConnection.java (defaultFactory): New field.
28         (getContent): 
29         (getContentHandler): Renamed from 'setContentHandler'. Try 
30         defaultFactory after user-set factory, if any. Search for content 
31         handler implementations in gnu.java.net.content, not gnu.gcj.content.
32         * gnu/java/net/protocol/file/Connection.java (getHeaderField):
33         Implemented.
34         (getLastModified): Implemented.
35         (getPermission): Create file permission here, instead of in
36         constructor.
37         * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
38         Implemented.
39         * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
40         Implemented.
41         (getLastModified): Implemented.
42         * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
43         Default implementation.
44         * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
45         Implement using GdkPixbufDecoder.
46         
47 2004-07-21  Michael Koch  <konqueror@gmx.de>
48
49         * javax/swing/JTextArea.java
50         (setLineWrap): Fire property change event after new value is set.
51         (setTabSize): Likewise.
52
53 2004-07-21  Michael Koch  <konqueror@gmx.de>
54
55         * javax/swing/JTable.java
56         (autoCreateColumnsFromModel): New field.
57         (autoResizeMode): Likewise.
58         (cellEditor): Likewise.
59         (cellSelectionEnabled): Likewise.
60         (columnModel): Likewise.
61         (dataModel): Likewise.
62         (defaultEditorsByColumnClass): Likewise.
63         (defaultRenderersByColumnClass): Likewise.
64         (editingColumn): Likewise.
65         (editingRow): Likewise.
66         (gridColor): Likewise.
67         (preferredViewportSize): Likewise.
68         (rowHeight): Likewise.
69         (rowMargin): Likewise.
70         (rowSelectionAllowed): Likewise.
71         (selectionBackground): Likewise.
72         (selectionForeground): Likewise.
73         (selectionModel): Likewise.
74         (showHorizontalLines): Likewise.
75         (showVerticalLines): Likewise.
76         (tableHeader): Likewise.
77         (JTable): Implemented.
78         (getColumnModel): Likewise.
79         (getSelectedRow): Likewise.
80         (getSelectionModel): Likewise.
81         (setModel): Likewise.
82         (setSelectionModel): Likewise.
83         (createScrollPaneForTable): New method.
84         (createDefaultDataModel): Likewise.
85         (createDefaultListSelectionModel): Likewise.
86         (getModel): Likewise.
87         (getTableHeader): Likewise.
88         (setTableHeader): Likewise.
89         (getColumnSelectionAllowed): Likewise.
90         (setColumnSelectionAllowed): Likewise.
91         (getRowSelectionAllowed): Likewise.
92         (setRowSelectionAllowed): Likewise.
93         (getAutoResizeMode): Likewise.
94         (setAutoResizeMode): Likewise.
95         (getColumnCount): Likewise.
96         (getRowCount): Likewise.
97         (getCellRenderer): Likewise.
98         * javax/swing/JTree.java
99         (cellRenderer): New field.
100         (editable): Likewise.
101         (rootVisible): Likewise.
102         (showsRootHandles): Likewise.
103         (getModel): New method.
104         (setModel): Likewise.
105         (isEditable): Likewise.
106         (setEditable): Likewise.
107         (isRootVisbile): Likewise.
108         (setRootVisible): Likewise.
109         (getShowsRootHandles): Likewise.
110         (setShowRootHandles): Likewise.
111         (getCellRenderer): Likewise.
112         (setCellRenderer): Likewise.
113
114 2004-07-21  Michael Koch  <konqueror@gmx.de>
115
116         * javax/swing/JFormattedTextField.java
117         (setDocument): Implemented.
118         * javax/swing/JRootPane.java:
119         Fixed javadocs.
120         * javax/swing/JTable.java
121         (getDefaultRenderer): New method.
122         * javax/swing/JTextField.java
123         (setFont): Likewise.
124         (getPreferredSize): Likewise.
125         * javax/swing/JToggleButton.java
126         (getAccessibleContext): Fix javadoc.
127         * javax/swing/JTree.java:
128         Add some javadocs.
129         * javax/swing/JViewport.java:
130         Likewise.
131
132 2004-07-21  David Jee  <djee@redhat.com>
133
134         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
135         Collect all native method declaration at the top.
136         (create): Set the filename filter if necessary.
137         (setDirectory): Call nativeSetDirectory().
138         (setFilenameFilter): Implement.
139         (filenameFilterCallback): New method.
140         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
141         (create): Configure dialog to show hidden files.
142         (filenameFilterCallback): New function. 
143         (nativeSetFilenameFilter): New function.
144         (nativeSetDirectory): New function.
145
146 2004-07-21  Kim Ho  <kho@redhat.com>
147
148         * javax/swing/plaf/basic/BasicSliderUI.java:
149         Ran Jalopy.
150         (paintTrack): Fill the track before painting
151         the borders.
152
153 2004-07-21  Graydon Hoare  <graydon@redhat.com>
154
155         patch from Roman Kennke <roman@ontographics.com>
156         * javax/swing/Spring.java: New file.
157         * javax/swing/SpringLayout.java: New file.
158         * Makefile.am: Add new files.
159         * Makefile.in: Regenerate.
160
161 2004-07-21  Graydon Hoare  <graydon@redhat.com>
162
163         * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
164         * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
165         * javax/swing/ScrollPaneLayout.java: Likewise.
166
167 2004-07-21  Kim Ho  <kho@redhat.com>
168
169         * javax/swing/DefaultDesktopManager.java:
170         (findMinimum): Removed.
171         (resizeFrame): Trust the UI to pass valid 
172         bounds.
173         * javax/swing/JOptionPane.java:
174         Implemented showInternalXXXDialog methods.
175         (startModal): New method.
176         * javax/swing/plaf/basic/BasicInternalFrameUI.java:
177         (BorderListener::mouseDragged): Verify that the new 
178         bounds are valid before passing them to the DesktopManager.
179         (preferredLayoutSize): Delegate
180         to getSize.
181         (minimumLayoutSize): Ditto.
182         (getSize): New method.
183         (GlassPaneDispatcher): Reimplemented by copying 
184         a stripped down LightweightDispatcher from Container.
185         (getMinimumSize): Call minimumLayoutSize.
186         * javax/swing/plaf/basic/BasicOptionPaneUI.java:
187         Ran Jalopy.
188         (mousePressed): Add ability to properly close 
189         JInternalFrames.
190         * javax/swing/plaf/basic/BasicToolBarUI.java:
191         (DragWindow): Set owner for DragWindow.
192
193 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
194
195         * java/awt/image/ShortLookupTable.java: New file.
196         * java/awt/image/ByteLookupTable.java: New file.
197         * Makefile.am: Added new files.
198         * Makefile.in: Regenerated.
199
200 2004-07-21  David Jee  <djee@redhat.com>
201
202         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
203         (create(GtkContainerPeer)): New native method.
204         (create()): Call native create(), passing in the parent frame
205         as the paramter. Natively set the current file and directory.
206         (setFile): Construct an absolute filename before passing it to
207         the native peer.
208         (nativeGetDirectory): New method.
209         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
210         (window_closed): Removed.
211         (ok_clicked): Likewise.
212         (cancel_clicked): Likewise.
213         (handle_response): New method.
214         (create): Use GtkFileChooserDialog.
215         (connectSignals): Connect to handle_response.
216         (nativeGetDirectory): New method.
217         (nativeSetFile): Use GtkFileChooserDialog.
218
219 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
220
221         * java/awt/image/LookupTable.java: New file.
222         * Makefile.am: Added new file.
223         * Makefile.in: Regenerated.
224
225 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
226
227         * java/awt/image/Kernel.java: New file.
228         * Makefile.am: Added new file.
229         * Makefile.in: Regenerated.
230
231 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
232
233         * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
234         * javax/swing/JMenu.java: Likewise.
235         * javax/swing/JMenuBar.java: Likewise.
236         (MARGIN_CHANGED_PROPERTY): New property.
237         (setMargin): Implemented.
238         * javax/swing/JMenuItem.java: Fixed javadocs.
239         * javax/swing/JPopupMenuUI.java: Fixed javadocs.
240         (LABEL_CHANGED_PROPERTY): New property.
241         (add): changed to use createActionComponent.
242         (createActionComponent): Implemented.   
243         (setLabel): Fire PropertyChangeEvent if label property
244         changes.
245         * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
246         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
247         (ContainerHandler): Repaint if margin property has changed.
248         * javax/swing/plaf/basic/BasicMenuItemUI.java:
249         (installUI): Call installComponents().
250         (uninstallUI): Call uinstallComponents().
251         * javax/swing/plaf/basic/BasicMenuUI.java:
252         Fixed javadocs.
253         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
254         Likewise.
255
256 2004-07-21  Kim Ho  <kho@redhat.com>
257
258         * javax/swing/plaf/basic/BasicToolBarUI.java:
259         (DragWindow): Use the right constructor.
260
261 2004-07-21  Kim Ho  <kho@redhat.com>
262
263         * javax/swing/JToolBar.java:
264         (layoutContainer): Use getComponents.
265         * javax/swing/plaf/basic/BasicToolBarUI.java:
266         (DragWindow): Don't use SwingUtilities' 
267         getOwnerFrame
268         (ToolBarDialog): ditto.
269
270 2004-07-21  Kim Ho  <kho@redhat.com>
271
272         * javax/swing/JRootPane.java:
273         Ran jalopy.
274         (layoutContainer): Set the glasspane's size to 
275         be the same as the content pane.
276         (createGlassPane): Set opaque property to false.
277
278 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
279
280         * java/awt/Component.java (requestFocus()): Don't handle Panels
281         specially.
282         (requestFocus(boolean)): Likewise.
283         (requestFocusInWindow(boolean)): Likewise.
284         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
285         Set GTK_CAN_FOCUS flag.
286
287 2004-07-21  Kim Ho  <kho@redhat.com>
288
289         * Makefile.am: Added new file.
290         * Makefile.in: Regenerated.
291         * gcj/Makefile.in: Regenerated.
292         * include/Makefile.in: Regenerated.
293         * javax/swing/AbstractButton.java:
294         Add rollOverEnabled property.
295         (setRolloverEnabled): Use new property.
296         (isRolloverEnabled): Use new property.
297         * javax/swing/JTabbedPane.java:
298         (setComponent): Remove useless JTabbedPane.this.
299         * javax/swing/JToolBar.java: Finish implementation.
300         * javax/swing/plaf/basic/BasicArrowButton.java:
301         (paint): Moved border painting to a border.
302         * javax/swing/plaf/basic/BasicLookAndFeel.java:
303         Change JToolBar look and feel defaults.
304         * javax/swing/plaf/basic/BasicOptionPaneUI.java
305         (actionPerformed): Return Integer index instead of name.
306         (addButtonComponents): Check to see if component is
307         JButton last.
308         (createMessageArea): Don't use components that are not
309         completed yet.
310         (getIconForType): Use temporary icons.
311         * javax/swing/plaf/basic/BasicSliderUI.java:
312         (mousePressed): Do not return if it's on thumb.
313         (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
314         (paintMinorTickForVertSlider): ditto.
315         (paintMajorTickForHorizSlider): ditto.
316         (paintMajorTickForVertSlider): ditto.
317         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
318         Add a border around the SplitPaneDivider.
319         * javax/swing/plaf/basic/BasicSplitPaneUI.java:
320         Remove comments.
321         * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
322         New file. Implemented.
323         * javax/swing/plaf/basic/BasicToolBarUI.java:
324         Implemented.
325         * testsuite/Makefile.in: Regenerated.
326
327 2004-07-21  Graydon Hoare  <graydon@redhat.com>
328
329         * javax/swing/Timer.java (run): Queue events each time cycle.
330
331 2004-07-21  David Jee  <djee@redhat.com>
332
333         * gnu/java/awt/peer/gtk/GtkImagePainter.java
334         (imageComplete): Call image.imageComplete().
335         * java/awt/image/MemoryImageSource.java:
336         Reimplement consumers as a Vector instead of a Hashtable.  This is
337         because enumeration on a Hashtable is not thread-safe.
338         (addConsumer): Adapt to Vector consumers.
339         (isConsumer): Adapt to Vector consumers.
340         (removeConsumer): Adapt to Vector consumers.
341         (startProduction): Adapt to Vector consumers. Call imageComplete()
342         with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
343         (newPixels): Adapt to Vector consumers.
344         (sendPicture): Set the color model of the image consumer.
345         (newPixels(IIII)): Adapt to Vector consumers.
346         (newPixels(IIIIB)): Adapt to Vector consumers.
347
348 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
349
350         * java/awt/Component.java (deliverEvent): Implement.
351         (postEvent): Implement.
352         (handleEvent): Implement.
353         (translateEvent): New method.
354         (dispatchEventImpl): Document.  Add AWT 1.0 event handling.
355         * java/awt/Container.java (deliverEvent): Implement.
356         * java/awt/Event.java (paramString): Fix formatting.
357         * java/awt/Font.java (toString): Likewise.
358         * java/awt/Window.java (postEvent): Implement.
359
360 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
361
362         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
363         Set window's focus owner upon receiving a FOCUS_LOST event.
364         * java/awt/Window.java (Window()): Refocus the previously
365         focused component within the window when the window regains the
366         top-level focus.
367         (setFocusOwner): New method.
368         * java/awt/Component.java (requestFocus): Add FIXME.
369
370         * libgcj.pc.in: Remove library flags.
371
372 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
373
374         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
375         MOUSE_PRESSED event.
376         * java/awt/Component.java (requestFocus()): Handle Panel
377         specially.  Post FOCUS_LOST event on opposite component.
378         (requestFocus(boolean)): Likewise.
379         (requestFocusInWindow(boolean)): Likewise.
380         (paramString): Reorder dimension fields.
381         * java/awt/Container.java (paramString): Fix string format.
382         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
383         Handle FOCUS_LOST events.  Don't handle Windows specially.  Only
384         process key events if the focus owner is non-null.
385         (dispatchKeyEvent): Likewise.
386         * java/awt/Frame.java (paramString): Fix formatting.
387         (generateName): New method.
388         (getUniqueLong): Likewise.
389         * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
390         the temporary focus owner is null.  If so, return the permanent
391         focus owner.
392         * java/awt/Panel.java (generateName): New method.
393         (getUniqueLong): Likewise.
394         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
395         signal handling to make callbacks more specific.
396
397 2004-07-21  Michael Koch  <konqueror@gmx.de>
398
399         * javax/swing/text/Position.java
400         (Bias): Implemented.
401
402 2004-07-21  Michael Koch  <konqueror@gmx.de>
403
404         * javax/swing/LookAndFeel.java
405         (provideErrorFeedback): New method.
406
407 2004-07-21  Michael Koch  <konqueror@gmx.de>
408
409         * javax/swing/JTextArea.java
410         (tabSize): New field.
411         (getTabSize): New method.
412         (setTabSize): Likewise.
413
414 2004-07-21  Michael Koch  <konqueror@gmx.de>
415
416         * javax/swing/ActionMap.java:
417         Fixed javadocs all over.
418         (serialVersionUID): Made private.
419         (parent): Don't explicitely initialize with default value.
420         (get): SImplified.
421         (keys): Reimplemented.
422         (allKeys): Likewise.
423         (convertSet): Removed.
424         * javax/swing/ComponentInputMap.java:
425         Fixed javadocs all over.
426         (ComponentInputMap): Implemented.
427         (put): Likewise.
428         (clear): Likewise.
429         (remove): Likewise.
430         (SetParent): Likewise.
431         (getComponent): Likewise.
432         * javax/swing/InputMap.java:
433         Fixed javadocs all over.
434         (serialVersionUID): Made private.
435         (parent): Don't explicitely initialize with default value.
436         (get): SImplified.
437         (keys): Reimplemented.
438         (allKeys): Likewise.
439         (convertSet): Removed.
440
441 2004-07-21  Michael Koch  <konqueror@gmx.de>
442
443         * javax/swing/ActionMap.java,
444         javax/swing/ComponentInputMap.java,
445         javax/swing/InputMap.java,
446         javax/swing/table/DefaultTableColumnModel.java,
447         javax/swing/table/TableColumn.java,
448         javax/swing/table/TableColumnModel.java,
449         javax/swing/table/TableModel.java,
450         javax/swing/text/AbstractDocument.java,
451         javax/swing/text/TextAction.java:
452         Reformated.
453
454 2004-07-21  Graydon Hoare  <graydon@redhat.com>
455
456         * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError): 
457         Make method non-static.
458         * javax/swing/AbstractButton.java:
459         Rename fields to match property names where possible.
460         (iconTextGap): New property.
461         * javax/swing/JCheckBox.java: Match AbstractButton changes.
462         (init) New method, call from after various constructors.
463         * javax/swing/JComponent.java (revalidate): 
464         Invalidate before queueing repair.
465         * javax/swing/JList.java (getPreferredScrollableViewportSize):
466         Reimplement in terms of visibleRowCount property.
467         * javax/swing/JMenuButton.java: Match AbstractButton changes.
468         * javax/swing/JScrollPane.java (createScrollListener): 
469         Remove tracing chatter.
470         * javax/swing/JToggleButton.java: Match AbstractButton changes.
471         * javax/swing/RepaintManager.java (addInvalidComponent): 
472         Don't invalidate.
473         * javax/swing/ScrollPaneLayout.java: Various corrections to layout
474         calculations.
475         * javax/swing/SwingUtilities.java (layoutCompoundLabel): 
476         Mimic sun behavior on top left/right positioning.
477         * javax/swing/ViewportLayout.java (preferredLayoutSize):
478         Remove mistaken use of preferredScrollableViewportSize here.
479         (layoutContainer): Use view's preferred size as basis.
480         * javax/swing/plaf/basic/BasicButtonUI.java:
481         Set, get, and use textIconGap property.
482         (paint) Paint text returned from layout (with ellipsis).
483         * javax/swing/plaf/basic/BasicListUI.java:
484         Remove tracing chatter, correct various minor calculations.
485         (getCellBounds): Update layout state before calculating.
486         * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
487         Use margin default similar to sun's.    
488         * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
489         (createIncreaseIcon): Center icon, minimize margins.
490         (createDecreaseIcon): Likewise.
491         * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
492         Implement.
493         (installUI): Call it.
494         (uninstallDefaults): Implement.
495         (uninstallUI): Call it.
496         * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
497         Call existing Window constructor.
498         * javax/swing/plaf/basic/BasicViewportUI.java (paint):
499         Set clip before painting.
500
501 2004-07-21  Olga Rodimina <rodimina@redhat.com>
502         
503         * javax/swing/JMenuItem.java:
504         (processMouseEvent): Reimplemented to deal with
505         mouse drag events.
506         (createMenuDragMouseEvent): New private helper method.
507         Creates MenuDragMouseEvent.
508         * javax/swing/MenuSelectionManager.java
509         (componentForPoint): Implemented.
510         (isComponentPartOfCurrentMenu): Made public.
511         (processMouseEvent): Reimplemented to deal with 
512         mouse drag events.
513         (setSelectedPath): Corrected small mistake that caused
514         path to be set incorrectly.
515         (getPath): If given component is JMenu then also add this
516         menu's popup menu to the selected path.
517         * javax/swing/plaf/basic/BasicMenuItemUI.java:
518         (getPath): Ditto.
519         (getPreferredSize): Call getPreferredMenuItemSize().
520         (getPreferredItemSize): Moved code from getPreferredSize to here.
521         (installListeners): Install MouseMotionListeners.
522         (MouseInputHandler): Pass mouse release event to MenuSelectionManager 
523         if mouse wasn't released in the bounds of this menu item.
524         (MenuDragMouseHandler): Implemented.
525         * javax/swing/plaf/basic/BasicMenuUI.java:
526         (installListeners): Install MouseMotionListener and 
527         MenuDrageMouseListener.
528         (MenuDragMouseHandler): Implemented.
529         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
530         (uninstallListeners): Implemented.
531         
532 2004-07-21  Michael Koch  <konqueror@gmx.de>
533
534         * javax/swing/JCheckBox.java: Reformated.
535         (JCheckBox): Fixed all constructors.
536         (isBorderPaintedFlat): New method.
537         (setBorderPaintedFlat): New method.
538         * javax/swing/JEditorPane.java
539         (createEditorKitForContentType): Made public.
540         (scrollToReference): Likewise.
541         * javax/swing/JTextArea.java
542         (setLineWrap): Fire property change.
543         * javax/swing/JToggleButton.java
544         (JToggleButton): New constructor.
545         (JToggleButton): Simplified.
546         * javax/swing/text/AttributeSet.java
547         (FontAttribute): Renamed from FontCharacterAttribute.
548         * javax/swing/text/JTextComponent.java
549         (KeyBinBinding): Added javadoc.
550         (JTextComponent): Likewise.
551         (getAccessibleContext): Fixed javadoc.
552         * javax/swing/text/View.java
553         (View): Added javadoc.
554         * javax/swing/text/TabableView.java: New file.
555         * Makefile.am: Added javax/swing/text/TabableView.java.
556         * Makefile.in: Regenerated.
557
558 2004-07-21  Graydon Hoare  <graydon@redhat.com>
559
560         * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
561         * gnu/java/awt/peer/gtk/GtkToolkit.java 
562         (GtkErrorImage): New helper class.
563         (bufferedImageOrError): New helper method.
564         (createImage): Use it.
565
566 2004-07-21  David Jee  <djee@redhat.com>
567
568         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
569         (setCaretPosition): Scroll the text view so the new caret position
570         is visible on screen.
571
572 2004-07-21  David Jee  <djee@redhat.com>
573
574         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
575         (setBounds): Do not validate awtComponent here.
576         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
577         (getPreferredSize): New method.
578         * java/awt/ScrollPane.java
579         (ScrollPane): Set default size to 100x100.
580         (addNotify): If child is not a Panel, wrap it with a new Panel.
581         (paramString): Implement.
582
583 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
584
585         * javax/swing/JMenu.java:
586         (setSelected): Display popup menu only if this menu 
587         is showing on the screen.
588         * javax/swing/JPopupMenu.java:
589         (processMouseEvent): Added comment.
590         (processKeyEvent): Likewise.
591         * javax/swing/MenuSelectionManager.java:
592         (clearSelectedPath): Only fireStateChanged() after
593         selected path was changed, not before.
594         (setSelectedPath): Likewise.
595         * javax/swing/plaf/basic/BasicMenuItemUI.java:
596         (paintMenuItem): Corrected position of menu item's
597         icon.
598         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
599         (installUI): Correct setDefaultLightWeightPopupEnabled call.
600         (popupMenuCanceled): Reimplemented.
601         (popupMenuWillBecomeVisible): Select first menu item by default 
602         when displaying free floating popup menus.
603         (TopWindowListener): Reimplemented.
604
605 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
606
607         * java/awt/Panel.java (dispatchEventImpl): Override to prevent
608         Panel from being painted twice when it is first shown.
609
610 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
611
612         * java/awt/Window.java: Reverted changes from my 
613         previous patch for creating window without an owner.
614         * javax/swing/SwingUtilities.java: 
615         (SwingUtilities.OwnerFrame): made static.
616         (OwnerFrame.setVisible): New method. Overridden with
617         empty implementation.
618         (OwnerFrame.isShowing): New method. Ovverridden
619         to return always true.
620
621 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
622
623         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
624         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
625         (GtkComponentPeer): Remove temporary try/catch block.
626         (setVisible): Call show and hide.
627         (show): Make native.
628         (hide): Likewise.
629         (getArgs): Don't add "visible" argument.
630         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
631         (property_notify_predicate): Return Bool instead of int.
632         (find_layout): New function.
633         (connectJObject): Call find_layout.
634         (connectSignals): Likewise.
635         (moveLayout): Likewise.
636         (gtkLayoutSetVisible): Likewise.
637
638 2004-07-21  Mark Wielaard  <mark@klomp.org>
639
640         * java/awt/event/InvocationEvent.java (dispatch): Synchronize
641         on notifier object before calling notifyAll().
642
643 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
644
645         * java/awt/Window.java: Changed constructors to use new
646         method that is described below. Constructors call this
647         methods only if newly created window should have an owner.
648         (setWindowOwner): New method. Implementation for
649         this method is moved from this(owner,configuration).
650         * javax/swing/JWindow.java:
651         (JWindow): Reimplement to use SwingUtilities.ownerFrame
652         instead of owner.
653         * javax/swing/SwingUtilities.java:
654         (ownerFrame): Change type of this field to OwnerFrame.
655         (getOwnerFrame): Changed to return object of type OwnerFrame.
656         (SwingUtilities.OwnerFrame): New class. Represents owner
657         of a Window that is not provided with one.
658
659 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
660
661         *  javax/swing/AbstractButton.java: 
662         (configurePropertiesFromAction): Set action command
663         to button's text by default if action command is not 
664         explicitely specified.
665         * javax/swing/JMenu.java: Remove unnecessary listener
666         and methods relevant to it.
667         (setSelected): Reimplemented.
668         (menuSelectionChanged): Moved most part of implementation to
669         setSelected() and call it instead.
670         * javax/swing/JMenuItem.java: 
671         (init): Comment out statement that sets paint_border to false.
672         (configurePropertiesFromAction): Do not set accelerator
673         for JMenu.
674         (menuSelectionChanged): Change selected index in the selection
675         model of menu item's parent.
676         * javax/swing/JPopupMenu.java:
677         (remove): Set constraints.fill field to GridBagConstraints.BOTH
678         instead of GridBagConstraints.HORIZONTAL.
679         (insert): Likewise.
680         (createActionChangeListener): Implemented.
681         (setVisible): Correct location of HeavyWeightMenu and 
682         don't firePopupMenuCanceled().
683         (menuSelectionChanged): Implemented.
684         (ActionChangeListener): New Listener. Implemented.
685         * javax/swing/plaf/basic/BasicMenuBarUI.java:
686         (BasicMenuBarUI.ContainerHandler): Implemented.
687         * javax/swing/plaf/basic/BasicMenuItemUI.java:
688         (paintMenuItem): Uncommented out code that paints 
689         icon, now that icons are working properly.
690         (PropertyChangeListener): Implemented.
691         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
692         Added javadocs.
693         (topWindowListener): New field.
694         (Constructor): initialize topWindowListener.
695         (BasicPopupMenuUI.TopWindowListener): Implemented.      
696         (BasicPopupMenuUI.PopupMenuHandler): Implemented.
697         (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
698         Implemented.
699
700 2004-07-21  Michael Koch  <konqueror@gmx.de>
701
702         * javax/swing/plaf/basic/BasicButtonUI.java
703         (paintFocus): Fixed method signature.
704         (paintButtonPressed): Likewise.
705         (paintButtonNormal): Likewise.
706         (paintText): New method.
707         * javax/swing/plaf/basic/BasicLabelUI.java
708         (paint): Re-indented.
709         * javax/swing/plaf/basic/BasicTextUI.java
710         (installUI): Set parent textComponent to opaque.
711         * javax/swing/text/DefaultHighlighter.java
712         (checkPositions): New helper method.
713         (addHighlight): Throws BadLocationException, check positions.
714         (changeHighlight): Likewise.
715         * javax/swing/text/EditorKit.java
716         (EditorKit): Implements Serializable.
717         * javax/swing/text/JTextComponent.java
718         (getUI): Added javadoc.
719         (setUI): Likewise.
720         (upadteUI): Added javadoc, don't revalidate and repaint.
721
722 2004-07-21  David Jee  <djee@redhat.com>
723
724         * java/awt/GridBagLayout.java
725         (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
726         * javax/swing/AbstractButton.java
727         (setText): Reindent.
728         * javax/swing/RepaintManager.java
729         (addInvalidComponent): Find the first ancestor that isValidateRoot().
730
731 2004-07-21  Michael Koch  <konqueror@gmx.de>
732
733         * javax/swing/JFormattedTextField.java
734         (value): New field.
735         (JFormattedTextField): Implemented.
736         (getValue): Likewise.
737         (setValue): Likewise.
738         * javax/swing/LookAndFeel.java
739         (getSupportsWindowDecorations): New method.
740         * javax/swing/UIDefaults.java:
741         Use java.beans.PropertyChangeSupport instead of doing all ourself.
742         (addPropertyChangeListener): Made public.
743         (addResourceBundle): Likewise.
744         (removeResourceBundle): Likewise.
745         (setDefaultLocale): Likewise.
746         * javax/swing/plaf/basic/BasicRootPaneUI.java
747         (BasicRootPaneUI): Implements PropertyChangeListener.
748         (propertyChange): New method.
749         * javax/swing/plaf/basic/BasicTextUI.java
750         (BasicHighlighter): New inner class.
751         (createHighlighter): New method.
752         * javax/swing/plaf/basic/BasicToolBarUI.java
753         (DragWindow): Extends java.awt.Window.
754         * javax/swing/text/JTextComponent.java
755         (getDocument): Removed debug output.
756         * javax/swing/plaf/basic/BasicTextFieldUI.java,
757         javax/swing/text/DefaultHighlighter.java,
758         javax/swing/text/FieldView.java,
759         javax/swing/text/PlainView.java: New files.
760         * Makefile.am: Added new files.
761         * Makefile.in: Regenerated.
762
763 2004-07-21  Michael Koch  <konqueror@gmx.de>
764
765         * javax/swing/JEditorPane.java
766         (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
767         (createEditorKitForContentType): Likewise.
768         * javax/swing/text/DefaultEditorKit.java
769         (serialVersionUID): Added constant field.
770         (EndOfLineStringPropery): Fixed typo.
771         (DefaultEditorKit): New constructor.
772         * javax/swing/text/Segment.java:
773         Import java.text.CharacterIterator.
774         * javax/swing/text/CharacterIterator.java,
775         javax/swing/text/PlainEditorKit.java: Removed.
776         * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
777         javax/swing/text/PlainEditorKit.java.
778         * Makefile.in: Regenerated.
779
780 2004-07-21  Michael Koch  <konqueror@gmx.de>
781
782         * javax/swing/JButton.java,
783         javax/swing/text/DefaultEditorKit.java,
784         javax/swing/text/EditorKit.java,
785         javax/swing/text/Segment.java,
786         javax/swing/text/StyledEditorKit.java:
787         Reformatted.
788
789 2004-07-21  Michael Koch  <konqueror@gmx.de>
790
791         * javax/swing/ImageIcon.java
792         (file): Removed.
793         (description): Renamed from descr.
794         (ImageIcon): Added missing constructors.
795         (setParent): Removed.
796         (setImageObserver): New method.
797         (getImageObserver): New method.
798         (paintIcon): Handle observer = null.
799         * javax/swing/JButton.java
800         (removeNotify): Fixed javadoc.
801         (updateUI): Simplified.
802         * javax/swing/JRootPane.java
803         (serialVersionUID): New constant field.
804         * javax/swing/UIManager.java:
805         Fixed javadocs all over.
806         (setLookAndFeel): Throws UnsupportedLookAndFeelException.
807         * javax/swing/text/AbstractDocument.java
808         (createPosition): Throws BadLocationException.
809         (getText): Likewise.
810         (remove): Likewise.
811         * javax/swing/text/ComponentView.java
812         (modelToView): Likewise.
813         * javax/swing/text/DefaultEditorKit.java:
814         Made all public methods public.
815         (read): Throws BadLocationException and IOException.
816         (write): Likewise.
817         * javax/swing/text/EditorKit.java:
818         Made all public methods public.
819         (serialVersionUID): New constant field.
820         (clone): New method.
821         (read): Throws BadLocationException and IOException.
822         (write): Likewise.
823         * javax/swing/text/Segment.java
824         (array): Made public.
825         (count): Likewise.
826         (offset): Likewise.
827         (Segment): New constructors.
828         (clone): Reimplemented.
829         * javax/swing/text/StyledEditorKit.java
830         (serialVersionUID): New constant field.
831
832 2004-07-21  Graydon Hoare  <graydon@redhat.com>
833
834         * java/awt/image/BufferedImage.java 
835         (getSource): Implement.
836         * javax/swing/ImageIcon.java 
837         (ImageIcon): Implement ctor.
838         * javax/swing/ScrollPaneLayout.java 
839         (preferredLayoutSize): Be more careful about nulls.
840
841 2004-07-21  Michael Koch  <konqueror@gmx.de>
842
843         * javax/swing/text/AttributeSet.java
844         (CharacterAttribute): New interface
845         (ColorAttribute): Likewise.
846         (FontCharacterAttribute): Likewise.
847         (ParagraphAttribute): Likewise.
848         * javax/swing/text/DefaultCaret.java
849         (moveCaret): New method.
850         (positionCaret): Likewise.
851         (repaint): Made protected.
852         * javax/swing/text/JTextComponent.java
853         (KeyBinding): Made it static.
854         * javax/swing/text/View.java
855         (getContainer): Honor parent == null.
856
857 2004-07-21  Michael Koch  <konqueror@gmx.de>
858
859         * javax/swing/text/AbstractDocument.java:
860         Reformatted.
861
862 2004-07-21  Michael Koch  <konqueror@gmx.de>
863
864         * javax/swing/plaf/basic/BasicRootPaneUI.java:
865         Import javax.swing.UIManager explicitely.
866         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
867         (ScrollingButton): Made it static.
868
869 2004-07-21  Michael Koch  <konqueror@gmx.de>
870
871         * javax/swing/UIDefaults.java
872         (ActiveValue): Made public.
873         (LazyValue): Likewise.
874         * javax/swing/plaf/basic/BasicTextUI.java
875         (RootView): Reintroduced.
876         (view): Removed.
877         (rootView): New field.
878         (installUI): Create document if needed, initialize rootView.
879         (uninstallUI): Hanle rootView.
880         (paint): Likewise.
881         (getRootView): Likewise.
882         (setView): Likewise.
883         * javax/swing/text/DefaultCaret.java:
884         Renamed all "evt" variables to "event".
885
886 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
887
888         * libgcj.spec.in: Add -l-java-util-logging.
889
890 2004-07-21  Andreas Tobler  <a.tobler@schweiz.ch>
891
892         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
893         (init_dpi_conversion_factor): Check for int_dpi < 0 in case
894         gtk-xft-dpi can no calculate the right value.
895         (dpi_changed_cb): Mark *pspec as unsused.
896
897 2004-07-21  David Jee  <djee@redhat.com>
898
899         * java/awt/Component.java
900         (move): Delegate to setBounds().
901         (resize): Likewise.
902         (reshape): Fix so it repaints parent and self only when necessary.
903
904 2004-07-21  David Jee  <djee@redhat.com>
905
906         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
907         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
908         (GtkComponentPeer): Revert previous patch from 2004-06-22.
909         (setVisible): Likewise.
910         (show): Likewise.
911         (hide): Likewise.
912         (getArgs): Likewise.
913         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
914         (property_notify_predicate): Likewise.
915         (find_layout): Likewise.
916         (connectJObject): Likewise.
917         (connectSignals): Likewise.
918         (moveLayout): Likewise.
919         (gtkLayoutSetVisible): Likewise.
920
921 2004-07-21  Graydon Hoare  <graydon@redhat.com>
922
923         * Makefile.am
924         (jv_convert_LDADD):
925         (gij_LDADD):
926         (rmic_LDADD):
927         (rmiregistry_LDADD): Add lib-java-util-logging.la
928         * Makefile.in: Regenerate.
929
930 2004-07-21  Michael Koch  <konqueror@gmx.de>
931
932         * javax/swing/text/AbstractDocument.java
933         (replace): Dont use protected method of java.util.Vector directly.
934
935 2004-07-21  Michael Koch  <konqueror@gmx.de>
936
937         * javax/swing/plaf/basic/BasicTextUI.java
938         (installUI): Call specialized install methods.
939         (installDefaults): New method.
940         (installListeners): Likewise.
941         (installKeyboardActions): Likewise.
942         (uninstallUI): Likewise.
943         (uninstallDefaults): New method.
944         (uninstallListeners): Likewise.
945         (uninstallKeyboardActions): Likewise.
946         (getPropertyPrefix): New abstract method.
947         (paint): Made final, just call paintSafely().
948         (paintSavely): New method.
949         (paintBackground): Likewise.
950         (getVisibleEditorRect): Likewise.
951         * javax/swing/text/LayeredHighlighter.java,
952         javax/swing/text/TabExpander.java: New files.
953         * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
954         and javax/swing/text/TabExpander.java.
955         * Makefile.in: Regenerated.
956
957 2004-07-21  Michael Koch  <konqueror@gmx.de>
958
959         * javax/swing/plaf/basic/BasicTextUI.java
960         (BasicTextUI): Made abstract.
961         (BasicCaret): New inner class.
962         (view): Don't explicitely initialize with "null".
963         (textComponent): New field.
964         (textColor): Removed.
965         (disabledTextColor): Removed.
966         (normalBackgroundColor): Removed.
967         (RootView): Removed commented out inner class.
968         (createUI): Removed.
969         (createCaret): New method.
970         (getComponent): Likewise.
971         (installUI): Initialize textComponent only.
972         (getPreferredSize): Use installed JTextComponent.
973         (setView): New method.
974         (create): Likewise.
975         * javax/swing/text/JTextComponent.java
976         (highlighter): New field.
977         (caretColor): Likewise.
978         (disabledTextColor): Likewise.
979         (seletedTextColor): Likewise.
980         (selectionColor): Likewise.
981         (setUI): New method.
982         (getCaretColor): Likewise.
983         (setCaretColor): Likewise.
984         (getDisabledColor): Likewise.
985         (setDisabledColor): Likewise.
986         (getSelectedTextColor): Likewise.
987         (setSelectedTextColor): Likewise.
988         (getSelectionColor): Likewise.
989         (setSelectionColor): Likewise.
990         (getHighlighter): Likewise.
991         (setHighlighter): Likewise.
992         (replaceSelection): Likewise.
993
994 2004-07-21  Michael Koch  <konqueror@gmx.de>
995
996         * javax/swing/plaf/basic/BasicScrollPaneUI.java
997         (BasicScrollPaneUI): Implements ScrollPaneConstants.
998         * javax/swing/plaf/basic/BasicToolBarUI.java
999         (BasicToolBarUI): Implements SwingConstants.
1000
1001 2004-07-21  Michael Koch  <konqueror@gmx.de>
1002
1003         * javax/swing/JPopupMenu.java: Removed CVS tags.
1004         * javax/swing/UIDefaults.java: Reformatted.
1005         * javax/swing/plaf/basic/BasicRootPaneUI.java:
1006         Explicitely import used classes.
1007
1008 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
1009
1010         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1011         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1012         (GtkComponentPeer): Remove temporary try/catch block.
1013         (setVisible): Call show and hide.
1014         (show): Make native.
1015         (hide): Likewise.
1016         (getArgs): Don't add "visible" argument.
1017         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1018         (property_notify_predicate): Return Bool instead of int.
1019         (find_layout): New function.
1020         (connectJObject): Call find_layout.
1021         (connectSignals): Likewise.
1022         (moveLayout): Likewise.
1023         (gtkLayoutSetVisible): Likewise.
1024
1025 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1026
1027         * javax/swing/AbstractButton.java:
1028         (setDisplayedMnemonicIndex): Check if button
1029         text is not null before checking its length.
1030         * javax/swing/JMenuItem.java:
1031         (processMouseEvent): Disarm menu item if mouse has
1032         exited it.
1033         * javax/swing/plaf/basic/BasicMenuUI.java:
1034         (MouseInputHandler.mouseEntered): Do not raise
1035         popup menu if this menu is already selected.
1036         (MouseInputHandler.mousePressed): Do not fire 
1037         MenuEvents.
1038         (MenuHandler): Implemented.     
1039
1040 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1041
1042         * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1043         (getSelectedObjects): Implemented.
1044         * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1045         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: 
1046         Added javadoc for few methods.
1047         (processMouseEvent): Made public.
1048         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1049         (processMouseEvent): Likewise.
1050
1051 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
1052
1053         * javax/swing/AbstractButton.java:
1054         (init): Set display mnemonic index to -1.
1055         (setMnemonic(char)): Use setMnemonic(int).
1056         (setMnemonic(int)): Set display mnemonic index.
1057         (getDisplayedMnemonicIndex): Change method signature
1058         by removing 'index' parameter.
1059         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1060         Added default for Menu.selectionBackground.     
1061         * javax/swing/plaf/basic/BasicMenuItemUI.java:
1062         (paintMenuItem): Change background color of the selected
1063         menu item.
1064         (paintText): Paint differently when menu item is disabled.
1065         Also paint mnemonic if it appears in the menu item's label.
1066         (paintAccelerator): Paint accelerator differently
1067         if menu item is disabled.
1068         * javax/swing/plaf/basic/BasicMenuUI.java:
1069         (installDefaults): Install defaults for 
1070         selectionForeground and selectionBackground.
1071         (uninstallDefaults): Uninstall defauls for 
1072         selectionForeground and selectionBackground.
1073
1074 2004-07-21  Michael Koch  <konqueror@gmx.de>
1075
1076         * javax/swing/text/AbstractDocument.java
1077         (BranchElement): Implemented.
1078         (LeafElement): Implemented.
1079         * javax/swing/text/DefaultCaret.java:
1080         Import used classes.
1081         (serialVersionUID): New constant.
1082         * javax/swing/text/JTextComponent.java
1083         (AccessibleJTextComponent): Removed dead declaration.
1084         (caretPos): Removed.
1085         (setCaret): New method.
1086         * javax/swing/text/PlainDocument.java
1087         (rootElement): New field.
1088         (PlainDocument): Initialize rootElement.
1089         (createDefaultRoot): New method.
1090         (getDefaultRootElement): Implemented.
1091         * javax/swing/text/View.java: Reformatted.
1092         * javax/swing/text/ViewFactory.java
1093         (create): Added javadoc.
1094
1095 2004-07-21  Michael Koch  <konqueror@gmx.de>
1096
1097         * javax/swing/ToolTipManager.java: Reformatted.
1098
1099 2004-07-21  Rodimina Olga  <rodimina@redhat.com>
1100
1101         * javax/swing/AbstractButton.java
1102         (changeEvent): New field.
1103         (fireItemStateChanged): Change source of the event
1104         to 'this' before firing it to button listeners.
1105         (fireActionPerformed): Likewise.
1106         (fireStateChanged): Likewise.
1107         (createActionListener): Do not set source 
1108         of the event to AbstractButton.                                  
1109         * javax/swing/plaf/basic/BasicMenuBarUI.java:
1110         (ContainerHandler.componentAdded): Removed 
1111         print out statement.
1112         (ContainerHandler.componentRemoved): Likewise.
1113
1114 2004-07-21  Michael Koch  <konqueror@gmx.de>
1115
1116         * javax/swing/text/Highlighter.java: New file.
1117         * Makefile.am: Added javax/swing/text/Highlighter.java.
1118         * Makefile.in: Regenerated.
1119
1120 2004-07-21  Michael Koch  <konqueror@gmx.de>
1121
1122         * javax/swing/ToolTipManager.java
1123         (stillInsideTimerAction): Fixed constructor arguments.
1124         (outsideTimerAction): Likewise.
1125         (insideTimerAction): Likewise.
1126
1127 2004-07-21  Michael Koch  <konqueror@gmx.de>
1128
1129         * javax/swing/JButton.java: Reformatted.
1130         * javax/swing/JFormattedTextField.java
1131         (getUIClassID): Implemented.
1132         * javax/swing/JRootPane.java
1133         (serialVersionUID): New constant.
1134         * javax/swing/JTextField.java
1135         (align): New field.
1136         (JTextField): Simplified.
1137         (getUIClassID): New method.
1138         (getActionListeners): Added @since tag.
1139         (setColumns): Invalidate layout and repaint.
1140         (getHorizontalAlignment): New method.
1141         (setHorizontalAlignment): New method.
1142         (selectAll): Removed.
1143         * javax/swing/SwingUtilities.java
1144         (getAncestorOfClass): Removed redundant @see tag.
1145         (isLeftMouseButton): Fixed implementation.
1146         (isMiddleMouseButton): Likewise.
1147         (isRightMouseButton): Likewise.
1148         * javax/swing/text/AbstractDocument.java
1149         (AttributeContext.addAttribute): New method.
1150         (AttributeContext.addAttributes): New method.
1151         (AttributeContext.getEmptySet): New method.
1152         (AttributeContext.reclaim): New method.
1153         (AttributeContext.removeAttribute): New method.
1154         (AttributeContext.removeAttributes): New method.
1155         * javax/swing/text/Document.java
1156         (createPosition): Throws BadLocationException.
1157         (getText): Likewise.
1158         (remove): Likewise.
1159         * javax/swing/text/JTextComponent.java
1160         (getText): Return null if no document is set. Catch
1161         BadLocationException.
1162         (getUI): Return ui.
1163         (updateUI): Simplified.
1164
1165 2004-07-21  Michael Koch  <konqueror@gmx.de>
1166
1167         * javax/swing/JButton.java
1168         (removeNotify): Fixed javadoc.
1169         (updateUI): Simplified.
1170
1171 2004-07-21  David Jee  <djee@redhat.com>
1172
1173         * gnu/java/awt/image/ImageDecoder.java
1174         (startProduction): Only add consumer if it's not added yet.
1175         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1176         (GdkPixbufDecoder): Don't call initState() here.
1177         (produce): Call initState() here, to ensure area_prepared and
1178         area_updated signals are properly connected.
1179         * gnu/java/awt/peer/gtk/GtkImage.java
1180         (setColorModel): Use equals() to compare ColorModel objects.
1181         (setPixels): Likewise.
1182         * java/awt/image/ColorModel.java
1183         (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1184         * java/awt/image/RGBImageFilter.java
1185         (setColorModel): Set consumer's color model.
1186         (setPixels): Use equals() to compare ColorModel objects.
1187
1188 2004-07-21  Bryce McKinlay  <mckinlay@redhat.com>
1189
1190         * java/net/URLConnection.java (position): New field.
1191         (dateFormat1, dateFormat2, dateFormat3): Removed.
1192         (dateFormats): New field.
1193         (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1194         each time instead of re-allocating.
1195         (initializeDateFormats): Initialize 'dateFormats'.
1196
1197 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1198
1199         PR libgcj/16591
1200         * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1201         is defined.
1202
1203 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1204
1205         * java/net/Socket.java (getImpl): Now private. Remove comment.
1206
1207 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
1208
1209         * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1210         of chained Writer when calling super-constructor.
1211         * java/io/FilterWriter.java (FilterWriter): Likewise.
1212         * java/io/PrintWriter.java (PrintWriter): Likewise.
1213
1214 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
1215
1216         * prims.cc (process_gcj_properties): Don't increment i within LHS
1217         of assignment.
1218
1219 2004-07-19  Per Bothner  <per@bothner.com>
1220
1221         Print -verbose:message on "loading", not initialization.
1222         * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED):  Swap order.
1223         * defineclass.cc (_Jv_ClassReader::parse):  Print message if
1224         gcj::verbose_class_flag.
1225         * java/lang/natClass.cc (initializeClass):  Don't print message here.
1226         * java/lang/natClassLoader.cc (_Jv_WaitForState):  If state was
1227         _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1228         (_Jv_PrepareCompiledClass):  Likewise.
1229
1230 2004-07-18  Matthias Klose  <doko@debian.org>
1231
1232         * configure.in: Substitute target_noncanonical.
1233         * configure: Regenerate
1234
1235 2004-07-17  Michael Koch  <konqueror@gmx.de>
1236
1237         * java/lang/String.java: Fixed javadocs all over.
1238
1239 2004-07-17  Mark Wielaard  <mark@klomp.org>
1240
1241         * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1242         when size is smaller.
1243         * java/io/RandomAccessFile.java (setLength): Use truncate for
1244         shrinking the file and seek plus write for expanding the file.
1245
1246 2004-07-17  Michael Koch  <konqueror@gmx.de>
1247
1248         * gnu/java/nio/channels/natFileChannelPosix.cc
1249         (implTruncate): Always save current position. Only reposition file
1250         pointer to where we started if not beyond new lenght. Reposition file
1251         pointer to file length if it points beyond the end of file.
1252
1253 2004-07-17  Mark Wielaard  <mark@klomp.org>
1254
1255         * javax/swing/Box.java: Put FIXME comment above class declaration.
1256         * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1257         * javax/swing/JCheckBox.java: Likewise.
1258         * javax/swing/JDialog.java: Likewise.
1259         * javax/swing/JRadioButton.java: Likewise.
1260         * javax/swing/JToggleButton.java: Likewise.
1261         * javax/swing/UIManager.java: Likewise.
1262         * javax/swing/border/TitledBorder.java: Likewise.
1263         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1264         * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1265         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1266         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1267         * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1268         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1269         * javax/swing/text/JTextComponent.java: Likewise.
1270
1271 2004-07-17  Jeroen Frijters  <jeroen@frijters.net>
1272
1273         * java/net/DatagramPacket.java (setAddress): Removed check for
1274         null address.
1275
1276 2004-07-17  Michael Koch  <konqueror@gmx.de>
1277
1278         * java/net/DatagramSocket.java
1279         (getLocalAddress): Check if socket is bound or not.
1280         * java/net/Socket.java
1281         (getLocalAddrss): Check if socket is bound or not.
1282         (getPort): Return -1 when not connected. Dont check getImpl() for
1283         null.
1284         (setReuseAddress): Check if socket is closed.
1285         (isConnected): Check if getImpl() returns null.
1286
1287 2004-07-17  Mark Wielaard  <mark@klomp.org>
1288
1289         * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1290         on notifier object before calling notifyAll().
1291
1292 2004-07-17  Michael Koch  <konqueror@gmx.de>
1293
1294         * gnu/java/nio/channels/FileChannelImpl.java
1295         (finalize): Added javadoc.
1296
1297 2004-07-17  Guilhem Lavaux <guilhem@kaffe.org>
1298
1299         * java/text/CollationElementIterator.java
1300         (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1301         (setText): Use ArrayList instead of Vector.
1302
1303 2004-07-17  Michael Koch  <konqueror@gmx.de>
1304
1305         * java/nio/ByteOrder.java
1306         (static): Removed. Not needed.
1307         Thanks to Patrick Reali for noticing.
1308         * java/nio/charset/CharsetDecoder.java
1309         (decode): Fix for classpath bug #9177: Reset state before flipping.
1310
1311 2004-07-17  Michael Koch  <konqueror@gmx.de>
1312
1313         * java/security/Security.java: Fixed javadocs all over.
1314
1315 2004-07-17  Michael Koch  <konqueror@gmx.de>
1316
1317         * gnu/java/awt/EmbeddedWindow.java
1318         (static): Removed.
1319         (addNotify): Set peer via reflection.
1320         (setWindowPeer): Removed.
1321         * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1322         * Makefile.am (nat_source_files):
1323         Removed gnu/java/awt/natEmbeddedWindow.cc.
1324         * Makefile.in: Regenerated.
1325
1326 2004-07-17  Richard Earnshaw  <rearnsha@arm.com>
1327
1328         * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1329         assignment.
1330         * configure: Regenerated.
1331
1332 2004-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
1333
1334         * configure.in: Use build_noncanonical rather than build_alias.
1335         * configure: Rebuild.
1336
1337         * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1338         by logic refactoring.  Move default definition of NATIVE closer
1339         to first alternate definition.
1340         * configure: Regenerate.
1341
1342         * Makefile.am: Set ZIP and GCJH directly using autoconf.
1343         * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1344         gcj/Makefile.in: Regenerate.
1345         * configure.in: Set ZIP and GCJH.  Remove redundant condition
1346         in AM_CONDITIONAL(NATIVE,...)
1347         * configure: Regenerate.
1348
1349 2004-07-15  Nathanael Nerode  <neroden@gcc.gnu.org>
1350
1351         * configure.in: Use target_noncanonical rather than
1352         target_alias for forward-compatibility with autoconf 2.59.
1353         * configure: Regenerate.
1354         * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1355         testsuite/Makefile.am: Substitute target_noncanonical.
1356         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1357         testsuite/Makefile.in: Regenerate.
1358
1359         * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1360         Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1361         * acinclude.m4: Include acx.m4.
1362         * aclocal.m4: Regenerate.
1363         * configure: Regenerate.
1364
1365 2004-07-15  Bryce McKinlay  <mckinlay@redhat.com>
1366
1367         PR libgcj/16574
1368         * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1369         (decimalFormat): New static variable.
1370         (sbuf): Likewise.
1371         (getTime): New. Override Date.getTime().
1372         (toString): Synchronize. Use decimalFormat to format nanos value
1373         correctly. Truncate extra zeros.
1374         (before): Compare getNanos() only if getTime() is equal.
1375         (after): Likewise.
1376         
1377 2004-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1378
1379         * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1380         * configure.in: ...here.
1381         * aclocal.m4: Regenerate.
1382         * configure: Regenerate.
1383
1384         * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1385         * configure: Rebuilt with autoconf 2.13.
1386         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1387         testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1388
1389 2004-07-14  Bryce McKinlay  <mckinlay@redhat.com>
1390
1391         PR libgcj/16204
1392         * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1393         large file support.
1394         * Makefile.in: Rebuilt.
1395         * testsuite/libjava.lang/LargeFile.java: New test case.
1396         * testsuite/libjava.lang/LargeFile.out: New file.
1397
1398 2004-07-14  Jerry Quinn  <jlquinn@optonline.net>
1399
1400         * java/beans/EventHandler.java: Remove debugging statements.
1401
1402 2004-07-14  Jerry Quinn  <jlquinn@optonline.net>
1403
1404         * java/beans/EventHandler.java: New file.
1405         * Makefile.am (awt_java_source_files): Add EventHandler.java.
1406         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1407         testsuite/Makefile.in: Regenerate.
1408
1409 2004-07-14  Andreas Tobler  <a.tobler@schweiz.ch>
1410
1411         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1412         flag to the gcj_setup.
1413         (gcj_jacks_run): Check tclsh version and launch jacks directly with
1414         the tclsh.
1415         * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1416         deprecation flag change. 58 XFAILS removed.
1417
1418 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
1419
1420         * configure.host (DIVIDESPEC) [s390*-*-*]: Set to 
1421         -fno-use-divide-subroutine.
1422         * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1423         (HANDLE_FPE): Define.
1424         (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1425         (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1426         (HANDLE_DIVIDE_OVERFLOW): Define.
1427
1428 2004-07-14  Michael Koch  <konqueror@gmx.de> 
1429             Matthias Klose  <doko@debian.org> 
1430
1431         * java/awt/im/InputContext.java: Initialize in, line.
1432
1433 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
1434
1435         * interpret.cc (run): Correctly access libffi return values of
1436         integral smaller-than-int type; these are implicitly promoted.
1437
1438 2004-07-13  Bryce McKinlay  <mckinlay@redhat.com>
1439
1440         PR libgcj/7587
1441         * interpret.cc (compile_mutex): New.
1442         (_Jv_InitInterpreter): New. Initialize compile_mutex.
1443         (run): Lock compile_mutex before calling compile() if compilation is
1444         required.
1445         * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1446         * include/java-interp.h (_Jv_InitInterpreter): Declare. 
1447
1448 2004-07-12  Bryce McKinlay  <mckinlay@redhat.com>
1449
1450         PR libgcj/15713
1451         * include/jvm.h (_Jv_value): New union type.
1452         * gcj/field.h (_Jv_Field): Add new _addr union field variants 
1453         * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field 
1454         union members.
1455
1456 2004-07-12  Scott Gilbertson  <scottg@mantatest.com>
1457
1458         * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1459         * gnu/awt/xlib/XOffScreenImage.java
1460           (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1461           constructor argument. Add constructor using ImageProducer.
1462           (getSource): Implement.
1463           (imageComplete): New method.
1464           (setColorModel): New method.
1465           (setDimensions): New method.
1466           (setHints): New method.
1467           (setPixels): New method.
1468           (setProperties): New method.
1469         * gnu/gcj/xlib/GC.java (drawPoint): New native method. 
1470         * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1471
1472 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
1473
1474         PR libgcj/16478 
1475         * prims.cc (_Jv_CreateJavaVM): Fix comment.
1476         * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1477         (finalizerReady): Now native.
1478         (run): Likewise.
1479         (runFinalizers): Removed.
1480         * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1481         a primitive lock, and don't hold it while running the finalizers.
1482         (runFinalizers): Implement. Don't aquire any Java lock.
1483         (finalizerReady): Use lock primitives to signal finalizer thread.
1484
1485 2004-07-11  Mark Wielaard  <mark@klomp.org>
1486
1487         Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1488         * java/net/URLStreamHandler.java (parseURL): When url file part
1489         doesn't contain a '/' just ignore context.
1490
1491 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
1492
1493         * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1494         (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1495         (MAKE_THROW_FRAME): Do not modify PSW address.
1496         (INIT_SEGV): Install SIGINFO-style signal handler.
1497         (INIT_FPE): Likewise.
1498
1499 2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
1500
1501         * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1502         status. 21 xfail's removed, 1 added.
1503
1504 2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
1505
1506         * gcj/javaprims.h: Regenerate CNI namespace definitions.
1507
1508 2004-07-10  Ito Kazumitsu  <kaz@maczuka.gcd.org>
1509
1510         * java/text/MessageFormat.java
1511         (formatInternal): Append "{n}" if argument n is unavailable.
1512         (format(Object, StringBuffer, FieldPosition)): This
1513         should be equivalent to format(Object[],
1514         StringBuffer, FieldPosition).
1515
1516 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1517
1518         * java.util.Calendar.java (cache): New private static field. Cached
1519         mappings of locales->calendar classes.
1520         (ctorArgTypes): New private static field. Singleton argument for
1521         calendar class constructor lookup.
1522         (getInstance): Cache Locale->Calendar class mappings using HashMap.
1523         Optimize by bypassing reflection instantiation for the 
1524         GregorianCalendar case.
1525
1526 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1527
1528         * java/util/Calendar.java: Use getSystemClassLoader as argument for
1529         ResourceBundle.getBundle() calls.
1530         * java/util/GregorianCalendar.java: Likewise.
1531         * java/util/Currency.java: Likewise.
1532         * java/text/BreakIterator.java: Likewise.
1533         * java/text/Collator.java: Likewise.
1534         * java/text/DateFormat.java: Likewise.
1535         * java/text/DateFormatSymbols.java: Likewise.
1536         * java/text/DecimalFormatSymbols.java: Likewise.
1537         * java/text/NumberFormat.java: Likewise.
1538         * java/awt/Window.java: Likewise.       
1539
1540 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1541
1542         * java/util/ResourceBundle.java (bundleCache): Renamed from
1543         resourceBundleCache. Update comments.
1544         (getObject): Don't catch MissingResourceException.
1545         (getBundle(String)): Remove 'final'. Use system classloader if
1546         getCallingClassLoader returned null.
1547         (getBundle(String, Locale)): Likewise.
1548         (BundleKey): New private class. HashMap key for bundle cache lookup.
1549         (lookupKey): New. Singleton instance of BundleKey.
1550         (nullEntry): New. Cache entry to represent failed lookups.
1551         (getBundle(String, Locale, ClassLoader)): Re-written to use new 
1552         caching strategy, no-allocation lookup, and new tryBundle methods.
1553         (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle 
1554         name using given classloader.
1555         (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify 
1556         baseName for given Locale and attempt to load bundle.
1557
1558 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1559
1560         * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove 
1561         illegal protected method calls.
1562
1563 2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
1564
1565         Fix or remove some bogus test cases.
1566         * testsuite/libjava.compile/pr10459_2.java: Removed.
1567         * testsuite/libjava.compile/pr10459.java: Test using its own method,
1568         not Object.clone().
1569         * testsuite/libjava.compile/inner_data.java: Test against its own
1570         protected field.
1571
1572 2004-07-09  Michael Koch  <konqueror@gmx.de>
1573
1574         * scripts/unicode-muncher.pl: Updated to version 2.1
1575         from GNU classpath. Added some clarifications on where to find the
1576         needed files from www.unicode.org.
1577         * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1578         gnu/gcj/convert/UnicodeData-3.0.0.txt:
1579         Removed, these can directly be downloaded from www.unicode.org if
1580         needed. 
1581         * gnu/java/lang/CharData.java: Regenerated.
1582         * include/java-chartables.h: Regenerated.
1583         * Makefile.am (ordinary_java_source_files):
1584         Removed gnu/java/lang/CharData.java.
1585         * Makefile.in: Regenerated.
1586
1587 2004-07-09  Michael Koch  <konqueror@gmx.de>
1588
1589         * java/security/AccessControlContext.java,
1590         java/security/SecureClassLoader.java:
1591         Fixed javadocs.
1592
1593 2004-07-09  Michael Koch  <konqueror@gmx.de>
1594
1595         * java/io/ObjectInputStream.java (readFields): Use long datatype
1596         when shifting byte values more then 24 bits left.
1597
1598 2004-07-09  Michael Koch  <konqueror@gmx.de>
1599
1600         * java/util/zip/DeflaterOutputStream.java,
1601         java/util/zip/GZIPInputStream.java,
1602         java/util/zip/GZIPOutputStream.java,
1603         java/util/zip/InflaterInputStream.java:
1604         Reformatted. Added javadocs. Reordered all stuff.
1605         Renamed variables to be more clear.
1606
1607 2004-07-09  Michael Koch  <konqueror@gmx.de>
1608
1609         * javax/imageio/IIOException.java,
1610         javax/imageio/event/IIOReadProgressListener.java,
1611         javax/imageio/event/IIOReadUpdateListener.java,
1612         javax/imageio/event/IIOReadWarningListener.java,
1613         javax/imageio/event/IIOWriteProgressListener.java,
1614         javax/imageio/event/IIOWriteWarningListener.java:
1615         New files.
1616         * Makefile.am: Added new files.
1617         * Makefile.in: Regenerated.
1618
1619 2004-07-09  Guilhem Lavaux <guilhem@kaffe.org>
1620
1621         * java/text/RuleBasedCollator.java
1622         (mergeRules): Use ArrayList instead of Vector.
1623         (subParseString): likewise.
1624         (parseString): likewise.
1625         (buildCollationVector): likewise.
1626         (getCollationKey): likewise.
1627
1628 2004-07-09  Dalibor Topic  <robilad@kaffe.org>
1629
1630         * java/text/DateFormat.java (parse):
1631         Improved javadoc. Improved exception message.
1632
1633 2004-07-09  Mark Wielaard  <mark@klomp.org>
1634
1635         * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1636         interrupted() method to clear interupt flag of our Thread.
1637
1638 2004-07-09  Dalibor Topic  <robilad@kaffe.org>
1639
1640         * java/nio/Buffer.java,
1641         java/nio/ByteBuffer.java,
1642         java/nio/ByteBufferHelper.java,
1643         java/nio/ByteBufferImpl.java,
1644         java/nio/CharBuffer.java,
1645         java/nio/CharBufferImpl.java,
1646         java/nio/CharViewBufferImpl.java,
1647         java/nio/DirectByteBufferImpl.java,
1648         java/nio/DoubleBuffer.java,
1649         java/nio/DoubleBufferImpl.java,
1650         java/nio/DoubleViewBufferImpl.java,
1651         java/nio/FloatBuffer.java,
1652         java/nio/FloatBufferImpl.java,
1653         java/nio/FloatViewBufferImpl.java,
1654         java/nio/IntBuffer.java,
1655         java/nio/IntBufferImpl.java,
1656         java/nio/IntViewBufferImpl.java,
1657         java/nio/LongBuffer.java,
1658         java/nio/LongBufferImpl.java,
1659         java/nio/LongViewBufferImpl.java,
1660         java/nio/MappedByteBufferImpl.java,
1661         java/nio/ShortBuffer.java,
1662         java/nio/ShortBufferImpl.java,
1663         java/nio/ShortViewBufferImpl.java:
1664         Fixed javadocs all over. Improved input error
1665         checking.
1666
1667         * java/nio/Buffer.java
1668         (checkForUnderflow, checkForOverflow, checkIndex,
1669         checkIfReadOnly, checkArraySize): New helper methods
1670         for error checking.
1671
1672         * java/nio/ByteBufferHelper.java
1673         (checkRemainingForRead, checkRemainingForWrite,
1674         checkAvailableForRead, checkAvailableForWrite): Removed
1675         no longer needed methods.
1676
1677 2004-07-09  Michael Koch  <konqueror@gmx.de>
1678
1679         * gnu/regexp/CharIndexedInputStream.java:
1680         Reordered imports to match classpath.
1681
1682 2004-07-09  Michael Koch  <konqueror@gmx.de>
1683
1684         * gnu/java/awt/EmbeddedWindow.java:
1685         Load native library for setWindowPeer method.
1686
1687 2004-07-08  Randolph Chung  <tausq@debian.org>
1688
1689         * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1690         * configure: Regenerate.
1691         * configure.host: Set can_unwind_signal for hppa*-linux.
1692         * include/pa-signal.h: New file.
1693
1694 2004-07-07  Per Bothner  <per@bothner.com>
1695
1696         * Makefile.am:  Add rules to build libgij from just gij.cc.
1697
1698         * include/jvm.h (namespace jcj):  Declare verbose_class_flag
1699         * java/lang/natClass.cc (gcj::verbose_class_flag):  New variable.
1700         (initializeClass):  If verbose_class_flag, print message.
1701         * gij.cc (main):  Handle -verbose:class flag.
1702
1703 2004-07-07  Andreas Tobler  <a.tobler@schweiz.ch>
1704
1705         * configure.host: Enable hash synchronization on Darwin.
1706         * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1707         ';', since this is a comment on Darwin.
1708         (compare_and_swap_release): Likewise.
1709
1710 2004-07-06  Mohan Embar  <gnustuff@thisiscool.com>
1711
1712         * java/net/URLStreamHandler.java (parseURL): Canonicalize
1713         file portion of URL in addition to spec for file: protocol.
1714
1715 2004-07-05  Anthony Green  <green@redhat.com>
1716
1717         * java/io/File.java (toURI): Merge from Classpath.
1718
1719 2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
1720
1721         * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1722         before passing to URL constructor. Rethrow any MalformedURLException
1723         as a RuntimeException. Catch MalformedURLException specifically, not
1724         all exceptions.
1725
1726 2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
1727
1728         * java/util/Locale.java (readObject): Intern strings read from object
1729         stream.
1730
1731 2004-07-04  Michael Koch  <konqueror@gmx.de>
1732
1733         * gnu/gcj/runtime/FirstThread.java,
1734         gnu/gcj/runtime/natFirstThread.cc: Removed.
1735         * gnu/java/lang/MainThread.java,
1736         gnu/java/lang/natMainThread.cc: New files.
1737         * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1738         * Makefile.am: Added new files and removed deleted ones.
1739         * Makefile.in: Regenerated.
1740
1741 2004-07-03  Mark Wielaard  <mark@klomp.org>
1742             Anthony Green  <green@redhat.com>
1743
1744         * java/net/URL.java (getFile): Clarify return value doc.
1745         (getPath): Return null if file is empty - not empty String.
1746         (set): Convert protocol to lower case before doing anything.
1747         Only change the protocol handler if it's different.
1748
1749 2004-07-03  Anthony Green  <green@redhat.com>
1750
1751         * java/net/URL.java (URL): Convert protocol to lower case before
1752         doing anything, so we getURLStreamHandler() with the proper value.
1753
1754 2004-07-02  Bryce McKinlay  <mckinlay@redhat.com>
1755
1756         * java/util/Locale.java (hashcode): Made transient.
1757         (hashCode): No longer synchronized.
1758         (equals): Remove comment.
1759         (writeObject): No longer synchronized. Implement using writeObject 
1760         calls instead of tweaking hashCode field. Update doc.
1761         (readObject): Implement using readObject calls.
1762
1763 2004-06-26  Geoffrey Keating  <geoffk@apple.com>
1764             Andreas Tobler  <a.tobler@schweiz.ch>
1765
1766         * configure.host (powerpc-*-darwin*): New case, define
1767         can_unwind_signal.
1768         * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1769         * configure: Regenerate.
1770         * include/darwin-signal.h: New.
1771
1772 2004-06-30  Jerry Quinn  <jlquinn@optonline.net>
1773
1774         * java/beans/Statement.java (doExecute): Fix formatting.
1775
1776 2004-06-29  Per Bothner  <per@bothner.com>
1777
1778         * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
1779         etc etc):  Remove needless parenthesis, which causes __stdcall__
1780         attribute on MinGW to get ignored.
1781
1782 2004-06-29  Bryce McKinlay  <mckinlay@redhat.com>
1783
1784         * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
1785
1786 2004-06-28  Bryce McKinlay  <mckinlay@redhat.com>
1787
1788         * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
1789
1790 2004-06-28  Jerry Quinn  <jlquinn@optonline.net>
1791
1792         * java/beans/Expression.java: New file.
1793         * java/beans/Statement.java: New file.
1794         * Makefile.am: Added new files.
1795         * Makefile.in: Re-generate.
1796
1797 2004-06-27 Mark Wielaard  <mark@klomp.org>
1798
1799         * java/io/FilePermission.java (usingPerms): Removed.
1800         (actionsString): Made final.
1801         (cachePerms): Renamed to checkPerms.
1802         (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
1803         on action String.
1804         (FilePermission): Check arguments, call checkPerms().
1805         (equals): Remove cachePerms() call.
1806         (implies): Likewise.
1807
1808 2004-06-27  Mark Wielaard  <mark@klomp.org>
1809
1810         * gnu/java/net/protocol/http/Connection.java (userAgent): New static
1811         final field.
1812         (sendRequest): Use new field in user-agent http agent.
1813
1814 2004-06-27  Mark Wielaard  <mark@klomp.org>
1815
1816         * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1817         when argument is null.
1818
1819 2004-06-26  Mark Wielaard  <mark@klomp.org>
1820
1821         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1822         (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
1823         GetMethodID call.
1824         (cancel_clicked): Likewise.
1825
1826 2004-06-26  Andreas Tobler  <a.tobler@schweiz.ch>
1827
1828         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1829         (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
1830         can not calculate the right value.
1831         (dpi_changed_cb): Likewise. Mark *pspec as unused.
1832
1833 2004-06-24  Bryce McKinlay  <mckinlay@redhat.com>
1834
1835         * testsuite/libjava.jacks/jacks.xfail: Remove
1836         15.9.1-qualified-concrete-20.
1837
1838 2004-06-22  Bryce McKinlay  <mckinlay@redhat.com>
1839
1840         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
1841         encoding name to iconv.
1842         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1843
1844 2004-06-22  Bryce McKinlay  <mckinlay@redhat.com>
1845
1846         PR libgcj/16134:
1847         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize 
1848         encoding name before cache lookup. Thanks to Hannes Wallnoefer.
1849         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
1850
1851 2004-06-21  Andrew Haley  <aph@redhat.com>
1852
1853         * java/io/ObjectOutputStream.java: Add DEBUG statements
1854         everywhere.
1855         (dumpElementln): New method.
1856         (depth): New field.
1857         * java/io/ObjectInputStream.java
1858         (currentClassLoader): Make native.
1859         (callersClassLoader): New field.
1860         (depth): New field.
1861         (readObject): ENDBLOCKDATA is generated if the class has a write
1862         method, not if it has a read method.
1863         (readObject): Save and restore this.currentObject and
1864         this.currentObjectStreamClass around calls to callReadMethod().
1865         * java/io/natObjectInputStream.cc (getCallersClassLoader): New
1866         method.
1867
1868 2004-06-18  Andreas Tobler  <a.tobler@schweiz.ch>
1869
1870         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
1871         darwin.
1872
1873 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
1874
1875         * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
1876         if desired, before the default class loader is initialised.
1877         Call INIT_SEGV only if HANDLE_SEGV is defined.
1878
1879 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
1880
1881         * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
1882         directory only if it actually exists.
1883
1884 2004-06-18  Graydon Hoare  <graydon@redhat.com>
1885
1886         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
1887         Fix up non-ansi comments.
1888
1889 2004-06-18  Ranjit Mathew  <rmathew@hotmail.com>
1890
1891         * javax/swing/text/AbstractDocument.java: Adding missing import
1892         for javax.swing.event.EventListenerList.
1893         * javax/swing/text/DefaultCaret.java: Likewise.
1894
1895 2004-06-17  Michael Koch  <konqueror@gmx.de>
1896
1897         * javax/swing/JToolBar.java
1898         (name): Removed.
1899         (JToolBar): Use Component.setName(String) instead of doing it all
1900         alone.
1901         * javax/swing/Timer.java
1902         (queueEvent): Added missing modifier.
1903
1904 2004-06-17  Olga Rodimina  <rodimina@redhat.coom>
1905
1906         * Makefile.am: Added new file.
1907         * Makefile.in: Re-generate.
1908         * javax/swing/JMenu.java:
1909         (insertSeparator): Implemented.
1910         * javax/swing/JPopupMenu.java:
1911         (JPopupMenu.Separator): Implemented.
1912         * javax/swing/MenuSelectionManager.java:
1913         (processMouseEvent): Use java.awt.Component 
1914         for event source instead of javax.swing.JComponent. 
1915         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
1916         New File. Implemented.
1917         
1918 2004-06-16  David Jee  <djee@redhat.com>
1919
1920         * java/awt/GridBagLayout.java
1921         (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
1922         Make sure pos_x and pos_y are never negative.
1923
1924 2004-04-16  Andrew Overholt  <overholt@redhat.com>
1925
1926         * Makefile.am: Add new file.
1927         * Makefile.in: Re-generate.     
1928         * javax/swing/JToolBar.java
1929         Partially implemented.
1930         * javax/swing/plaf/basic/BasicToolBarUI.java
1931         New file. Partially implemented.
1932
1933 2004-06-16  Graydon Hoare  <graydon@redhat.com>
1934
1935         * gnu/java/awt/peer/gtk/GdkGraphics2D.java 
1936         (setComposite): Accept AlphaComposite arguments.
1937         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1938         (createBufferedImage): Add new overloads.
1939         * gnu/java/awt/peer/gtk/GtkToolkit.java
1940         (createImage): Use GdkPixbufDecoder.createBufferedImage
1941         when useGraphics2D() is true.
1942         (getImage): Delegate to createImage.
1943         * javax/swing/JList.java
1944         (isSelectionEmpty):
1945         (getFirstVisibleIndex):
1946         (getLastVisibleIndex):
1947         (setSelectedValue):
1948         (ensureIndexIsVisible): New methods.
1949         * javax/swing/Timer.java: Reimplement.
1950
1951 2004-06-16  Michael Koch  <konqueror@gmx.de>
1952
1953         * javax/swing/text/AbstractDocument.java
1954         (AbstracElement): Made public, implements java.io.Serializable.
1955         (AttributeContext): Made public.
1956         (BranchElement): Likewise.
1957         (Content): Likewise.
1958         (DefaultDocumentEvent): Made public, extends
1959         javax.swing.undo.CompoundEdit.
1960         (ElementEdit): Made public, extends
1961         javax.swing.undo.AbstractUndoableEdit.
1962         (LeafElement): Made public.
1963         (LeafElement.LeafElement): Made public.
1964
1965 2004-06-16  Michael Koch  <konqueror@gmx.de>
1966
1967         * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
1968         methods (that were obviously never be intended to get included hi this
1969         class. Added some methods too.
1970
1971 2004-06-16  Michael Koch  <konqueror@gmx.de>
1972
1973         * javax/swing/text/PlainDocument.java
1974         (serialVersionUID): New constant.
1975         (lineLimitAttribute): Likewise.
1976         (tabSizeAttribute): Likewise.
1977         (tabSize): New field.
1978         (PlainDocument): Made public.
1979         (PlainDocument): New constructor.
1980
1981 2004-06-16  Michael Koch  <konqueror@gmx.de>
1982
1983         * javax/swing/text/AbstractDocument.java
1984         (insertString): Throws BadLocationException.
1985         * javax/swing/text/Document.java
1986         (insertString): Likewise.
1987         * javax/swing/text/JTextComponent.java:
1988         Javadocs and comments cleaned up.
1989
1990 2004-06-16  Michael Koch  <konqueror@gmx.de>
1991
1992         * javax/swing/event/UndoableEditListener.java: Reformatted.
1993         * javax/swing/text/AbstractDocument.java
1994         (AbstractDocument): Implements java.io.Serializable.
1995         (doc_list): Removed.
1996         (undo_list): Removed.
1997         (AbstractElement.serialVerionUID): New field.
1998         (BranchElement.serialVerionUID): Likewise.
1999         (DefaultDocumentEvent.serialVerionUID): Likewise.
2000         (ElementEdit.serialVerionUID): Likewise.
2001         (LeafElement.serialVerionUID): Likewise.
2002         (serialVerionUID): Likewise.
2003         (BAD_LOCATION): New constant.
2004         (BidiElementName): Likewise.
2005         (ContentElementName): Likewise.
2006         (ParagraphElementName): Likewise.
2007         (SectionElementName): Likewise.
2008         (ElementNameAttribute): Likewise.
2009         (AbstractDocument): Made protected.
2010         (AbstractDocument): New construtor.
2011         (listenerList): New field.
2012         (fireChangedUpdate): Implemented.
2013         (fireInsertUpdate): Likewise.
2014         (fireRemoveUpdate): Likewise.
2015         (fireUndoableEditUpdate): Likewise.
2016         (getListeners): Likewise.
2017         (addDocumentListener): Likewise.
2018         (removeDocumentListener): Likewise.
2019         (addUndoableEditListener): Likewise.
2020         (removeUndoableEditListener): Likewise.
2021         (getDocumentListeners): New method.
2022         (getUndoableEditListeners): Likewise.
2023         (getAsynchronousLoadPriority): Made public.
2024         (getBidiRootElement): Likewise.
2025         (setAsynchronousLoadPriority): Likewise.
2026         (setDocumentProperties): Likewise.
2027         * javax/swing/text/BadLocationException.java
2028         (serialVerionUID): New field.
2029         * javax/swing/text/DefaultCaret.java
2030         (changeEvent): New field.
2031         (listenerList): Likewise.
2032         (changes): Removed.
2033         (addChangeListener): Reimplemented.
2034         (removeChangeListener): Likewise.
2035         (getListeners): New method.
2036         (getChangeListeners): Likwise.
2037         (getComponent): Likewise.
2038         * javax/swing/text/GapContent.java
2039         (GapContent): Implements java.io.Serializable.
2040         (serialVerionUID): New field.
2041
2042 2004-06-16  Michael Koch  <konqueror@gmx.de>
2043
2044         * javax/swing/JTree.java
2045         (treeModel): New field.
2046         (JTree): New constructors, one existing one made public.
2047         (createTreeModel): New method.
2048         (addTreeExpansionListener): Likewise.
2049         (removeTreeExpansionListener): Likewise.
2050         (getTreeExpansionListeners): Likewise.
2051         (fireTreeCollapsed): Likewise.
2052         (fireTreeExpanded): Likewise.
2053         (addTreeSelectionListener): Likewise.
2054         (removeTreeSelectionListener): Likewise.
2055         (getTreeSelectionListeners): Likewise.
2056         (fireValueChanged): Likewise.
2057         (addTreeWillExpandListener): Likewise.
2058         (removeTreeWillExpandListener): Likewise.
2059         (getTreeWillExpandListeners): Likewise.
2060         (fireTreeWillCollapse): Likewise.
2061         (fireTreeWillExpand): Likewise.
2062
2063 2004-06-16  Michael Koch  <konqueror@gmx.de>
2064
2065         * javax/swing/JTree.java: Reformatted.
2066
2067 2004-06-16  Michael Koch  <konqueror@gmx.de>
2068
2069         * javax/swing/JTextArea.java: New file.
2070         * javax/swing/JTextField.java
2071         (actions): Removed.
2072         (notifyAction): New constant.
2073         (columns): New field.
2074         (JTextField): New constructors.
2075         (createDefaultModel): New method.
2076         (addActionListener): Reimplmemented.
2077         (removeActionListener): Reimplemented.
2078         (getActionListeners): New method.
2079         (fireActionPerformed): New method.
2080         (getColumns): New method.
2081         (setColumne): New method.
2082         * javax/swing/text/JTextComponent.java
2083         (AccessibleJTextComponent.serialVersionUID): New field.
2084         (serialVersionUID): Likewise.
2085         (DEFAULT_KEYMAP): Likewise.
2086         (FOCUS_ACCELERATOR_KEY): Likewise.
2087         (doc): Made private.
2088         (icon_gap): Likewise.
2089         (icon): Likewise.
2090         (align): Likewise.
2091         (JTextComponent): Some constructors removed.
2092         (getScrollableTracksViewportHeight): New method.
2093         (getScrollableTracksViewportWidth): Likewise.
2094         * Makefile.am: Added javax/swing/JTextArea.java.
2095         * Makefile.in: Regenerated.
2096
2097 2004-06-15  Graydon Hoare  <graydon@redhat.com>
2098
2099         * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2100         * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2101         * javax/swing/JViewport.java 
2102         (getExtentSize): Return size rather than preferred size.
2103         (toViewCoordinates): New methods.
2104         (getViewSize): Return size rather than preferred size.
2105         (setViewSize): Note view size as set.
2106         * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2107         * javax/swing/plaf/basic/BasicScrollBarUI.java 
2108         (getPreferredSize): Don't redo layout.
2109         * javax/swing/plaf/basic/BasicViewportUI.java 
2110         (paint): Translate image properly and eat exceptions.
2111
2112 2004-06-15  Kim Ho  <kho@redhat.com>
2113
2114         * javax/swing/JTabbedPane.java
2115         (setComponent): Remove old component and
2116         add new component.
2117         (setSelectedIndex): Don't operate on the 
2118         components if they're null. Don't set index
2119         on the model if the index is the same.
2120         (insertTab): Don't add or hide the component
2121         if it's null. Repaint the container.
2122         * javax/swing/plaf/basic/BasicLookAndFeel.java
2123         Change colors for TabbedPane.
2124         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2125         (mousePressed): Re-layout and paint the component.
2126         (layoutContainer): Don't set location on the view.
2127         (ScrollingViewport::paint): Remove.
2128
2129 2004-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2130
2131         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2132         (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2133
2134         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2135         Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2136         dividing by PANGO_SCALE.  Call gdk_flush before leaving GDK
2137         critical region.
2138         (drawLine): Call gdk_flush before leaving GDK critical region.
2139         (fillRect): Likewise.
2140         (drawRect): Likewise.
2141         (copyArea): Likewise.
2142         (copyPixmap): Likewise.
2143         (clearRect): Likewise.
2144         (drawArc): Likewise.
2145         (drawPolyline): Likewise.
2146         (drawPolygon): Likewise.
2147         (fillPolygon): Likewise.
2148         (fillArc): Likewise.
2149         (drawOval): Likewise.
2150         (fillOval): Likewise.
2151
2152         * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2153         style parameter.
2154         (GdkFontMetrics): Add style argument to initState call.
2155         (stringWidth(String,int,int,String)): Add style parameter.
2156         (stringWidth(String)): Add style argument to stringWidth call.
2157         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2158         (initState): Set pango font style and weight based on AWT style
2159         parameter.  Pass default GTK language to
2160         pango_context_get_metrics.  Use PANGO_PIXELS macro rather than
2161         simply dividing by PANGO_SCALE.
2162         (stringWidth): Set pango font style and weight based on AWT style
2163         parameter.
2164
2165         * java/awt/Button.java (next_button_number): New field.
2166         (paramString): Change output.
2167         (generateName): New method.
2168         (getUniqueLong): New method.
2169
2170 2004-06-14  Kim Ho  <kho@redhat.com>
2171
2172         * javax/swing/JTabbedPane.java:
2173         (setComponentAt): Set the component, not
2174         the enabled status.
2175         * javax/swing/plaf/basic/BasicDesktopIconUI.java
2176         (actionPerformed): Let deiconize catch exception.
2177
2178 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2179
2180         * javax/swing/JPopupMenu.java:
2181         (setVisible): Corrected location of a 
2182         heavyweight popup menu.
2183
2184 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2185
2186         * javax/swing/MenuSelectionManager.java: 
2187         Ran through jalopy to fix formatting style.
2188
2189 2004-06-14  Olga Rodimina  <rodimina@redhat.com>
2190         
2191         * javax/swing/JLayeredPane.java: 
2192         (remove): Revalidate and repaint layered pane after
2193         the component was removed.
2194         javax/swing/JMenu.java:
2195         (setVisible): Display popup menu at the user location,
2196         if one was set by the user.
2197         (setMenuLocation): Reimplemented. Fixed javadoc.
2198         * javax/swing/JMenuBar.java: Added javadoc.
2199         (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2200         (MODEL_CHANGED_PROPERTY): New Property.
2201         (isSelected): Implemented.
2202         (setBorderPainted): Fire PropertyChangeEvent
2203         if paintBorder property changes.
2204         (setSelected): Implemented.
2205         (setSelectionModel): Implemented.
2206         * javax/swing/JPopupMenu.java: Added Javadoc
2207         (pack): Implemented.
2208         (setVisible): Reimplemented.
2209         (show): Fixed location.
2210         (JPopupMenu.LigthWeightPopup): Reimplemented to use
2211         Container instead of JPanel.
2212         * javax/swing/MenuSelectionManager.java: Added Javadocs.
2213         (clearSelectedPath): Reimplemented to clear selectedPath
2214         in reverse order.
2215         (processMouseEvent): Reimplemented.
2216         (setSelectedPath): Fire stateChange event indicating that
2217         selected menu path has changed.
2218         (getPath): Change to use ArrayList instead of Vector.
2219         * javax/swing/plaf/basic/BasicMenuBarUI.java:
2220         (installUI): call installKeyboardActions().
2221         (uninstallUI): call uninstallKeyboardActions().
2222
2223 2004-06-13  Michael Koch  <konqueror@gmx.de>
2224
2225         * javax/swing/text/DefaultCaret.java,
2226         javax/swing/text/BadLocationException.java:
2227         Reformatted.
2228
2229 2004-06-12  Thomas Fitzsimmons  <fitzsim@redhat.com>
2230
2231         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2232         DEFAULT_COLS): New variables.
2233         (create): Don't allow 0 rows or 0 columns.  Instead, set the
2234         values to DEFAULT_ROWS or DEFAULT_COLS.
2235         (getMinimumSize): Likewise.
2236         (getPreferredSize): Likewise.
2237         (minimumSize): Likewise.
2238         (preferredSize): Likewise.
2239         (create): Set peer's editable state.
2240         * java/awt/TextArea.java (TextArea()): Set rows and columns to
2241         zero.  Update javadocs.
2242         (TextArea(String)): Likewise.
2243         (TextArea(int,int)): Fix javadocs.
2244         (TextArea(String,int,int,int)): Only throw exception if one of
2245         rows or columns is zero.  Fix javadocs.
2246
2247 2004-06-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
2248
2249         * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2250         addition to Components.
2251
2252         * java/awt/MenuItem.java (dispatchEventImpl): If the event
2253         wasn't consumed by normal processing, send it to the parent
2254         menu.
2255
2256         * gnu/java/awt/peer/gtk/GtkImagePainter.java
2257         (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2258         translation.
2259
2260 2004-06-11  David Jee  <djee@redhat.com>
2261
2262         * java/awt/MediaTracker.java
2263         (addImage(Image,int)): Call imageUpdate() to udpate image status.
2264         (addImage(Image,int,int,int)): Likewise.
2265
2266 2004-06-11  Michael Koch  <konqueror@gmx.de>
2267
2268         * javax/swing/text/AbstractDocument.java,
2269         javax/swing/text/Document.java,
2270         javax/swing/text/GapContent.java,
2271         javax/swing/text/JTextComponent.java,
2272         javax/swing/text/PlainDocument.java:
2273         Reformatted.
2274
2275 2004-06-11  Michael Koch  <konqueror@gmx.de>
2276
2277         * javax/swing/JRootPane.java
2278         (AccessibleJRootPane.serialVersionUID): New field.
2279         (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2280         (AccessibleJRootPane.getAccessibleRole): New method.
2281         (RootLayout): Implements Serializable.
2282         (RootLayout.serialVersionUID): New field.
2283         (RootLayout.RootLayout): New constructor.
2284         (setJMenuBar): Made public.
2285         (getJMenuBar): Likewise.
2286         (JRootPane): Likewise.
2287         (createContentPane): Likewise.
2288         (createGlassPane): Likewise.
2289         (createLayeredPane): Likewise.
2290
2291 2004-06-11  Michael Koch  <konqueror@gmx.de>
2292
2293         * javax/swing/SwingUtilities.java
2294         (isLeftMouseButton): Fixed javadoc.
2295         (isMiddleMouseButton): Likewise.
2296         (isRightMouseButton): Likewise.
2297
2298 2004-06-11  Michael Koch  <konqueror@gmx.de>
2299
2300         * javax/swing/JScrollPane.java
2301         (serialVersionUID): New field.
2302         (columnHeader): Made protected.
2303         (rowHeader): Likewise.
2304         (lowerLeft): Likewise.
2305         (lowerRight): Likewise.
2306         (upperLeft): Likewise.
2307         (upperRight): Likewise.
2308         (horizontalScrollBar): Likewise.
2309         (horizontalScrollBarPolicy): Likewise.
2310         (verticalScrollBar): Likewise.
2311         (verticalScrollBarPolicy): Likewise.
2312         (viewport): Likewise.
2313
2314 2004-06-11  Michael Koch  <konqueror@gmx.de>
2315
2316         * javax/swing/LookAndFeel.java: Fixed javadocs.
2317
2318 2004-06-11  Michael Koch  <konqueror@gmx.de>
2319
2320         * javax/swing/JEditorPane.java: Fixed javadocs.
2321         (JEditorPane): Removed redundant call to to this().
2322         (fireHyperlinkUpdate): Implemented.
2323
2324 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2325
2326         * javax/swing/JMenu.java: Fixed file name 
2327         in the file comment.
2328
2329 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2330
2331         * javax/swing/JMenu.java: Added javadoc.
2332         (JMenu): Added MenuChangeListener to listen to 
2333         ChangeEvents occuring in menu's model. 
2334         (insert): Throw IllegalArgumentException if 
2335         index is less than 0
2336         (setSelected): Reimplement.
2337         (setPopupMenuVisible): Call menu's model isEnabled()
2338         (setDelay): Throw IllegalArgumentException if 
2339         given amount of delay is less than 0.
2340         (createActionComponent): Implemented.
2341         (createActionChangeListener): Implemented.
2342         (addSeparator): Implemented.
2343         (getItem): Throw IllegalArgumentException if index is 
2344         less than 0.
2345         (getItemCount): Implemented.
2346         (fireMenuSelected): Changed to use menuEvent.
2347         (fireMenuDeselected): Likewise.
2348         (fireMenuCanceled): Likewise.
2349         (setAccelerator): Changed to throw an error if this 
2350         method is used. 
2351         (doClick): Implemented.
2352         (JMenu.ActionChangedListener): New inner class to handle
2353         PropertyChangeEvents occuring in the actions associated with menu.
2354         * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2355         (BasicMenuUI): Added PropertyChangeListener to the menu.
2356         (createChangeListener): Implemented.
2357         (createMenuDragMouseListener): Likewise.
2358         (createMenuKeyListener): Likewise.
2359         (createPropertyChangeListener): Likewise.
2360         (uninstallListeners): Likewise.
2361         (BasicMenuUI.MouseInputHandler): Reimplemented.
2362         (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2363         (BasicMenuUI.ChangeHandler): Likewise.
2364         (BasicMenuUI.MenuDragMouseHandler): Likewise.
2365         (BasicMenuUI.MenuKeyHandler): Likewise.
2366
2367 2004-06-10  David Jee  <djee@redhat.com>
2368
2369         * java/awt/MediaTracker.java
2370         (imageUpdate): Only do notifyAll() if the image is complete.
2371
2372 2004-06-10  Olga Rodimina  <rodimina@redhat.com>
2373
2374         * javax/swing/JApplet.java:
2375         (getJMenuBar): Made public.
2376         (setJMenuBar): Likewise.
2377         * javax/swing/JFrame.java:
2378         (getJMenuBar): Made public.
2379         (setJMenuBar): Likewise.
2380         * javax/swing/JWindow.java:
2381         (getJMenuBar): Removed.
2382         (setJMenuBar): Removed.
2383
2384 2004-06-10  Michael Koch  <konqueror@gmx.de>
2385
2386         * javax/swing/JEditorPane.java
2387         (createEditorKitForContentType): Fixed visibility.
2388         (fireHyperlinkUpdate): Likewise.
2389         (getContentType): Likewise.
2390         (getEditorKit): Likewise.
2391         (getEditorKitForContentType): Likewise.
2392         (getPage): Likewise.
2393         (read): Likewise.
2394         (registerEditorKitForContentTyoe): Likewise.
2395         (replaceSelection): Likewise.
2396         (setContentType): Likewise.
2397         (setEditorKit): Likewise.
2398         (setPage): Likewise.
2399
2400 2004-06-10  Michael Koch  <konqueror@gmx.de>
2401
2402         * javax/swing/Timer.java
2403         (Timer): New constructor.
2404         * javax/swing/plaf/basic/BasicProgressBarUI.java
2405         (animationTimer): Don't initialize at construction.
2406         (startAnimationTimer): Added since tag.
2407         (stopAnimationTimer): Likewise.
2408         (installUI): Use new Timer constructor.
2409         * javax/swing/plaf/basic/BasicScrollBarUI.java
2410         (installUI): Likewise.
2411         * javax/swing/plaf/basic/BasicSliderUI.java
2412         (installUI): Likewise.
2413
2414 2004-06-10  Michael Koch  <konqueror@gmx.de>
2415
2416         * javax/swing/ButtonGroup.java
2417         (serialVersionUID): Made private.
2418         (buttons): Renamed from v, added javadoc.
2419         (sel): Added javadoc.
2420         (ButtonGroup): Likewise.
2421         (add): Likewise.
2422         (remove): Likewise.
2423         (getElements): Likewise.
2424         (getSelection): Likewise.
2425         (setSelected): Likewise.
2426         (isSelected): Likewise.
2427         (getButtonCount): Likewise.
2428
2429 2004-06-10  Michael Koch  <konqueror@gmx.de>
2430
2431         * javax/swing/ButtonGroup.java,
2432         javax/swing/ImageIcon.java,
2433         javax/swing/JEditorPane.java,
2434         javax/swing/JRootPane.java,
2435         javax/swing/JTextField.java,
2436         javax/swing/LookAndFeel.java,
2437         javax/swing/plaf/basic/BasicTextUI.java:
2438         Reindented.
2439
2440 2004-06-10  Michael Koch  <konqueror@gmx.de>
2441
2442         * javax/swing/text/Style.java: Added javadocs.
2443
2444 2004-06-10  Michael Koch  <konqueror@gmx.de>
2445
2446         * javax/swing/JComponent.java
2447         (fireVetoableChange): Removed redundant cast.
2448         * javax/swing/JLabel.java
2449         (getDisabledIcon): Save icon for next call.
2450
2451 2004-06-10  Michael Koch  <konqueror@gmx.de>
2452
2453         * javax/swing/KeyStroke.java
2454         (getKeyStroke(char,boolean)): Marked deprecated.
2455
2456 2004-06-10  Michael Koch  <konqueror@gmx.de>
2457
2458         * javax/swing/DefaultCellEditor.java,
2459         javax/swing/GrayFilter.java,
2460         javax/swing/event/DocumentEvent.java,
2461         javax/swing/text/JTextComponent.java,
2462         javax/swing/text/MutableAttributeSet.java:
2463         Reindented.
2464
2465 2004-06-10  Michael Koch  <konqueror@gmx.de>
2466
2467         * javax/swing/plaf/BorderUIResource.java:
2468         Added serialVersionUID all over.
2469
2470 2004-06-10  Sascha Brawer  <brawer@dandelis.ch>
2471
2472         * javax/swing/undo/UndoManager.java: Re-written from scratch.
2473
2474 2004-06-10  Michael Koch  <konqueror@gmx.de>
2475
2476         * javax/swing/table/DefaultTableCellRenderer.java
2477         (noFocusBorder): Initialize directly.
2478
2479 2004-06-10  Michael Koch  <konqueror@gmx.de>
2480
2481         * javax/swing/plaf/basic/BasicArrowButton.java
2482         (setDirection): Use method argument.
2483
2484 2004-06-10  Michael Koch  <konqueror@gmx.de>
2485
2486         * javax/swing/plaf/BorderUIResource.java,
2487         javax/swing/plaf/ComponentUI.java,
2488         javax/swing/undo/CompoundEdit.java,
2489         javax/swing/undo/StateEdit.java:
2490         Fixed javadocs all over.
2491
2492 2004-06-10  Michael Koch  <konqueror@gmx.de>
2493
2494         * javax/swing/DefaultButtonModel.java
2495         (ARMED): Made public final, fixed value.
2496         (ENABLED): Likewise.
2497         (PRESSED): Likewise.
2498         (ROLLOVER): Likewise.
2499         (SELECTED): Likewise.
2500         (stateMask): Initialize directly.
2501         (listenerList): Likewise.
2502         (mnemonic): Likewise.
2503         (fireStateChanged): Removed argument, use changeEvent as event.
2504         All places where this method is called are fixed too.
2505         (getActionCommant): Fixed javadoc.
2506         (setGroup): Fixed javadoc.
2507         (getGroup): New method.
2508
2509 2004-06-09  Olga Rodimina <rodimina@redhat.com>
2510
2511         * javax/swing/AbstractButton.java
2512         (AbstractButton): Use init() to initialize the button.
2513         (init): New Method. Initializes AbstractButton.
2514         * javax/swing/JMenuItem.java: Documented.
2515         (JMenuItem): Reimplemented.
2516         (init): Implemented.
2517         (setEnabled): Changed to call super.setEnabled()
2518         (processMouseEvent): Reimplemented.
2519         (fireMenuKeyPressed): Implemented.
2520         (fireMenuKeyReleased): Implemented.
2521         (fireMenuKeyTyped): Implemented.
2522         (menuSelectionChanged): disarm the model if the menu item was
2523         deselected.
2524         * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2525         (getPath): Change to use ArrayList instead of Vector.
2526         (getPreferredSize): Renamed variable.
2527         (paintMenuItem): Paint margin area of menu item.
2528         (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2529         (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2530         menu item's bounds before clearing the selection.       
2531
2532 2004-06-09  David Jee  <djee@redhat.com>
2533
2534         * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2535         (GtkTextComponentPeer): Set caret position to 0.
2536         * java/awt/TextComponent.java
2537         (setText): Set caret position to 0.
2538         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2539         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2540         Handle GtkScrolledWindow separately. Fix signal handler blocking.
2541         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2542         Likewise.
2543         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2544         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2545         visible.
2546
2547 2004-06-09  Kim Ho  <kho@redhat.com>
2548
2549         * Makefile.am: New files
2550         * Makefile.in: Regenerated
2551         * java/awt/Container.java
2552         (getComponentAt): Removed.
2553         * javax/swing/AbstractAction.java
2554         (ENABLED_PROPERTY): New property.
2555         (putValue): Fire PropertyChangeEvents.
2556         (setEnabled): ditto.
2557         (firePropertyChange): Javadoc and implement
2558         convenience method.
2559         * javax/swing/AbstractButton.java
2560         (setAction): Don't create PropertyChangeListener
2561         if new Action is null.
2562         (setIcon): Don't set icon till after comparing
2563         it.
2564         (configurePropertiesFromAction): Check mnemonic
2565         key before calling intValue().
2566         (createActionPropertyChangeListener): Check
2567         properties rather than bulk change.
2568         * javax/swing/DefaultDesktopManager.java:
2569         Implement.
2570         * javax/swing/DesktopManager.java:
2571         Jalopy and javadoc.
2572         * javax/swing/JComponent.java
2573         (fireVetoableChange): Implement.
2574         (paintImmediately): Use root component.
2575         * javax/swing/JDesktopPane.java: Implement
2576         * javax/swing/JInternalFrame.java: Implement
2577         * javax/swing/JLabel.java
2578         (getDisabledIcon): Return grayscaled icon if
2579         no disabled icon specified.
2580         * javax/swing/JMenuBar.java
2581         (getComponentAtIndex): Use getComponent
2582         * javax/swing/JOptionPane.java
2583         (getDesktopPaneForComponent): Use SwingUtilities'
2584         getAncestorOfClass
2585         (getFrameForComponent): ditto.
2586         * javax/swing/JSplitPane.java
2587         (remove): Use getComponent.
2588         * javax/swing/SwingUtilities.java
2589         (convertPoint): Implement.
2590         * javax/swing/plaf/basic/BasicButtonUI.java
2591         (paintButtonNormal): Check opaqueness before
2592         filling background.
2593         * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2594         Implement
2595         * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2596         Implement.
2597         * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2598         Implement.
2599         * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2600         Implement.
2601         * javax/swing/plaf/basic/BasicLookAndFeel.java:
2602         Change InternalFrame and Desktop colors.
2603
2604 2004-06-09  David Jee  <djee@redhat.com>
2605
2606         * java/awt/Container.java
2607         (remove): Do not set component to invisible.
2608
2609 2004-06-09  Michael Koch  <konqueror@gmx.de>
2610
2611         * javax/swing/tree/DefaultMutableTreeNode.java
2612         (getLeafCount): Renamed enum to e.
2613
2614 2004-06-09  Michael Koch  <konqueror@gmx.de>
2615
2616         * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2617         (positionForMouseEvent): Removed redundant semicolon.
2618         (continueDrag): Use method arguments.
2619
2620 2004-06-09  Michael Koch  <konqueror@gmx.de>
2621
2622         * javax/swing/border/TitledBorder.java,
2623         javax/swing/filechooser/FileSystemView.java,
2624         javax/swing/plaf/basic/BasicButtonListener.java,
2625         javax/swing/plaf/basic/BasicGraphicsUtils.java,
2626         javax/swing/plaf/basic/BasicLabelUI.java,
2627         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2628         javax/swing/plaf/basic/BasicScrollBarUI.java,
2629         javax/swing/plaf/basic/BasicScrollPaneUI.java,
2630         javax/swing/plaf/basic/BasicSliderUI.java,
2631         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2632         javax/swing/plaf/basic/BasicToggleButtonUI.java,
2633         javax/swing/table/JTableHeader.java,
2634         javax/swing/text/AbstractDocument.java,
2635         javax/swing/text/DefaultCaret.java,
2636         javax/swing/text/StyledEditorKit.java,
2637         javax/swing/tree/DefaultTreeCellEditor.java:
2638         Reworked import statements.
2639
2640 2004-06-08  Graydon Hoare  <graydon@redhat.com>
2641
2642         * javax/swing/Box.java: Temporarily comment out code
2643         broken due to visibility bug.
2644
2645 2004-06-09  Michael Koch  <konqueror@gmx.de>
2646
2647         * javax/swing/ImageIcon.java
2648         (ImageIcon): Added missing constructor.
2649
2650 2004-06-08  Michael Koch  <konqueror@gmx.de>
2651
2652         * javax/swing/JToggleButton.java
2653         (JToggleButton): New constructor.
2654         (getAccessibleContext): Moved documentation into javadoc.
2655         (getUIClassID): Likewise.
2656
2657 2004-06-08  Michael Koch  <konqueror@gmx.de>
2658
2659         * javax/swing/AbstractButton.java
2660         (getDisabledIcon): Create disabled icon if none exists yet.
2661
2662 2004-06-08  Michael Koch  <konqueror@gmx.de>
2663
2664         * javax/swing/plaf/basic/BasicLookAndFeel.java
2665         (initClassDefaults): Added FormattedTextFieldUI.
2666         (loadResourceBundle): Renamed enum to e.
2667
2668 2004-06-08  Michael Koch  <konqueror@gmx.de>
2669
2670         * javax/swing/plaf/basic/BasicButtonUI.java
2671         (paintIcon): Simplified.
2672         (paintText): Paint disabled button correctly.
2673
2674 2004-06-08  Michael Koch  <konqueror@gmx.de>
2675
2676         * javax/swing/JComponent.java
2677         (createToolTip): Use official JToolTip API.
2678
2679 2004-06-08  Michael Koch  <konqueror@gmx.de>
2680
2681         * javax/swing/JToolTip.java
2682         (JToolTip): No arguments in API.
2683         (setTipText): New method.
2684
2685 2004-06-08  Michael Koch  <konqueror@gmx.de>
2686
2687         * javax/swing/SwingUtilities.java
2688         (isLeftMouseButton): New method.
2689         (isMiddleMouseButton): New method.
2690         (isRightMouseButton): New method.
2691
2692 2004-06-08  Michael Koch  <konqueror@gmx.de>
2693
2694         * javax/swing/AbstractButton.java,
2695         javax/swing/CellRendererPane.java,
2696         javax/swing/JCheckBoxMenuItem.java,
2697         javax/swing/JColorChooser.java,
2698         javax/swing/JComboBox.java,
2699         javax/swing/JComponent.java,
2700         javax/swing/JDesktopPane.java,
2701         javax/swing/JFileChooser.java,
2702         javax/swing/JMenu.java,
2703         javax/swing/JMenuItem.java,
2704         javax/swing/JOptionPane.java,
2705         javax/swing/JPasswordField.java,
2706         javax/swing/JPopupMenu.java,
2707         javax/swing/JProgressBar.java,
2708         javax/swing/JRadioButtonMenuItem.java,
2709         javax/swing/JScrollBar.java,
2710         javax/swing/JSeparator.java,
2711         javax/swing/JSlider.java,
2712         javax/swing/JSplitPane.java,
2713         javax/swing/JTabbedPane.java,
2714         javax/swing/JTextField.java,
2715         javax/swing/JToolBar.java,
2716         javax/swing/text/JTextComponent.java:
2717         Fixed all constructors of accessibility classes.
2718
2719 2004-06-08  Michael Koch  <konqueror@gmx.de>
2720
2721         * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2722         over.
2723
2724 2004-06-08  Michael Koch  <konqueror@gmx.de>
2725
2726         * javax/swing/Box.java
2727         (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2728         (AccessibleBoxFiller.serialVersionUID): New member variable.
2729         * javax/swing/DefaultButtonModel.java
2730         (stateMask): Made protected.
2731         (listenerList): Likewise.
2732         (changeEvent): Likewise.
2733         (group): Likewise.
2734         (mnemonic): Likewise.
2735         (actionCommand): Likewise.
2736         (getListeners): New method.
2737         (getActionListeners): New method.
2738         (getItemListeners): New method.
2739         (getChangeListeners): New method.
2740         (fireItemStateChanged): Simplified.
2741         (fireActionPerformed): Simplified.
2742         (fireStateChanged): Simplified.
2743         * javax/swing/JFrame.java
2744         (JFrame): Implements WindowContants.
2745         (HIDE_ON_CLOSE): Removed.
2746         (EXIT_ON_CLOSE): Removed.
2747         (DISPOSE_ON_CLOSE): Removed.
2748         (DO_NOTHING_ON_CLOSE): Removed.
2749         (processWindowEvent): Exit with code 0.
2750         (setDefaultCloseOperation): Do security check before setting value.
2751         * javax/swing/JOptionPane.java
2752         (message): Initialize only in constructor.
2753         * javax/swing/JToolTip.java: Removed unused imports.
2754         * javax/swing/JViewport.java
2755         (serialVersionUID): New member variable.
2756         (SIMPLE_SCROLL_MODE): Made final, fixed value.
2757         (BLIT_SCROLL_MODE): Likewise.
2758         (BACKINGSTORE_SCROLL_MODE): Likewise.
2759         (scrollUnderway): Made protected.
2760         (isViewSizeSet): Likewise.
2761         * javax/swing/ListModel.java: Fixed javadoc.
2762         * javax/swing/Popup.java: Likewise.
2763         * javax/swing/RepaintManager.java
2764         (paintDirtyRegions): Don't use internal classes of
2765         java.util.AbstractMap.
2766         * javax/swing/ScrollPaneConstants.java: Reindented.
2767         * javax/swing/ScrollPaneLayout.java
2768         (viewport): Made protected.
2769         (verticalScrollBar): Made protected, renamed to vsb.
2770         (horizontalScrollBar): Made protected, renamed to hsb.
2771         (rowHeader): Made protected, renamed to rowHead.
2772         (columnHeader): Made protected, renamed to colHead.
2773         (lowerLeft): Made protected.
2774         (lowerRight): Made protected.
2775         (upperLeft): Made protected.
2776         (upperRight): Made protected.
2777         (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
2778         (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
2779
2780 2004-06-07  Bernd Schmidt  <bernds@btinternet.com>
2781
2782         * java/awt/MediaTracker.java (imageUpdate): Only set status to
2783         LOADING if flags has SOMEBITS set.
2784
2785 2004-06-07  Michael Koch  <konqueror@gmx.de>
2786
2787         * javax/swing/AbstractButton.java: Reorganized imports.
2788         * javax/swing/ActionMap.java: Likewise.
2789         * javax/swing/DefaultButtonModel.java: Likewise.
2790         * javax/swing/DefaultListModel.java: Likewise.
2791         * javax/swing/ImageIcon.java: Likewise.
2792         (serialVersionUID): New member variable.
2793         * javax/swing/JComboBox.java: Reorganized imports.
2794         * javax/swing/JComponent.java: Likewise.
2795         (ui): Made protected.
2796         (listenerList): Made protected.
2797         (TOOL_TIP_TEXT_KEY): New constant.
2798         (scrollRectToVisible): Removed redundant null check.
2799         * javax/swing/JFrame.java: Reorganized imports.
2800         * javax/swing/JInternalFrame.java: Reorganized imports.
2801         * javax/swing/JProgressBar.java: Likewise.
2802         * javax/swing/JRootPane.java: Likewise.
2803         * javax/swing/JScrollBar.java: Likewise.
2804         * javax/swing/JSeparator.java: Likewise.
2805         * javax/swing/JSlider.java: Likewise.
2806         * javax/swing/JTabbedPane.java: Likewise.
2807         * javax/swing/JTextField.java: Likewise.
2808         * javax/swing/JToolBar.java: Likewise.
2809         * javax/swing/JTree.java: Likewise.
2810         * javax/swing/JViewport.java: Likewise.
2811         * javax/swing/JWindow.java: Likewise.
2812         * javax/swing/KeyStroke.java: Likewise.
2813         * javax/swing/LookAndFeel.java: Likewise.
2814         * javax/swing/MenuSelectionManager.java: Likewise.
2815         * javax/swing/SwingUtilities.java: Likewise.
2816         * javax/swing/Timer.java: Likewise.
2817         * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
2818         * javax/swing/JList.java
2819         (HORIZONTAL_WRAP): Made final, fixed value.
2820         (VERTICAL): Likewise.
2821         (VERTICAL_WRAP): Likewise.
2822
2823 2004-06-07  Michael Koch  <konqueror@gmx.de>
2824
2825         * javax/swing/AbstractButton.java
2826         (serialVersionUID): New member variable.
2827         (AccessibleAbstractButton.serialVersionUID): Likewise.
2828         (AbstractButton): Made public.
2829         * javax/swing/Box.java
2830         (AccessibleBox.serialVersionUID): New member variable.
2831         (Filler.serialVersionUID): Likewise.
2832         * javax/swing/DefaultListSelectionModel.java
2833         (serialVersionUID): Likewise.
2834         * javax/swing/JApplet.java
2835         (serialVersionUID): Likewise.
2836         * javax/swing/JCheckBox.java
2837         (serialVersionUID): Likewise.
2838         * javax/swing/JCheckBoxMenuItem.java
2839         (serialVersionUID): Likewise.
2840         (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
2841         * javax/swing/JColorChooser.java
2842         (serialVersionUID): Likewise.
2843         (AccessibleJColorChooser.serialVersionUID): Likewise.
2844         * javax/swing/JComponent.java
2845         (serialVersionUID): Made private.
2846         (AccessibleJComponent.serialVersionUID): New member variable.
2847         * javax/swing/JDesktopPane.java
2848         (serialVersionUID): Likewise.
2849         * javax/swing/JDialog.java
2850         (serialVersionUID): Likewise.
2851         * javax/swing/JFormattedTextField.java
2852         (serialVersionUID): Fixed value.
2853         * javax/swing/JFrame.java
2854         (serialVersionUID): New member variable.
2855         (getDefaultCloseOpertation): Made public.
2856         * javax/swing/JLayeredPane.java
2857         (serialVersionUID): Likewise.
2858         (LAYER_PROPERTY): Made final, fixed value.
2859         (JLayeredPane): Made public.
2860         * javax/swing/JMenu.java
2861         (AccessibleJMenu.serialVersionUID): New member variable.
2862         (WinListener.serialVersionUID): Likewise.
2863         * javax/swing/JMenuBar.java
2864         (serialVersionUID): Likewise.
2865         (getComponentAtIndex): Added @deprecated tag.
2866         * javax/swing/JMenuItem.java
2867         (serialVersionUID): New member variable.
2868         (AccessibleJMenuItem.serialVersionUID): Likewise.
2869         * javax/swing/JOptionPane.java
2870         (serialVersionUID): Likewise.
2871         (AccessibleJOptionPane.serialVersionUID): Likewise.
2872         * javax/swing/JPopupMenu.java
2873         (serialVersionUID): Likewise.
2874         (AccessibleJPopupMenu.serialVersionUID): Likewise.
2875         (getPopupMenuListeners): New method.
2876         (getComponentAtIndex): Added @deprecated tag.
2877         * javax/swing/JProgressBar.java
2878         (serialVersionUID): New member variable.
2879         (AccessibleJProgressBar.serialVersionUID): Likewise.
2880         * javax/swing/JRadioButton.java
2881         (serialVersionUID): Likewise.
2882         * javax/swing/JRadioButtonMenuItem.java
2883         (serialVersionUID): Likewise.
2884         (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
2885         * javax/swing/JScrollBar.java
2886         (serialVersionUID): Likewise.
2887         (AccessibleJScrollBar.serialVersionUID): Likewise.
2888         * javax/swing/JSeparator.java
2889         (serialVersionUID): Likewise.
2890         (AccessibleJSeparator.serialVersionUID): Likewise.
2891         * javax/swing/JSlider.java: Fixed javadocs.
2892         (AccessibleJSlider.serialVersionUID): New member variable.
2893         * javax/swing/JSplitPane.java: Added copyright statement.
2894         (serialVersionUID): New member variable.
2895         (AccessibleJSplitPane.serialVersionUID): Likewise.
2896         * javax/swing/JTabbedPane.java
2897         (serialVersionUID): Likewise.
2898         (AccessibleJTabbedPane.serialVersionUID): Likewise.
2899         (ModelListener.serialVersionUID): Likewise.
2900         (ModelListener.ModelListener): New constructor.
2901         (SCROLL_TAB_LAYOUT): Made public final, fixed value.
2902         (WRAP_TAB_LAYOUT): Likewise.
2903         * javax/swing/JTable.java
2904         (serialVersionUID): New member variable.
2905         * javax/swing/JToggleButton.java
2906         (serialVersionUID): Likewise.
2907         (ToggleButtonModel): Made static.
2908         (ToggleButtonModel.serialVersionUID): New member variable.
2909         * javax/swing/JToolTip.java
2910         (serialVersionUID): Likewise.
2911         * javax/swing/JTree.java
2912         (serialVersionUID): Likewise.
2913         * javax/swing/JWindow.java
2914         (serialVersionUID): Likewise.
2915         * javax/swing/Timer.java
2916         (serialVersionUID): Likewise.
2917
2918 2004-06-06  Michael Koch  <konqueror@gmx.de>
2919
2920         * javax/swing/SwingConstants.java
2921         (NEXT): New constant.
2922         (PREVIOUS): Likewise.
2923         * javax/swing/UIManager.java
2924         (LookAndFeel): Made public.
2925         (LookAndFeel.getClassName): Likewise.
2926         (LookAndFeel.getName): Likewise.
2927
2928 2004-06-02  Olga Rodimina  <rodimina@redhat.com>
2929
2930         * javax/swing/JCheckBoxMenuItem.java:
2931         Removed CVS tags.
2932         * javax/swing/JMenu.java: Likewise.
2933         * javax/swing/JMenuBar.java: Likewise.
2934         * javax/swing/JMenuItem.java: Likewise.
2935         * javax/swing/JPopupMenu.java: Likewise.
2936         * javax/swing/JRadioButtonMenuItem.java: Likewise.
2937         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
2938         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2939         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
2940         * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
2941         * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
2942         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
2943
2944 2004-05-31  Olga Rodimina  <rodimina@redhat.com>
2945         
2946         * javax/swing/plaf/basic/BasicMenuUI.java:
2947         (MouseEntered): Do not call getPath() from MenuSelectionManager.
2948         Call getPath() from super class instead.
2949
2950 2004-05-31  David Jee  <djee@redhat.com>
2951
2952         * java/awt/Container.java
2953         (remove): Set component visibility to false after removing it.
2954
2955 2004-05-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
2956
2957         * java/awt/Component.java (getForeground): Return SystemColor if
2958         parent is null.
2959         (getBackground): Likewise.
2960
2961         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
2962         (item_highlighted): New function.
2963         (connectSignals): Set item_highlighted as list's select
2964         function.
2965
2966         * java/applet/Applet.java: Revert changes from 2004-04-29,
2967         2004-03-15 and 2004-03-14.
2968
2969         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2970         Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
2971         factor.
2972
2973         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
2974         "Dialog" as the default font.
2975         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
2976         Likewise.
2977         * java/awt/Component.java (getFont): Return "Dialog" font by
2978         default.
2979         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
2980         Multiply size argument to pango_font_description_set_size by the
2981         DPI conversion factor rather than by PANGO_SCALE.
2982         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
2983         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
2984         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
2985         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
2986         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
2987         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
2988         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
2989         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
2990         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
2991         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2992         Divide baseline y coordinate by DPI conversion factor rather
2993         than by PANGO_SCALE.
2994         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
2995         (area_prepared): Fix typo.
2996         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
2997         (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
2998         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2999         (dpi_conversion_factor): New global variable.
3000         (init_dpi_conversion_factor): New function to calculate and
3001         track DPI conversion factor.
3002         (dpi_changed_cb): New callback.
3003         * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3004
3005 2004-05-27  David Jee  <djee@redhat.com>
3006
3007         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3008         (getGraphics): Return a new GdkGraphics instance.
3009         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3010         (getGraphics): Call super.getGraphics().
3011
3012 2004-05-26  Thomas Fitzsimmons  <fitzsim@redhat.com>
3013
3014         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3015         (setNativeBounds): Clamp width and height values to >= 0.
3016
3017         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3018         (find_fg_color_widget): Handle GtkOptionMenu specially.
3019
3020         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3021         (pre_event_handler): Only post configure events to visible
3022         top-level windows.
3023
3024 2004-05-26  David Jee  <djee@redhat.com>
3025
3026         * java/awt/BorderLayout.java
3027         (layoutContainer): Fix size calculations.
3028
3029 2004-05-26  Thomas Fitzsimmons  <fitzsim@redhat.com>
3030
3031         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3032         (window_wm_protocols_filter): Remove function.
3033         (create): Remove filter that removes WM_TAKE_FOCUS client
3034         messages.
3035
3036 2004-06-17  Anthony Green  <green@redhat.com>
3037
3038         * java/util/zip/ZipFile.java (getInputStream): Return null if
3039         entry not found.
3040
3041         * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3042         directory contents to the class path.
3043
3044 2004-06-15  Andrew Haley  <aph@redhat.com>
3045
3046         * java/lang/natSystem.cc (getenv0): Don't assume environment
3047         variable is Latin 1 coded.
3048
3049 2004-06-14  Andreas Jaeger  <aj@suse.de>
3050
3051         * configure.in: Support --enable-version-specific-runtime-libs.
3052         * configure: Regenerated.
3053
3054 2004-06-14  Bryce McKinlay  <mckinlay@redhat.com>
3055
3056         * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3057         to pass ClassLoader argument.
3058         * java/util/GregorianCalendar.java: Likewise.
3059         * java/util/Currency.java: Likewise.
3060         * java/text/BreakIterator.java: Likewise.
3061         * java/text/Collator.java: Likewise.
3062         * java/text/DateFormat.java: Likewise.
3063         * java/text/DateFormatSymbols.java: Likewise.
3064         * java/text/DecimalFormatSymbols.java: Likewise.
3065         * java/text/NumberFormat.java: Likewise.
3066         * java/awt/Window.java: Likewise.
3067
3068 2004-06-14  Andrew Haley  <aph@redhat.com>
3069
3070         * java/lang/System.java: (getenv0): New method.
3071         (getenv): Add security check.  Do the right thing.
3072         * java/lang/natSystem.cc (getenv0): New method.
3073
3074 2004-06-12  Mark Wielaard  <mark@klomp.org>
3075
3076         * javax/swing/RepaintManager.java
3077         (paintDirtyRegions): Use entrySet(), not values().
3078
3079 2004-06-10  Mark Wielaard  <mark@klomp.org>
3080
3081         * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3082         NoSuchMethodError.
3083
3084 2004-06-11  Jerry Quinn  <jlquinn@optonline.net>
3085
3086         * java/util/GregorianCalendar.java (computeTime):  Skip buggy formulae
3087         when we already know the answer.
3088         * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3089         (setStartRule,setEndRule): Don't take abs of day number.
3090         (getOffset): Clarify docs.  Add argument checks.
3091         (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3092         (equals,hasSameRules,toString,readObject): Use startTimeMode and
3093         endTimeMode.
3094
3095 2004-06-10  Tom Tromey  <tromey@redhat.com>
3096
3097         * interpret.cc (run): Handle wide fload.
3098
3099 2004-06-06  Jerry Quinn  <jlquinn@optonline.net>
3100
3101         * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3102
3103 2004-06-05  Michael Koch  <konqueror@gmx.de>
3104
3105         * javax/swing/SwingConstants.java
3106         (NEXT): New constant.
3107         (PREVIOUS): Likewise.
3108
3109 2004-06-05  Michael Koch  <konqueror@gmx.de>
3110
3111         * javax/swing/UIManager.java
3112         (LookAndFeel): Made public.
3113         (LookAndFeel.getName): Likewise.
3114         (LookAndFeel.getClassName): Likewise.
3115
3116 2004-06-03  Michael Koch  <konqueror@gmx.de>
3117
3118         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3119         (requestFocus): Revert last changes.
3120         (gtkRequestFocus): Removed.
3121         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3122         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3123         Renamed to ...
3124         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3125         Reverted last patch.
3126         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3127         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3128         Reverted comment change.
3129
3130 2004-06-02  Olga Rodimina  <rodimina@redhat.com>
3131
3132         * javax/swing/JCheckBoxMenuItem.java:
3133         Removed CVS tags.
3134         * javax/swing/JMenu.java: Likewise.
3135         * javax/swing/JMenuBar.java: Likewise.
3136         * javax/swing/JMenuItem.java: Likewise.
3137         * javax/swing/JPopupMenu.java: Likewise.
3138         * javax/swing/JRadioButtonMenuItem.java: Likewise.
3139         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3140         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3141         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3142         * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3143         * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3144         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3145
3146 2004-06-01  Tom Tromey  <tromey@redhat.com>
3147
3148         * java/io/ObjectStreamField.java: Cleaned up imports.
3149
3150 2004-06-01  Michael Koch  <konqueror@gmx.de>
3151
3152         * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3153       
3154 2004-06-01  Mark Wielaard  <mark@klomp.org>
3155
3156         * java/io/Writer.java (Writer(Object)): Fixed API doc.
3157
3158 2004-06-01  Michael Koch  <konqueror@gmx.de>
3159
3160         * java/security/Security.java
3161         (insertProviderAt): Use equals() instead of ==.
3162         (removeProvicer): Likewise.
3163         (getProvider): Likewise.
3164         * java/security/Signature.java
3165         (sign): Don't set state to UNINITIALIZED.
3166         (verify): Likewise.
3167
3168 2004-06-01  Mark Wielaard  <mark@klomp.org>
3169
3170         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3171         Implement by calling gtkRequestFocus.
3172         (gtkRequestFocus): New native method.
3173         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3174         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3175         Renamed to ...
3176         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3177         New function name.
3178         (filter_expose_event_handler):
3179         Mark static.
3180         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3181         (menu_pos): Mark static.
3182
3183 2004-06-01  Michael Koch  <konqueror@gmx.de>
3184
3185         * java/text/CollationElementIterator.java,
3186         java/text/CollationKey.java,
3187         java/text/RuleBasedCollator.java: New versions from GNU classpath.
3188         * testsuite/libjava.mauve/xfails: Removed all
3189         java.text.CollationElementIterator tests.
3190
3191 2004-06-01  Michael Koch  <konqueror@gmx.de>
3192
3193         * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3194         version.
3195         * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3196         Java 1.5 keyword usage.
3197
3198 2004-05-31  Olga Rodimina  <rodimina@redhat.com>
3199
3200         * javax/swing/plaf/basic/BasicMenuUI.java:
3201         (MouseEntered): Do not call getPath() from MenuSelectionManager.
3202         Call getPath() from super class instead.
3203
3204 2004-05-31  Michael Koch  <konqueror@gmx.de>
3205
3206         * java/io/SequenceInputStream.java:
3207         Rename enum to e because enum is a keyword in Java 1.5.
3208
3209 2004-05-31  Michael Koch  <konqueror@gmx.de>
3210
3211         * gnu/java/rmi/rmic/CompilerProcess.java:
3212         Fixed javadoc to by XHTML compliant.
3213
3214 2004-05-30  Mark Wielaard  <mark@klomp.org>
3215
3216         * java/awt/Toolkit.java (loadSystemColors): Implement.
3217
3218 2004-05-30  Michael Koch  <konqueror@gmx.de>
3219
3220         * java/lang/System.java: Reordered imports.
3221
3222 2004-05-30  Guilhem Lavaux <guilhem@kaffe.org>
3223
3224         * java/text/DecimalFormat.java
3225         (parse): Fixed parsing of decimal strings. Number of maximum
3226         digits to be read should now work.
3227         * java/text/SimpleDateFormat.java
3228         (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3229         formatter. This fixes DateFormatTest.
3230
3231 2004-05-30  Michael Koch  <konqueror@gmx.de>
3232
3233         * java/nio/Buffer.java
3234         (limit): Fixed off by one error.
3235         * java/nio/CharBuffer.java
3236         (wrap): Fixed arguments, added javadocs.
3237
3238 2004-05-30  Michael Koch  <konqueror@gmx.de>
3239
3240         * gnu/java/beans/BeanInfoEmbryo.java,
3241         java/awt/im/InputContext.java,
3242         javax/swing/tree/DefaultMutableTreeNode.java:
3243         Rename enum to e because enum is a keyword in Java 1.5.
3244
3245 2004-05-30  Michael Koch  <konqueror@gmx.de>
3246
3247         * gnu/java/math/MPN.java,
3248         java/awt/geom/Arc2D.java:
3249         Fixed javadocs all over.
3250
3251 2004-05-30  Michael Koch  <konqueror@gmx.de>
3252
3253         * java/awt/DefaultKeyboardFocusManager.java
3254         (dispatchEvent): Call method to get key event dispatchers.
3255         (dispatchKeyEvent): Call method to get key event post processors.
3256         * javax/swing/JComponent.java
3257         (listenerList): Made protected.
3258         * javax/swing/JOptionPane.java
3259         (message): Don't initialize.
3260         (JOptionPane): Set message text.
3261         * javax/swing/JPopupMenu.java
3262         (show): Fixed typo in argument name.
3263         * javax/swing/RepaintManager.java
3264         (paintDirtyRegions): Use public API of java.util.Map.
3265         * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3266         (positionForMouseEvent): Removed redundant ';'.
3267         (continueDrag): Use method arguments.
3268
3269 2004-05-29  Ranjit Mathew  <rmathew@hotmail.com>
3270
3271         * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3272         results.
3273
3274 2004-05-28  Bryce McKinlay  <mckinlay@redhat.com>
3275
3276         * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3277         _Jv_AllocBytes.
3278         * gnu/gcj/RawDataManaged.java: New file.
3279         * java/lang/Thread.java (data): Declare as RawDataManaged.
3280         * java/lang/natThread.cc (init_native): Cast natThread data to
3281         RawDataManaged, not jobject.
3282         * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3283         * Makefile.in: Rebuilt.
3284
3285 2004-05-27  Jerry Quinn  <jlquinn@optonline.net>
3286
3287         * java/util/SimpleTimeZone.java: Reverting my last change until I
3288         can fix it properly.
3289
3290 2004-05-27  Michael Koch  <konqueror@gmx.de>
3291
3292         * javax/swing/JPopupMenu.java
3293         (isVisible): Do not use visible directly.
3294         (setVisible): Likewise.
3295         * javax/swing/JWindow.java
3296         (JWindow): call accessible constructor.
3297         * javax/swing/RepaintManager.java
3298         (paintDirtyRegions): Use public methods to obtain iterator.
3299
3300 2004-05-25  David Jee  <djee@redhat.com>
3301
3302         * java/awt/Container.java
3303         (remove): Set component's parent to null only after we removed the
3304         component from its parent's layout manager.
3305
3306 2004-05-25  David Jee  <djee@redhat.com>
3307
3308         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3309         (GtkComponentPeer): Set bounds regardless of whether awtComponent
3310         is valid.
3311         * gnu/java/awt/peer/gtk/GtkListPeer.java
3312         (getSize): Change native method declaration.
3313         (minimumSize): Pass visible row count into getSize().
3314         (preferredSize): Likewise.
3315         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3316         (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3317         natural size. Use visible row count to determine the final height
3318         value to return.
3319
3320 2004-05-21  Graydon Hoare  <graydon@redhat.com>
3321
3322         * gnu/java/awt/peer/gtk/GdkGraphics2D.java 
3323         (setClip): Minor correction to order of operations.
3324
3325         * javax/swing/JScrollPane.java: Extend sketchy implementation.
3326         * javax/swing/ScrollPaneLayout.java: Likewise.
3327         * javax/swing/JViewPort.java: Likewise.
3328         * javax/swing/ViewportLayout.java: Likewise.
3329
3330         * javax/swing/JComponent.java: Rewrite.
3331         * javax/swing/RepaintManager.java: Likewise.
3332
3333         * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3334         * javax/swing/JList.java 
3335         (setSelectedIndices):
3336         (getSelectedIndices):
3337         (getSelectedValues): New functions.
3338         (getPreferredScrollableViewportSize): Return preferred size.
3339         (getScrollableUnitIncrement):
3340         (getScrollableBlockIncrement): Initial implementations.
3341         * javax/swing/JRootPane.java: Clean up slightly.
3342         (getUI):
3343         (setUI):
3344         (updateUI):
3345         (getUIClassID):
3346         (isValidateRoot): Add overrides from JComponent.
3347         * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3348         * javax/swing/UIManager.java (getDimension): Return the dimension.
3349
3350         * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3351         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3352         * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3353         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3354         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3355         * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3356         * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3357         * javax/swing/plaf/basic/BasicRootPaneUI.java: 
3358         Likewise, and set background.
3359         * javax/swing/plaf/basic/BasicListUI.java: 
3360         Likewise, and improve a bit.
3361         * javax/swing/plaf/basic/BasicScrollBarUI.java: 
3362         Likewise, and adjust calculations.
3363         * javax/swing/plaf/basic/BasicViewportUI.java:
3364         Likewise, and improve a bit.
3365         * javax/swing/plaf/basic/BasicLookAndFeel.java 
3366         (Button.margin): Shrink.
3367
3368         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3369         Hack to set horizontal always, workaround pango.
3370
3371         * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3372         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3373         Synchronize more often, check cairo status after ops,
3374         handle changes to cairo pattern API, check for disposal.
3375
3376 2004-05-21  Olga Rodimina  <rodimina@redhat.com>
3377
3378         * javax/swing/plaf/basic/BasicMenuItemUI.java:
3379         (BasicMenuItemUI): Create propertyChangeListener.
3380         (getPath):Implemented.
3381         (installListeners): Add propertyChangeListener to menuItem.
3382         (uninstallListeners): Remove propertyChangeListener from menuItem.
3383         (update): Implemented.
3384         * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3385         (mouseEntered): Take insets of popup menu into account when
3386         calculating position of popup menu.     
3387         
3388 2004-05-18  Olga Rodimina  <rodimina@redhat.com>
3389
3390         * Makefile.am: Added new file. 
3391         * Makefile.in: Regenerate.
3392         * javax/swing/JMenuBar.java:
3393         Started implementation.
3394         * javax/swing/JPopupMenu.java:
3395         (setVisible): Fixed location of lightweight/mediumweight
3396         popup menu.
3397         (show): Fixed location of PopupMenu.
3398         * javax/swing/plaf/basic/BasicMenuBarUI.java:
3399         New file. UI Delegate for JMenuBar.
3400         * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3401         (mouseEntered): Corrected position of the submenu.
3402
3403 2004-05-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
3404
3405         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3406         to _gtk_accel_group_attach.
3407         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3408         Likewise.
3409
3410         * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3411         package access.  Don't override setFont.
3412         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3413         * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3414         gtkWidgetRequestFocus package access.
3415         * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3416         setFont.
3417         * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3418         Give gtkWidgetRequestFocus package access.
3419         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3420         gtkWidgetRequestFocus package access.  Don't override setFont.
3421         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3422         setFont.
3423         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3424         (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3425         region.
3426         (gtkSetFont): Likewise.
3427         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3428         Implement.
3429         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3430         (gtkSetFont): Whitespace fix.
3431
3432         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3433         (gtkWidgetSetUsize): Remove method.
3434
3435 2004-05-18  David Jee  <djee@redhat.com>
3436
3437         * java/awt/image/MemoryImageSource.java
3438         (newPixels(int,int,int,int,boolean)): Set only the specified
3439         rectangle of pixels.
3440         (newPixels(byte[],ColorModel,int,int)): Implement.
3441         (newPixels(int[],ColorModel,int,int)): Implement.
3442
3443 2004-05-18  Olga Rodimina  <rodimina@redhat.com>
3444
3445         * Makefile.am: Added new file.
3446         * Makefile.in: Regenerate.
3447         * javax/swing/JMenu.java: Started 
3448         implementation.
3449         * javax/swing/JPopupMenu.java:
3450         (insert): If specified index is -1, then
3451         add component at the end.
3452         (isPopupTrigger): Reimplemented.
3453         (JPopupMenu.LightWeightPopup): setBounds
3454         of the lightWeightPopup before adding it 
3455         to the layeredPane.
3456         (javax/swing/plaf/basic/BasicIconFactory.java):
3457         (getMenuArrowIcon): Implemented.
3458         * javax/swing/plaf/basic/BasicMenuItemUI.java:
3459         (getPreferredSize): Add size of the arrow icon 
3460         if this menu item is instance of JMenu.
3461         (paintMenuItem): Paint arrow icon if this 
3462         menu item is a submenu.
3463         * javax/swing/plaf/basic/BasicMenuUI.java:
3464         New File. UI Delegate for JMenu.
3465
3466 2004-05-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
3467
3468         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3469         Post KEY_TYPED events.
3470         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3471         (generates_key_typed_event): Remove function.
3472
3473 2004-05-17  Olga Rodimina  <rodimina@redhat.com>
3474
3475         * javax/swing/JRootPane.java
3476         (JRootPane.RootLayout): Reimplemented to 
3477         set bounds of contentPane and menuBar.
3478         (setJMenuBar): Add menu bar to the layered pane.
3479         (createLayeredPane): Set layout of layeredPane
3480         to null.
3481         * javax/swing/JLayeredPane.java:
3482         (addImpl): Calculate index of the component in the
3483         layeredPane according to the specified position within 
3484         the layer.      
3485
3486 2004-05-17  David Jee  <djee@redhat.com>
3487
3488         * gnu/java/awt/peer/gtk/GtkImagePainter.java
3489         (setPixels): Change color model to the default model after
3490         converting pixels.
3491         * java/awt/image/MemoryImageSource.java
3492         (newPixels): Set only the specified rectangle of pixels.
3493
3494 2004-05-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
3495
3496         * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3497         -l-java-beans -l-javax-accessibility -l-javax-swing.
3498
3499         * java/awt/AWTEvent.java (toString): Print source's name rather
3500         than the source itself.
3501
3502 2004-05-12  Thomas Fitzsimmons  <fitzsim@redhat.com>
3503
3504         * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3505         native.
3506         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3507         (gdk_color_to_java_color): New function.
3508         * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3509
3510 2004-05-12  David Jee  <djee@redhat.com>
3511
3512         * java/awt/image/RGBImageFilter.java:
3513         Initialize origmodel as null.
3514         (makeColor): Fix pixel component order.
3515         (filterRGBPixels): Fix pixel iteration.
3516         (setPixels): Add extra checks for index color model. Convert pixels
3517         to default color model if necessary.
3518         (convertColorModelToDefault): New override method for byte pixels.
3519         (convertColorModelToDefault): For int pixels, fix pixel iteration.
3520         (makeColorbyDefaultCM): New override method for byte pixels.
3521         (makeColorbyDefaultCM): For int pixel, add color model as argument.
3522         (makeColor): Fix pixel component order.
3523
3524 2004-05-11  Kim Ho  <kho@redhat.com>
3525
3526         * javax/swing/Box.java:
3527         Comment out more parts of Box.Filler.
3528
3529 2004-05-11  Kim Ho  <kho@redhat.com>
3530
3531         * javax/swing/Box.java:
3532         Remove reference to AccessibleAWTComponent so
3533         it compiles again.
3534
3535 2004-05-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
3536
3537         * gnu/java/awt/peer/gtk/GtkListPeer.java,
3538         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3539         implementation of list peer to use GtkTreeView instead of
3540         deprecated GtkCList.
3541
3542 2004-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
3543
3544         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3545         (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3546         (handleEvent): Remove keyChar argument to
3547         gtkWidgetDispatchKeyEvent calls.
3548         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3549         compiler warnings.
3550         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3551         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3552         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3553         Likewise.
3554
3555 2004-05-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
3556
3557         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3558         (gtkWidgetRequestFocus): Mark protected.
3559         (GtkComponentPeer): Only set the peer's bounds if its component
3560         is valid.
3561         * java/awt/Component.java (static): Set the default keyboard
3562         focus manager.
3563         (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3564         requestFocusInWindow(temporary)): Don't request focus if the
3565         component is not showing.  Get tree lock before traversing
3566         component hierarchy.
3567         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3568         Only set the global focus owner if it is not a Window.
3569         (processKeyEvent): Consume keystrokes associated with the focus
3570         traversal keystroke.
3571         (focusPreviousComponent, focusNextComponent, upFocusCycle,
3572         downFocusCycle): Call requestFocusInWindow instead of
3573         requestFocus.
3574         * java/awt/EventDispatchThread.java (run): Move setting of
3575         default keyboard focus manager to Component.java.
3576         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3577         (awt_keycode_to_keysym): New function.
3578         (gtkWidgetDispatchKeyEvent): Finish implementation.
3579         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3580         (pre_event_handler): Add FIXME comment.
3581
3582         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3583         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3584         (gtkWidgetRequestFocus): New method.
3585         * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3586         disable Tab and Shift-Tab keystrokes.
3587         (addNotify, appendText, insertText, replaceText): Simplify peer
3588         retrieval code.
3589         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3590         (connectSignals): Remove connections to "commit" signals.
3591         Remove C++-style comments.
3592
3593         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3594         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3595         (handleEvent): Activate GTK button when the space bar key is
3596         pressed.
3597         (gtkActivate): New method.
3598
3599 2004-05-06  David Jee  <djee@redhat.com>
3600
3601         * java/awt/image/CropImageFilter.java
3602         (setPixels): Implement for byte array pixels.
3603         * java/awt/image/ReplicateScaleFilter.java
3604         (setPixels): Implement for byte array pixels.
3605         (replicatePixels): Overload for byte array pixels.
3606
3607 2004-05-06  Kim Ho  <kho@redhat.com>
3608
3609         * javax/swing/Box.java:
3610         (getAccessibleContext): Return an instance of the 
3611         correct class.
3612
3613 2004-05-05  David Jee  <djee@redhat.com>
3614
3615         * gnu/java/awt/peer/gtk/GdkGraphics.java
3616         (drawImage): When component is null, use SystemColor.window as
3617         the default bgcolor.
3618         * gnu/java/awt/peer/gtk/GtkImage.java
3619         (setPixels): We can avoid iterating through the pixel rows only
3620         when height is 1.
3621         * java/awt/Image.java
3622         (getScaledInstance): Partially implement.
3623         * java/awt/image/CropImageFilter.java
3624         (setProperties): Fix "filter" property.
3625         (setPixels): Implement.
3626         * java/awt/image/ReplicateScaleFilter.java
3627         (setDimensions): Use scaled dimensions.
3628         (setPixels): Implement.
3629         (replicatePixels): New method.
3630
3631 2004-05-05  David Jee  <djee@redhat.com>
3632
3633         * gnu/java/awt/peer/gtk/GtkImagePainter.java
3634         (convertPixels): If either pixels or model is null, return null.
3635         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3636         (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3637         is null, do nothing and return.
3638
3639 2004-05-03  Kim Ho  <kho@redhat.com>
3640
3641         * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3642         (getGraphics): Like GtkFramePeer, the Graphics
3643         object needs to be translate to account for
3644         window decorations.
3645         (postMouseEvent): New method. Account for
3646         translation.
3647         (postExposeEvent): ditto.
3648         * javax/swing/Box.java: Stubbed.
3649         * javax/swing/JDialog.java: Ran through jalopy
3650         to fix indentation.
3651         (JDialog): Call SwingUtilities' getOwnerFrame
3652         for null owners.
3653         (setLayout): Check isRootPaneCheckingEnabled
3654         * javax/swing/JOptionPane.java: Re-implemented.
3655         * javax/swing/SwingUtilities.java:
3656         (getOwnerFrame): Static method to grab a default
3657         owner frame for Dialogs that don't specify owners.
3658         * javax/swing/event/SwingPropertyChangeSupport.java:
3659         (firePropertyChange): Fix early exit condition.
3660         * javax/swing/plaf/basic/BasicLabelUI.java:
3661         (paint): Avoid painting text if it is null 
3662         or empty.
3663         * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3664         Implement.
3665
3666 2004-05-03  Olga Rodimina  <rodimina@redhat.com>
3667
3668         * Makefile.am: Added new file.
3669         * Makefile.in: Regenerate.
3670         * javax/swing/JPopupMenu.java:
3671         Started implementation.
3672         * javax/swing/JWindow.java
3673         (JWindow): call super() if parent for window
3674         is not specified.
3675         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3676         New File. UI Delegate for JPopupMenu.
3677
3678 2004-04-30  Olga Rodimina  <rodimina@redhat.com>
3679
3680         * javax/swing/JApplet.java: Indicated that JApplet
3681         implements RootPaneContainer and made method of this
3682         interface public. 
3683         * javax/swing/JFrame.java: Ditto.
3684         * javax/swing/JWindow.java: Ditto.
3685         
3686 2004-04-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
3687
3688         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3689         (nativeSetBounds): Call gdk_window_move in addition to
3690         gtk_window_move.
3691
3692         * java/applet/Applet.java (preferredSize): Call parent's
3693         preferredSize if the applet stub is null.
3694         (minimumSize): Likewise for parent's minimumSize.
3695
3696 2004-04-27  Olga Rodimina  <rodimina@redhat.com>
3697
3698         * javax/swing/JMenuItem.java
3699         (createActionPropertyChangeListener): Implemented.
3700         (processMouseEvent): Ditto.
3701         (fireMenuDragMouseEntered): Ditto.
3702         (fireMenuDragMouseExited): Ditto.
3703         (fireMenuDragMouseDragged): Ditto.
3704         (fireMenuDragMouseReleased): Ditto.
3705         (menuSelectionChanged): Ditto.
3706         (getSubElements): Ditto.
3707         (getComponent): Ditto.
3708         (addMenuDragMouseListener): Ditto.
3709         (removeMenuDragMouseListener):Ditto.
3710         (addMenuKeyListener): Ditto.
3711         (removeMenuKeyListener): Ditto.
3712         * javax/swing/plaf/basic/BasicMenuItemUI.java
3713         (doClick): Imlemented.
3714         * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3715         Don't handle mouse events here. Pass them to 
3716         MenuSelectionManager.
3717         
3718 2004-04-26  Olga Rodimina  <rodimina@redhat.com>
3719         Used correct version of jalopy configuration
3720         file to fix style in the files below.
3721
3722 2004-04-26  Olga Rodimina  <rodimina@redhat.com>
3723
3724         * javax/swing/JCheckBoxMenuItem.java: 
3725         Fixed style and removed unnecessary comments.
3726         * javax/swing/JMenuItem.java: Ditto.
3727         * javax/swing/JRadioButtonMenuItem.java: Ditto.
3728         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3729         * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3730         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3731
3732 2004-04-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
3733
3734         * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3735         C-style.
3736
3737         * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3738
3739         * java/awt/ContainerOrderFocusTraversalPolicy.java
3740         (getComponentAfter): Start from current component and work up
3741         the component hierarchy until an acceptable component is found.
3742         Synchronize on tree lock.
3743         (getComponentBefore): Likewise.
3744
3745 2004-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
3746
3747         * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3748         focus-related debugging messages.
3749         * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3750         * java/awt/EventDispatchThread.java: Likewise.
3751         * java/awt/KeyboardFocusManager.java: Likewise.
3752         * java/awt/Window.java: Likewise.
3753         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3754         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3755
3756         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3757         new C++-style comments to C-style comments.
3758         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3759
3760         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3761         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3762         (handleEvent): Dispatch key press and key release events to
3763         backing widget.
3764         (requestFocus): Post a FOCUS_GAINED event to the event queue.
3765         (gtkWidgetRequestFocus): New method.
3766         (gtkWidgetDispatchKeyEvent): Likewise.
3767         * java/awt/Component.java (requestFocus, requestFocus(boolean),
3768         requestFocusInWindow, requestFocusInWindow(boolean),
3769         getFocusCycleRootAncestor, nextFocus, transferFocus,
3770         transferFocusBackward, transferFocusUpCycle, hasFocus,
3771         isFocusOwner): Implement and document focus-handling methods.
3772         (setFocusTraversalKeys): Inherit focus traversal keys when
3773         keystrokes argument is null.  Fix focus-handling documentation
3774         throughout class.
3775         * java/awt/Container.java (setFocusTraversalKeys,
3776         getFocusTraversalKeys, areFocusTraversalKeysSet,
3777         isFocusCycleRoot, setFocusTraversalPolicy,
3778         getFocusTraversalPolicy, isFocusTraversalPolicySet,
3779         setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
3780         Implement and document focus-handling methods.
3781         (transferFocusBackward): Remove method.
3782         (readObject, writeObject): Implement and document serialization
3783         methods.
3784         * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
3785         and document.
3786         * java/awt/DefaultFocusTraversalPolicy.java: Implement and
3787         document.
3788         * java/awt/DefaultKeyboardFocusManager.java: Implement and
3789         partially document.
3790         * java/awt/EventDispatchThread.java (run): Set default keyboard
3791         focus manager.  Attempt to dispatch each event to the keyboard
3792         focus manager before normal dispatch.
3793         * java/awt/KeyboardFocusManager.java: Implement and partially
3794         document.
3795         * java/awt/Window.java (Window): Set focusCycleRoot to true.
3796         (show): Focus initial component when window is shown for the
3797         first time.
3798         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3799         (pre_event_handler): Replace complex key press and key release
3800         logic with simple callbacks into GtkComponentPeer.
3801         * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
3802
3803 2004-04-21  Olga Rodimina  <rodimina@redhat.com>
3804
3805         * javax/swing/MenuSelectionManager.java
3806         (componentForPoint): Added new method. 
3807         (defaultManager): New Method. Implemented.
3808         (getSelectedPath): Ditto.
3809         (isComponentPartOfCurrentMenu): Ditto.
3810         (processKeyEvent): Added new method.
3811         (processMouseEvent): New Method. Implemented.
3812         (setSelectedPath): Ditto.
3813         (getPath): Ditto.
3814
3815 2004-04-19  Kim Ho  <kho@redhat.com>
3816
3817         * java/awt/Container.java: 
3818         (remove): Set the component's parent to null.
3819         (getComponentAt): Implement.
3820         * javax/swing/JComponent.java:
3821         (JComponent): Initialize defaultLocale
3822         (getDefaultLocale): Implement.
3823         (setDefaultLocale): ditto.
3824         * javax/swing/JSlider.java:
3825         (JSlider): Fix calculation of value.
3826         * javax/swing/JSplitPane.java: Implement.
3827         * javax/swing/plaf/basic/BasicLookAndFeel.java:
3828         Change SplitPane's default divider size.
3829         * javax/swing/plaf/basic/BasicScrollBarUI.java:
3830         (paint): Remove unused code.
3831         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
3832         Added comments and ran through jalopy.
3833         (setBasicSplitPaneUI): Get reference to hidden divider
3834         and set up one touch buttons if necessary.
3835         (setBorder): Fire propertyChangeEvent only if 
3836         borders are different.
3837         (getPreferredSize): Defer to layout manager.
3838         (propertyChange): Implement.
3839         (oneTouchExpandableChanged): ditto.
3840         (createLeftOneTouchButton): Use BasicArrowButton.
3841         (createRightOneTouchButton): ditto.
3842         (moveDividerTo): New method. Moves the divider
3843         to a set location based on the last divider location.
3844         (BasicSplitPaneDivider::MouseHandler): Implement.
3845         (BasicSplitPaneDivider::OneTouchButton): Removed.
3846         (BasicSplitPaneDivider::DragController): Implement.
3847         (BasicSplitPaneDivider::VerticalDragController):
3848         ditto.
3849         (BasicSplitPaneDivider::DividerLayout): ditto.
3850         * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
3851         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
3852         (calculateLayoutInfo): Don't show component if it's
3853         null.
3854         (paintTab): Fix title paint logic.
3855
3856 2004-05-26  Jerry Quinn  <jlquinn@optonline.net>
3857
3858         PR libgcj/8321
3859         * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3860         (setStartRule,setEndRule): Don't take abs of day number.
3861         (getOffset): Clarify docs.  Add argument checks.
3862         (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3863         (equals,hasSameRules,toString,readObject): Use startTimeMode and
3864         endTimeMode.
3865         * testsuite/libjava.mauve/xfails
3866         (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
3867
3868 2004-05-21  Bryce McKinlay  <mckinlay@redhat.com>
3869
3870         Layout interfaces during preparation, not initialization. 
3871         * java/lang/natClass.cc (initializeClass): Move 
3872         _Jv_LayoutInterfaceMethods call...
3873         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
3874
3875 2004-05-19  Anthony Green  <green@localhost.localdomain>
3876
3877         * Makefile.am (awt_java_source_files): Remove javax.rmi and
3878         gnu.javax.rmi code.
3879         * Makefile.in: Rebuilt.
3880         * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
3881         javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
3882         javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
3883         javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
3884         javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
3885         gnu/javax/rmi/CORBA/DelegateFactory.java,
3886         gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
3887         gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
3888         gnu/javax/rmi/CORBA/StubDelegateImpl.java,
3889         gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
3890         gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
3891         gnu/javax/rmi/PortableServer.java: Remove files.
3892
3893 2004-05-19  Anthony Green  <green@redhat.com>
3894
3895         * Makefile.am: Define JAVA_EXT_DIRS.
3896         * Makefile.in: Rebuilt.
3897         * java/lang/natRuntime.cc (insertSystemProperties): Set
3898         java.ext.dirs property.
3899
3900 2004-05-16  Mark Wielaard  <mark@klomp.org>
3901
3902         * java/io/Writer.java (Writer(Object)): Check for null lock object.
3903
3904 2004-05-15  Mark Wielaard  <mark@klomp.org>
3905
3906         * doc/cni.sgml: Removed, merged into gcj.texi.
3907
3908 2004-05-15  Mark Wielaard  <mark@klomp.org>
3909
3910         * Makefile.am (ordinary_java_source_files): Add new javax.print
3911         classes.
3912         * Makefile.in: Regenerated.
3913
3914 2004-05-15  Michael Koch  <konqueror@gmx.de>
3915
3916         * javax/print/attribute/standard/DateTimeAtCompleted.java,
3917         javax/print/attribute/standard/DateTimeAtCreation.java,
3918         javax/print/attribute/standard/DateTimeAtProcessing.java,
3919         javax/print/attribute/standard/DocumentName.java,
3920         javax/print/attribute/standard/JobHoldUntil.java,
3921         javax/print/attribute/standard/JobImpressionsCompleted.java,
3922         javax/print/attribute/standard/JobMessageFromOperator.java,
3923         javax/print/attribute/standard/JobName.java,
3924         javax/print/attribute/standard/JobOriginatingUserName.java,
3925         javax/print/attribute/standard/JobPriority.java,
3926         javax/print/attribute/standard/JobPrioritySupported.java,
3927         javax/print/attribute/standard/NumberOfInterveningJobs.java,
3928         javax/print/attribute/standard/OutputDeviceAssigned.java,
3929         javax/print/attribute/standard/PrinterInfo.java,
3930         javax/print/attribute/standard/PrinterLocation.java,
3931         javax/print/attribute/standard/PrinterMakeAndModel.java,
3932         javax/print/attribute/standard/PrinterMessageFromOperator.java,
3933         javax/print/attribute/standard/PrinterName.java,
3934         javax/print/attribute/standard/QueuedJobCount.java,
3935         javax/print/attribute/standard/RequestingUserName.java:
3936         Fixed javadocs all over.
3937
3938 2004-05-15  Michael Koch  <konqueror@gmx.de>
3939
3940         * javax/print/DocFlavor.java,
3941         javax/print/attribute/standard/ColorSupported.java,
3942         javax/print/attribute/standard/Compression.java,
3943         javax/print/attribute/standard/CopiesSupported.java,
3944         javax/print/attribute/standard/Fidelity.java,
3945         javax/print/attribute/standard/Finishings.java,
3946         javax/print/attribute/standard/JobImpressionsSupported.java,
3947         javax/print/attribute/standard/JobKOctetsSupported.java,
3948         javax/print/attribute/standard/JobMediaSheetsSupported.java,
3949         javax/print/attribute/standard/JobSheets.java,
3950         javax/print/attribute/standard/JobState.java,
3951         javax/print/attribute/standard/JobStateReason.java,
3952         javax/print/attribute/standard/JobStateReasons.java,
3953         javax/print/attribute/standard/Media.java,
3954         javax/print/attribute/standard/MediaSizeName.java,
3955         javax/print/attribute/standard/MultipleDocumentHandling.java,
3956         javax/print/attribute/standard/NumberUpSupported.java,
3957         javax/print/attribute/standard/OrientationRequested.java,
3958         javax/print/attribute/standard/PDLOverrideSupported.java,
3959         javax/print/attribute/standard/PageRanges.java,
3960         javax/print/attribute/standard/PresentationDirection.java,
3961         javax/print/attribute/standard/PrintQuality.java,
3962         javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
3963         javax/print/attribute/standard/PrinterMoreInfo.java,
3964         javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
3965         javax/print/attribute/standard/PrinterResolution.java,
3966         javax/print/attribute/standard/PrinterState.java,
3967         javax/print/attribute/standard/PrinterStateReason.java,
3968         javax/print/attribute/standard/PrinterStateReasons.java,
3969         javax/print/attribute/standard/PrinterURI.java,
3970         javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
3971         javax/print/attribute/standard/Severity.java,
3972         javax/print/attribute/standard/SheetCollate.java,
3973         javax/print/attribute/standard/Sides.java:
3974         Added serialVersionUID and removed final keyword where it doenst
3975         belong.
3976
3977 2004-05-15  Michael Koch  <konqueror@gmx.de>
3978
3979         * javax/print/PrintServiceLookup.java: New file.
3980
3981 2004-05-15  Michael Koch  <konqueror@gmx.de>
3982
3983         * javax/print/DocFlavor.java:
3984         Implemented all flavor classes.
3985
3986 2004-05-15  Michael Koch  <konqueror@gmx.de>
3987
3988         * javax/print/attribute/standard/ColorSupported.java,
3989         javax/print/attribute/standard/Compression.java,
3990         javax/print/attribute/standard/CopiesSupported.java,
3991         javax/print/attribute/standard/Fidelity.java,
3992         javax/print/attribute/standard/Finishings.java,
3993         javax/print/attribute/standard/JobImpressionsSupported.java,
3994         javax/print/attribute/standard/JobKOctetsSupported.java,
3995         javax/print/attribute/standard/JobMediaSheetsSupported.java,
3996         javax/print/attribute/standard/JobSheets.java,
3997         javax/print/attribute/standard/JobState.java,
3998         javax/print/attribute/standard/JobStateReason.java,
3999         javax/print/attribute/standard/JobStateReasons.java,
4000         javax/print/attribute/standard/Media.java,
4001         javax/print/attribute/standard/MediaSizeName.java,
4002         javax/print/attribute/standard/MultipleDocumentHandling.java,
4003         javax/print/attribute/standard/NumberUpSupported.java,
4004         javax/print/attribute/standard/OrientationRequested.java,
4005         javax/print/attribute/standard/PDLOverrideSupported.java,
4006         javax/print/attribute/standard/PageRanges.java,
4007         javax/print/attribute/standard/PresentationDirection.java,
4008         javax/print/attribute/standard/PrintQuality.java,
4009         javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4010         javax/print/attribute/standard/PrinterMoreInfo.java,
4011         javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4012         javax/print/attribute/standard/PrinterResolution.java,
4013         javax/print/attribute/standard/PrinterState.java,
4014         javax/print/attribute/standard/PrinterStateReason.java,
4015         javax/print/attribute/standard/PrinterStateReasons.java,
4016         javax/print/attribute/standard/PrinterURI.java,
4017         javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4018         javax/print/attribute/standard/Severity.java,
4019         javax/print/attribute/standard/SheetCollate.java,
4020         javax/print/attribute/standard/Sides.java: New files.
4021
4022 2004-05-15  Michael Koch  <konqueror@gmx.de>
4023
4024         * javax/print/Doc.java
4025         (getPrintData): Throws IOException.
4026         (getReaderForText): Likewise.
4027         (getStreamForBytes): Likewise.
4028         * javax/print/DocFlavor.java:
4029         Fixed filename in copyright.
4030         (serialVersionUID): New field.
4031         * javax/print/ServiceUIFactory.java:
4032         Made all constants final.
4033         * javax/print/AttributeException.java
4034         javax/print/MultiDoc.java
4035         javax/print/MultiDocPrintJob.java
4036         javax/print/MultiDocPrintService.java
4037         javax/print/StreamPrintService.java
4038         javax/print/URIException.java: New files.
4039         * javax/print/Makefile.am
4040         (EXTRA_DIST): Added all new files.
4041
4042 2004-05-15  Michael Koch  <konqueror@gmx.de>
4043
4044         * javax/print/attribute/standard/Copies.java,
4045         javax/print/attribute/standard/DateTimeAtCompleted.java,
4046         javax/print/attribute/standard/DateTimeAtCreation.java,
4047         javax/print/attribute/standard/DateTimeAtProcessing.java,
4048         javax/print/attribute/standard/DocumentName.java,
4049         javax/print/attribute/standard/JobHoldUntil.java,
4050         javax/print/attribute/standard/JobImpressions.java,
4051         javax/print/attribute/standard/JobImpressionsCompleted.java,
4052         javax/print/attribute/standard/JobKOctets.java,
4053         javax/print/attribute/standard/JobKOctetsProcessed.java,
4054         javax/print/attribute/standard/JobMediaSheets.java,
4055         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4056         javax/print/attribute/standard/JobMessageFromOperator.java,
4057         javax/print/attribute/standard/JobName.java,
4058         javax/print/attribute/standard/JobOriginatingUserName.java,
4059         javax/print/attribute/standard/JobPriority.java,
4060         javax/print/attribute/standard/JobPrioritySupported.java,
4061         javax/print/attribute/standard/NumberOfDocuments.java,
4062         javax/print/attribute/standard/NumberOfInterveningJobs.java,
4063         javax/print/attribute/standard/NumberUp.java,
4064         javax/print/attribute/standard/OutputDeviceAssigned.java,
4065         javax/print/attribute/standard/PagesPerMinute.java,
4066         javax/print/attribute/standard/PagesPerMinuteColor.java:
4067         Fixed @return tag all over.
4068
4069 2004-05-15  Michael Koch  <konqueror@gmx.de>
4070
4071         * javax/print/attribute/AttributeSetUtilities.java
4072         (verifyCategoryForValue): Fixed typo in javadoc.
4073         * javax/print/attribute/HashAttributeSet.java
4074         (containsKey): Fixed @return tag.
4075         (comtainsValue): Likewise.
4076         (equals): Likewise.
4077         * javax/print/attribute/IntegerSyntax.java
4078         (equals): Likewise.
4079         * javax/print/attribute/ResolutionSyntax.java
4080         (equals): Likewise.
4081         (getCrossFeedResolution): Removed unused code.
4082         (getFeedResolution): Likewise.
4083         * javax/print/attribute/SetOfIntegerSyntax.java
4084         (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4085         (equals): Fixed @return tag.
4086         * javax/print/attribute/TextSyntax.java
4087         (TextSyntax): Take locale into account.
4088         (hashCode): Better implementation.
4089
4090 2004-05-15  Michael Koch  <konqueror@gmx.de>
4091
4092         * javax/print/CancelablePrintJob.java,
4093         javax/print/Doc.java,
4094         javax/print/DocFlavor.java,
4095         javax/print/DocPrintJob.java,
4096         javax/print/FlavorException.java,
4097         javax/print/PrintException.java,
4098         javax/print/PrintService.java,
4099         javax/print/ServiceUIFactory.java: New files.
4100
4101 2004-05-15  Mark Wielaard  <mark@klomp.org>
4102
4103         * gnu/regexp/CharIndexedReader.java: Removed.
4104         * gnu/regexp/REFilterReader.java: Likewise.
4105         * gnu/regexp/RETokenLookAhead.java: Likewise.
4106         * Makefile.am (ordinary_java_source_files): Remove above classes.
4107         * Makefile.in: Regenerated.
4108
4109 2004-05-14  Tom Tromey  <tromey@redhat.com>
4110
4111         * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4112         not `XGraphicsConfiguration.XOffScreenImage'.
4113
4114 2004-05-14  Scott Gilbertson  <scottg@mantatest.com>
4115
4116         * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4117
4118 2004-05-14  Steven Augart  <augart@watson.ibm.com>
4119
4120         * include/jni.h (_Jv_func): Removed.
4121         (struct JNINativeInterface): Use `void *' for reserved slots.
4122         (struct JNIInvokeInterface): Likewise.
4123
4124 2004-05-11  Michael Koch  <konqueror@gmx.de>
4125
4126         * gnu/java/net/natPlainSocketImplPosix.cc
4127         (read): Fixed typo in expression.
4128
4129 2004-05-10  Andreas Tobler  <a.tobler@schweiz.ch>
4130
4131         * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4132         ld_library_additions. Adjust all calls to libjava_invoke to match
4133         the new argument.
4134
4135         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4136         path to cxxflagslist.
4137         Pass path of libstdc++ to libjava_invoke.
4138
4139         * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4140         libjava_invoke arguments.
4141
4142 2004-05-10  Ranjit Mathew  <rmathew@hotmail.com>
4143
4144         * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4145         reality.
4146
4147 2004-05-07  Ranjit Mathew  <rmathew@gmail.com>
4148
4149         * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4150         main binary against the JNI shared library.
4151
4152 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
4153
4154         * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4155         WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4156         (SimpleTimeZone): Tweak docs.  Add new variation.
4157         (setStartRule,setEndRule): Add new variations.  Use
4158         startTimeMode and endTimeMode.
4159
4160 2004-05-07  Jerry Quinn  <jlquinn@optonline.net>
4161
4162         * java/util/Calendar.java (getActualMinimum,
4163         getActualMaximum):  Remove abstract.  Implement.
4164
4165 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
4166
4167         Run the jni tests using the interpreter.
4168         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4169         options_cxx to shared lib compile command.
4170         (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4171         they are used to link the shared lib, not the main binary.
4172         Use libjava_invoke to run gij.
4173
4174 2004-05-06  Michael Koch  <konqueror@gmx.de>
4175
4176         * java/util/logging/Level.java
4177         (parse): Use == instead of String.equals().
4178
4179 2004-05-06  Bryce McKinlay  <mckinlay@redhat.com>
4180
4181         * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use 
4182         verify_field_signature and verify_method_signature, not 
4183         _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4184         (_Jv_ClassReader::handleField): Likewise.
4185         (_Jv_ClassReader::handleMethod): Likewise.
4186
4187 2004-05-06  Michael Koch  <konqueror@gmx.de>
4188
4189         * javax/swing/table/TableColumn.java:
4190         Reformated.
4191
4192 2004-05-06  Michael Koch  <konqueror@gmx.de>
4193
4194         * javax/imageio/spi/ImageReaderWriterSpi.java
4195         (ImageReaderWriterSpi): Made it public.
4196         * javax/imageio/stream/ImageInputStream.java:
4197         Clean up imports.
4198
4199 2004-05-06  Michael Koch  <konqueror@gmx.de>
4200
4201         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4202         Removed empty line.
4203
4204 2004-05-06  Michael Koch  <konqueror@gmx.de>
4205
4206         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4207         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4208         New files.
4209         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4210         Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4211         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4212         Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4213         their own source file.
4214         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4215         Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4216         their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4217         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4218         (create): Define variable on top of function.
4219         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4220         (menu_pos): Prototyped.
4221         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4222         (setTitle): Removed.
4223         * jni/gtk-peer/gthread-jni.c
4224         (gdk_threads_wake): Removed.
4225         * Makefile.am (gtk_c_source_files): Added new files
4226         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4227         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4228         * Makefile.in: Regenerated.
4229
4230 2004-05-05  Bryce McKinlay  <mckinlay@redhat.com>
4231
4232         * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4233         call.
4234
4235 2004-05-05  Mark Wielaard  <mark@klomp.org>
4236
4237         * javax/swing/AbstractButton.java: Replace special HTML entities with
4238         ASCII equivalent.
4239         * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4240         * javax/swing/DefaultButtonModel.java: Likewise.
4241         * javax/swing/DefaultListModel.java: Likewise.
4242         * javax/swing/JList.java: Likewise.
4243         * javax/swing/JSlider.java: Likewise.
4244         * javax/swing/ListModel.java: Likewise.
4245         * javax/swing/Popup.java: Likewise.
4246         * javax/swing/SwingUtilities.java: Likewise.
4247
4248 2004-05-05  Michael Koch  <konqueror@gmx.de>
4249
4250         * javax/swing/AbstractButton.java,
4251         javax/swing/ActionMap.java,
4252         javax/swing/DefaultButtonModel.java,
4253         javax/swing/DefaultListModel.java,
4254         javax/swing/ImageIcon.java,
4255         javax/swing/JComboBox.java,
4256         javax/swing/JComponent.java,
4257         javax/swing/JFrame.java,
4258         javax/swing/JInternalFrame.java,
4259         javax/swing/JMenuBar.java,
4260         javax/swing/JMenuItem.java,
4261         javax/swing/JOptionPane.java,
4262         javax/swing/JProgressBar.java,
4263         javax/swing/JRootPane.java,
4264         javax/swing/JScrollBar.java,
4265         javax/swing/JScrollPane.java,
4266         javax/swing/JSeparator.java,
4267         javax/swing/JSlider.java,
4268         javax/swing/JTabbedPane.java,
4269         javax/swing/JTable.java,
4270         javax/swing/JTextField.java,
4271         javax/swing/JToolBar.java,
4272         javax/swing/JToolTip.java,
4273         javax/swing/JTree.java,
4274         javax/swing/JViewport.java,
4275         javax/swing/JWindow.java,
4276         javax/swing/KeyStroke.java,
4277         javax/swing/LookAndFeel.java,
4278         javax/swing/SwingUtilities.java,
4279         javax/swing/Timer.java,
4280         javax/swing/ToolTipManager.java,
4281         javax/swing/UIDefaults.java,
4282         javax/swing/border/TitledBorder.java,
4283         javax/swing/filechooser/FileSystemView.java,
4284         javax/swing/plaf/basic/BasicButtonListener.java,
4285         javax/swing/plaf/basic/BasicButtonUI.java,
4286         javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4287         javax/swing/plaf/basic/BasicGraphicsUtils.java,
4288         javax/swing/plaf/basic/BasicLabelUI.java,
4289         javax/swing/plaf/basic/BasicMenuItemUI.java,
4290         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4291         javax/swing/plaf/basic/BasicRootPaneUI.java,
4292         javax/swing/plaf/basic/BasicScrollBarUI.java,
4293         javax/swing/plaf/basic/BasicScrollPaneUI.java,
4294         javax/swing/plaf/basic/BasicSliderUI.java,
4295         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4296         javax/swing/plaf/basic/BasicToggleButtonUI.java,
4297         javax/swing/table/JTableHeader.java,
4298         javax/swing/text/AbstractDocument.java,
4299         javax/swing/text/DefaultCaret.java,
4300         javax/swing/text/StyledEditorKit.java,
4301         javax/swing/tree/DefaultTreeCellEditor.java:
4302         Cleaned up imports.
4303
4304 2004-05-05  Michael Koch  <konqueror@gmx.de>
4305
4306         * java/util/prefs/AbstractPreferences.java
4307         (AbstractPreferences): Added parenthesis for clarity.
4308         Closes classpath bug #7940.
4309
4310 2004-05-05  Tom Tromey  <tromey@redhat.com>
4311
4312         * javax/naming/CompoundName.java (endsWith): Look at correct
4313         element of source name.
4314
4315 2004-05-05  Mark Wielaard  <mark@klomp.org>
4316
4317         Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4318         * java/util/HashMap.java (rehash): Add entry at start of bucket.
4319
4320 2004-05-05  Tom Tromey  <tromey@redhat.com>
4321
4322         * java/io/BufferedReader.java (skip): Removed unused
4323         variable.
4324
4325 2004-05-05  Michael Koch  <konqueror@gmx.de>
4326
4327         * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4328
4329 2004-05-05  Dalibor Topic  <robilad@kaffe.org>
4330
4331         * java/text/AttributedString.java,
4332         java/text/AttributedStringIterator.java,
4333         java/text/Collator.java,
4334         java/text/DecimalFormatSymbols.java,
4335         java/text/NumberFormat.java,
4336         java/text/RuleBasedCollator.java:
4337         Cleaned up imports.
4338
4339 2004-05-05  Tom Tromey  <tromey@redhat.com>
4340
4341         * java/text/Format.java: Cleaned up imports.
4342         * java/text/DecimalFormat.java: Cleaned up imports.
4343         * java/security/SecureRandom.java: Cleaned up imports.
4344         (SecureRandom): Removed unused variable.
4345         * java/security/UnresolvedPermission.java: Cleaned up imports.
4346         * java/util/Date.java (parse): Removed unused variable.
4347         * java/util/ResourceBundle.java: Cleaned up imports.
4348         (getBundle): Removed unused variable.
4349         (tryBundle): Likewise.
4350         * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4351
4352 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4353
4354         * java/text/SimpleDateFormat.java:
4355         (formatWithAttribute): New method. It implements
4356         the formatting process with attributes.
4357         (format): Use formatWithAttribute.
4358         (formatToCharacterIterator): New method. Use
4359         formatWithAttribute.
4360
4361 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4362
4363         * java/text/MessageFormat.java:
4364         (class Field): New class.
4365         (formatToCharacterIterator): New method.
4366         (format): Use formatInternal now.
4367         (formatInternal): New method. String formatter should
4368         be done here (with attributes). Attributes merging supported.
4369         (parse): More documentation.
4370         (getFormatsByArgumentIndex): New method.
4371         (setFormatByArgumentIndex): New method.
4372         (setFormatsByArgumentIndex): New method.
4373
4374 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4375
4376         * java/text/DecimalFormat.java
4377         (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4378         (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4379         (parse): Fixed handling of exponentiation notation and grouping.
4380
4381 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
4382
4383         * java/text/DecimalFormat.java
4384         (scanFix): Build attribute array. Fixed error reporting.
4385         (applyPatternWithSymbols): Store attributes for the prefix and
4386         suffix.
4387         (formatInternal): New method. Changed the way the string is
4388         computed. Implemented attributes. Cleant up rounding in
4389         exponential notation.
4390         (format): Use formatInternal.
4391         (formatToCharacterIterator): New method.
4392         (exponentRound, negativePrefixRanges, positivePrefixRanges,
4393         negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4394         positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4395         New fields.
4396
4397 2004-05-04  Dalibor Topic  <robilad@kaffe.org>
4398
4399         * java/security/interfaces/DSAKeyPairGenerator.java,
4400         java/security/interfaces/DSAPrivateKey.java,
4401         java/security/interfaces/DSAPublicKey.java,
4402         java/security/interfaces/RSAPrivateKey.java,
4403         java/security/interfaces/RSAPublicKey.java:
4404         Cleaned up imports.
4405
4406 2004-05-04  Michael Koch  <konqueror@gmx.de>
4407
4408         * java/nio/ByteBuffer.java,
4409         java/nio/CharBuffer.java,
4410         java/nio/DoubleBuffer.java,
4411         java/nio/FloatBuffer.java,
4412         java/nio/IntBuffer.java,
4413         java/nio/LongBuffer.java,
4414         java/nio/ShortBuffer.java:
4415         (compareTo): Fixed bogus implementation in all buffer classes.
4416
4417 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4418
4419         * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4420         32 bit pixels not 8 bit pixels.
4421         (isCompatibleRaster): Added javadoc comment.
4422
4423 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4424
4425         * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4426         scanline stride.
4427
4428 2004-05-04  Ingo Proetel  <proetel@aicas.com>
4429
4430         * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4431         (getColorModel): Return the actual color model.
4432         (getRaster): Implemented.
4433         (ColorRaster): New inner class.
4434         * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4435         a PaintContext.
4436         * java/awt/Color.java (<init>): Make exception more verbose.
4437         (createContext): Use ColorModel when creating a PaintContext.
4438
4439 2004-05-04  Michael Koch  <konqueror@gmx.de>
4440
4441         * gnu/java/text/CharacterBreakIterator.java
4442         (previous): Removed unused variable.
4443
4444 2004-05-04  Guilhem Lavaux <guilhem@kaffe.org>
4445
4446         * gnu/java/text/FormatBuffer.java,
4447         gnu/java/text/AttributedFormatBuffer.java,
4448         gnu/java/text/StringFormatBuffer.java: New classes to implement
4449         attributed iterators in java.text.
4450         * gnu/java/text/FormatCharacterIterator.java: Moved 
4451         from java/text as it is an internal class.
4452         * java/text/FormatCharacterIterator.java: Removed.
4453         * java/text/Format.java:
4454         Import gnu.java.text.FormatCharacterIterator.
4455         * Makefile.am (java_source_files): Added new files.
4456         * Makefile.in: Regenerated.
4457         
4458
4459 2004-05-04  Mark Wielaard  <mark@klomp.org>
4460
4461         * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
4462
4463 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
4464
4465         * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4466         * Makefile.in: Rebuilt.
4467
4468 2004-05-03  Mark Wielaard  <mark@klomp.org>
4469
4470         * gnu/java/security/der/DERReader.java: Call static methods staticly.
4471         * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4472         * java/net/URL.java
4473         (set(String, String, int, String, String, String, String, String)):
4474         Assign this.file to path or path + "?" + query.
4475         * java/util/Arrays.java: Call static methods staticly.
4476         * java/util/zip/ZipEntry.java: Likewise.
4477         * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4478         dir to this.direction.
4479         * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4480         Assign static field only once.
4481         (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4482
4483 2004-05-03  Mark Wielaard  <mark@klomp.org>
4484
4485         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4486         unused variables hScrollbarHeight and vScrollbarWidth.
4487         (preferredSize): Likewise.
4488         * gnu/java/security/provider/DSAParameters.java (engineToString):
4489         Removed unused call to System.getProperty("line.seperator");
4490         * java/security/Security.java (loadProviders): Return result.
4491
4492 2004-05-03  Tom Tromey  <tromey@redhat.com>
4493
4494         * java/net/URLStreamHandler.java (toExternalForm): Removed
4495         unused variables.
4496         unused constructor.
4497         * java/math/BigDecimal.java (divide): Removed unused variable.
4498         * java/lang/Throwable.java: Cleaned up imports.
4499         * java/lang/ClassLoader.java: Cleaned up imports.
4500         * java/io/FilePermission.java (implies): Removed unused
4501         variable.
4502         * java/awt/TextComponent.java: Removed unused import.
4503         * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4504         * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4505         * gnu/java/text/WordBreakIterator.java: Removed unused import.
4506         * gnu/java/text/SentenceBreakIterator.java: Removed unused
4507         import.
4508         * gnu/java/text/LineBreakIterator.java: Removed unused import.
4509         * gnu/java/text/CharacterBreakIterator.java: Removed
4510         unused import.
4511         * gnu/java/security/provider/DSAKeyPairGenerator.java:
4512         Cleaned up imports.
4513         * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4514         * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4515         unused method.
4516         * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4517         * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4518         * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4519         * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4520         * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4521         (lookupProviders): Removed unused variable.
4522         (loadNextServiceProvider): Likewise.
4523         * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4524
4525 2004-05-03  Michael Koch  <konqueror@gmx.de>
4526
4527         Fixes PR libgcj/14695:
4528         * java/net/NetworkInterface.java
4529         (getByName): Return null when no interface was found.
4530
4531 2004-04-30  Ranjit Mathew  <rmathew@hotmail.com>
4532             Tom Tromey  <tromey@redhat.com>
4533
4534         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4535         additional option "-Wmissing-prototypes" for compiling C sources.
4536         Print actual filename for pass/fail rather than $name.c.
4537         * testsuite/libjava.jni/PR15133.java: New testcase file.
4538         * testsuite/libjava.jni/PR15133.c: Likewise.
4539         * testsuite/libjava.jni/PR15133.out: Likewise.
4540
4541 2004-04-30  Roger Sayle  <roger@eyesopen.com>
4542
4543         * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4544         ceil and floor.
4545
4546 2004-04-25  Ranjit Mathew  <rmathew@hotmail.com>
4547         
4548         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4549         limit the maximum heap size to avoid unnecessary thrashing.
4550
4551 2004-04-24  Jerry Quinn  <jlquinn@optonline.net>
4552
4553         * java/text/CollationElementIterator.java (reset): Reset
4554         lookahead variables.
4555
4556 2004-04-23  Mark Wielaard  <mark@klomp.org>
4557
4558         * jni/classpath/jcl.c: Changed C++ comments into C comments.
4559
4560 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4561
4562         * java/sql/DriverManager.java:
4563         Cleaned up imports.
4564
4565 2004-04-23  Michael Koch  <konqueror@gmx.de>
4566
4567         * java/net/URL.java
4568         (hashcode): Don't initialize with default value explicitely.
4569         (getContent): Removed redundant "final" keyword.
4570         (openStream): Likewise.
4571         (getURLStreamHandler): Fixed coding style.
4572         * java/net/URLConnection.java
4573         (defaultAllowUserInteraction): Don't initialize with default value
4574         explicitely.
4575         (connected): Likewise.
4576         (doOutput): Likewise.
4577         (ifModifiedSince): Likewise.
4578         (dateformats_initialized): Likewise.
4579         (setURLStreamHander): Use StreamTokenizer where it belongs to.
4580
4581 2004-04-23  Michael Koch  <konqueror@gmx.de>
4582
4583         * gnu/java/nio/channels/FileChannelImpl.java
4584         (SET, CUR): Unused, removed.
4585         (read): Implement here directly.
4586         (implRead): Removed.
4587         (write): Implement here directly.
4588         (implWrite): Removed.
4589
4590 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
4591
4592         * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4593         javax/rmi/CORBA/Stub.java,
4594         javax/rmi/CORBA/Util.java,
4595         javax/rmi/CORBA/ValueHandler.java,
4596         javax/rmi/CORBA/ValueHandler.java,
4597         javax/rmi/PortableRemoteObject.java:
4598         Cleaned up imports.
4599
4600 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4601
4602         * java/util/jar/JarFile.java,
4603         java/util/jar/JarInputStream.java,
4604         java/util/jar/JarOutputStream.java,
4605         java/util/jar/Manifest.java:
4606         Cleaned up imports.
4607
4608 2004-04-23 Dalibor Topic <robilad@kaffe.org>
4609
4610         * java/util/ArrayList.java,
4611         java/util/Calendar.java,
4612         java/util/Currency.java,
4613         java/util/HashMap.java,
4614         java/util/HashSet.java,
4615         java/util/Hashtable.java,
4616         java/util/LinkedList.java,
4617         java/util/Properties.java,
4618         java/util/PropertyPermission.java,
4619         java/util/TimeZone.java,
4620         java/util/TreeMap.java,
4621         java/util/TreeSet.java,
4622         java/util/Vector.java,
4623         java/util/WeakHashMap.java:
4624         Cleaned up imports.
4625
4626 2004-04-23  Dalibor Topic  <robilad@kaffe.org>
4627
4628         * java/util/logging/FileHandler.java,
4629         java/util/logging/Formatter.java,
4630         java/util/logging/Handler.java,
4631         java/util/logging/Logger.java,
4632         java/util/logging/SimpleFormatter.java,
4633         java/util/logging/XMLFormatter.java:
4634         Cleaned up imports.
4635
4636 2004-04-22  Mark Wielaard  <mark@klomp.org>
4637
4638         * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4639         -Wno-long-long flags variable.
4640         (gtk_c_files): Use PEDANTIC_CFLAGS.
4641         * Makefile.in: Regenerated.
4642
4643 2004-04-22  Mark Wielaard  <mark@klomp.org>
4644
4645         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4646         Changed C++ comments into C comments.
4647         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4648         Likewise.
4649
4650 2004-04-22  Michael Koch  <konqueror@gmx.de>
4651
4652         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4653         Merged copyright year with GNU classpath.
4654
4655 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
4656
4657         * javax/security/auth/x500/X500Principal.java:
4658         Cleaned up imports.
4659
4660 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
4661
4662         * javax/swing/JSlider.java:
4663         Fixed HTML tags in comments.
4664
4665 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
4666
4667         * javax/accessibility/AccessibleText.java:
4668         Cleaned up imports.
4669
4670 2004-04-22  Jeroen Frijters <jeroen@sumatra.nl>
4671
4672         * java/net/URLStreamHandler.java
4673         (parseURL): Convert the file path to using '/' instead of native
4674         file separator.
4675
4676 2004-04-22  Guilhem Lavaux <guilhem@kaffe.org>
4677
4678         * java/net/URL.java
4679         (userInfo): New field.
4680         (URL): Set authority to the right value.
4681         (setURL): Fixed authority and file initialization.
4682         * java/net/URLStreamHandler.java
4683         (parseURL): Take care of the query tag. Build authority.
4684         (toExternalForm): Fixed URL building using authority.
4685
4686 2004-04-22  Michael Koch  <konqueror@gmx.de>
4687
4688         * java/net/Socket.java
4689         (impl): Made package-private.
4690         * java/net/ServerSocket.java
4691         (implAccept): Access Socket.impl field directly.
4692
4693 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
4694
4695         * java/util/prefs/Preferences.java,
4696         java/util/prefs/InvalidPreferencesFormatException.java,
4697         java/util/prefs/BackingStoreException.java,
4698         java/util/prefs/AbstractPreferences.java:
4699         Cleaned up imports.
4700
4701 2004-04-22  Dalibor Topic  <robilad@kaffe.org>
4702
4703         * java/util/regex/Matcher.java,
4704         java/util/regex/Pattern.java:
4705         Cleaned up imports.
4706
4707 2004-04-22  Michael Koch  <konqueror@gmx.de>
4708
4709         * java/nio/charset/IllegalCharsetNameException.java
4710         (charsetName): Made private.
4711         (IllegalCharsetNameException): Added @param tag to javadoc.
4712         (getCharsetName): Added @return tag to javadoc.
4713         * java/nio/charset/MalformedInputException.java
4714         (MalformedInputException): Added @param tag to javadoc.
4715         (getInputLength): Revised method description, added @return tag.
4716         (getMessage): Added @return tag.
4717
4718 2004-04-22  Jerry Quinn  <jlquinn@optonline.net>
4719
4720         * java/awt/Font.java (deriveFont): Implement missing variants.
4721         * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4722         missing variants.
4723
4724 2004-04-21  Bryce McKinlay  <mckinlay@redhat.com>
4725
4726         * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4727         Set method->index values for interface methods to their itable index.
4728         (initializeClass): Call _Jv_LayoutInterfaceMethods.
4729
4730 2004-04-21  Michael Koch  <konqueror@gmx.de>
4731
4732         * java/nio/DirectByteBufferImpl.java
4733         (shiftDown): Made static, give address as argument and
4734         provide a convenience method that overwrites shiftDown in
4735         ByteBufferImpl and calls the native shiftDown.
4736         * java/nio/MappedByteBufferImpl.java
4737         (): Use optimized method in DirectByteBufferImpl.
4738         * java/nio/natDirectByteBufferImpl.cc
4739         (shiftDown): Changed method signature. Removed usage of array_offset.
4740
4741 2004-04-21  Michael Koch  <konqueror@gmx.de>
4742
4743         * gnu/java/net/natPlainSocketImplPosix.cc
4744         (SocketInputStream::read): Make sure returned data is a byte value.
4745
4746 2004-04-21  Michael Koch  <konqueror@gmx.de>
4747
4748         * gnu/classpath/ServiceFactory.java,
4749         gnu/classpath/ServiceProviderLoadingAction.java,
4750         javax/imageio/ImageReader.java,
4751         javax/imageio/ImageTranscoder.java,
4752         javax/imageio/ImageWriter.java,
4753         javax/imageio/package.html,
4754         javax/imageio/spi/IIOServiceProvider.java,
4755         javax/imageio/spi/ImageInputStreamSpi.java,
4756         javax/imageio/spi/ImageOutputStreamSpi.java,
4757         javax/imageio/spi/ImageReaderWriterSpi.java,
4758         javax/imageio/spi/ImageTranscoderSpi.java,
4759         javax/imageio/spi/RegisterableService.java,
4760         javax/imageio/spi/ServiceRegistry.java,
4761         javax/imageio/spi/package.html,
4762         javax/imageio/stream/IIOByteBuffer.java,
4763         javax/imageio/stream/ImageInputStream.java,
4764         javax/imageio/stream/ImageOutputStream.java,
4765         javax/imageio/stream/package.html:
4766         New files.
4767         * Makefile.am
4768         (ordinary_java_source_files): Added
4769         gnu/classpath/ServiceFactory.java and
4770         gnu/classpath/ServiceProviderLoadingAction.java.
4771         (javax_source_files): Added
4772         javax/imageio/ImageReader.java,
4773         javax/imageio/ImageTranscoder.java,
4774         javax/imageio/ImageWriter.java,
4775         javax/imageio/spi/IIOServiceProvider.java,
4776         javax/imageio/spi/ImageInputStreamSpi.java,
4777         javax/imageio/spi/ImageOutputStreamSpi.java,
4778         javax/imageio/spi/ImageReaderWriterSpi.java,
4779         javax/imageio/spi/ImageTranscoderSpi.java,
4780         javax/imageio/spi/RegisterableService.java,
4781         javax/imageio/spi/ServiceRegistry.java,
4782         javax/imageio/stream/IIOByteBuffer.java,
4783         javax/imageio/stream/ImageInputStream.java and
4784         javax/imageio/stream/ImageOutputStream.java.
4785         * Makefile.in: Regenerated.
4786
4787 2004-04-21  Michael Koch  <konqueror@gmx.de>
4788
4789         * java/util/Properties.java
4790         (load): Fix wrongly merged fix.
4791
4792 2004-04-21  Mark Wielaard  <mark@klomp.org>
4793
4794         * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
4795         malloc and free buf.
4796
4797 2004-04-21  Dalibor Topic  <robilad@kaffe.org>
4798
4799         * javax/naming/AuthenticationException.java,
4800         javax/naming/AuthenticationNotSupportedException.java,
4801         javax/naming/CannotProceedException.java,
4802         javax/naming/CommunicationException.java,
4803         javax/naming/CompoundName.java,
4804         javax/naming/ConfigurationException.java,
4805         javax/naming/ContextNotEmptyException.java,
4806         javax/naming/InitialContext.java,
4807         javax/naming/InsufficientResourcesException.java,
4808         javax/naming/InterruptedNamingException.java,
4809         javax/naming/LimitExceededException.java,
4810         javax/naming/LinkException.java,
4811         javax/naming/LinkLoopException.java,
4812         javax/naming/LinkRef.java,
4813         javax/naming/MalformedLinkException.java,
4814         javax/naming/Name.java,
4815         javax/naming/NameAlreadyBoundException.java,
4816         javax/naming/NameNotFoundException.java,
4817         javax/naming/NamingSecurityException.java,
4818         javax/naming/NoInitialContextException.java,
4819         javax/naming/NoPermissionException.java,
4820         javax/naming/NotContextException.java,
4821         javax/naming/PartialResultException.java,
4822         javax/naming/ReferralException.java,
4823         javax/naming/ServiceUnavailableException.java,
4824         javax/naming/SizeLimitExceededException.java,
4825         javax/naming/TimeLimitExceededException.java,
4826         javax/naming/directory/Attribute.java,
4827         javax/naming/directory/Attributes.java,
4828         javax/naming/directory/SearchResult.java,
4829         javax/naming/event/NamingExceptionEvent.java,
4830         javax/naming/spi/ResolveResult.java:
4831         Cleaned up imports.
4832
4833 2004-04-21  Mark Wielaard  <mark@klomp.org>
4834
4835         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4836         Changed C++ comments into C comments. Removed commented out code.
4837         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4838         Likewise.
4839         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
4840         Likewise.
4841         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
4842         Likewise.
4843         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
4844         Likewise.
4845         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
4846         Likewise.
4847         * native/jni/gtk-peer/gthread-jni.c:
4848         Likewise.
4849
4850 2004-04-21  Mark Wielaard  <mark@klomp.org>
4851
4852         * javax/awt/JFrame.java: Implement WindowConstants. Remove final
4853         static fields defined in interface.
4854         * javax/awt/JDialog.java: Likewise.
4855         (JDialog): Make constructors public.
4856         (getDefaultCloseOperation): Make public.
4857         (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
4858         (setDefaultCloseOperation): Make public. Check argument. Add API doc.
4859         * javax/swing/JViewport.java (JViewport): Make constructor public.
4860
4861 2004-04-21  Michael Koch  <konqueror@gmx.de>
4862
4863         * java/util/Map.java
4864         (Entry): Removed redundant "static" modifier.
4865         * java/text/AttributedCharacterIterator.java:
4866         Updated copyright year.
4867
4868 2004-04-20  Michael Koch  <konqueror@gmx.de>
4869
4870         * javax/naming/directory/SearchControls.java:
4871         Don't explicitely extend java.lang.Object.
4872         * javax/naming/spi/DirStateFactory.java:
4873         Merged copyright year with GNU classpath.
4874
4875 2004-04-20  Michael Koch  <konqueror@gmx.de>
4876
4877         * java/nio/channels/Channels.java:
4878         Merged coding style with GNU classpath.
4879
4880 2004-04-20  Michael Koch  <konqueror@gmx.de>
4881
4882         * java/net/ServerSocket.java
4883         Merged coding style from GNU classpath.
4884
4885 2004-04-20  Michael Koch  <konqueror@gmx.de>
4886
4887         * java/io/BufferedWriter.java:
4888         Reordered variables to be at top of the class.
4889         (localFlush): Removed redundant final keyword.
4890
4891 2004-04-20  Ingo Proetel  <proetel@aicas.com>
4892
4893         * java/awt/event/MouseEvent.java (<init>): fixed field assignment 
4894
4895 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
4896
4897         * java/text/DecimalFormat.java (scanFix): Removed suffix check
4898         for percent and permill check.
4899
4900 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
4901
4902         * java/text/FieldPosition.java
4903         (FieldPosition) Constructor now behaves as it should according
4904         to the java documentation.
4905
4906 2004-04-20  Mark Wielaard  <mark@klomp.org>
4907
4908         * java/util/Properties.java: Use the word umlaut, not &auml; in api
4909         documentation.
4910
4911 2004-04-20  Michael Koch  <konqueror@gmx.de>
4912
4913         * java/nio/Buffer.java,
4914         java/nio/channels/AlreadyConnectedException.java,
4915         java/nio/channels/AsynchronousCloseException.java,
4916         java/nio/channels/ByteChannel.java,
4917         java/nio/channels/CancelledKeyException.java,
4918         java/nio/channels/Channel.java,
4919         java/nio/channels/Channels.java,
4920         java/nio/channels/ClosedByInterruptException.java,
4921         java/nio/channels/ClosedChannelException.java,
4922         java/nio/channels/ClosedSelectorException.java,
4923         java/nio/channels/ConnectionPendingException.java,
4924         java/nio/channels/DatagramChannel.java,
4925         java/nio/channels/FileChannel.java,
4926         java/nio/channels/FileLock.java,
4927         java/nio/channels/FileLockInterruptionException.java,
4928         java/nio/channels/GatheringByteChannel.java,
4929         java/nio/channels/IllegalBlockingModeException.java,
4930         java/nio/channels/IllegalSelectorException.java,
4931         java/nio/channels/InterruptibleChannel.java,
4932         java/nio/channels/NoConnectionPendingException.java,
4933         java/nio/channels/NonReadableChannelException.java,
4934         java/nio/channels/NonWritableChannelException.java,
4935         java/nio/channels/NotYetBoundException.java,
4936         java/nio/channels/NotYetConnectedException.java,
4937         java/nio/channels/OverlappingFileLockException.java,
4938         java/nio/channels/Pipe.java,
4939         java/nio/channels/ReadableByteChannel.java,
4940         java/nio/channels/ScatteringByteChannel.java,
4941         java/nio/channels/SelectableChannel.java,
4942         java/nio/channels/SelectionKey.java,
4943         java/nio/channels/Selector.java,
4944         java/nio/channels/ServerSocketChannel.java,
4945         java/nio/channels/SocketChannel.java,
4946         java/nio/channels/UnresolvedAddressException.java,
4947         java/nio/channels/UnsupportedAddressTypeException.java,
4948         java/nio/channels/WritableByteChannel.java,
4949         java/nio/channels/spi/AbstractInterruptibleChannel.java,
4950         java/nio/channels/spi/AbstractSelectableChannel.java,
4951         java/nio/channels/spi/AbstractSelectionKey.java,
4952         java/nio/channels/spi/AbstractSelector.java,
4953         java/nio/channels/spi/SelectorProvider.java,
4954         java/nio/charset/spi/CharsetProvider.java:
4955         Fixed javadocs and jalopied all over java.nio.
4956
4957 2004-04-20  Michael Koch  <konqueror@gmx.de>
4958
4959         * java/nio/ByteBufferImpl.java,
4960         java/nio/CharBufferImpl.java,
4961         java/nio/DirectByteBufferImpl.java,
4962         java/nio/DoubleBufferImpl.java,
4963         java/nio/DoubleViewBufferImpl.java,
4964         java/nio/FloatBufferImpl.java,
4965         java/nio/FloatViewBufferImpl.java,
4966         java/nio/IntBufferImpl.java,
4967         java/nio/IntViewBufferImpl.java,
4968         java/nio/LongBufferImpl.java,
4969         java/nio/LongViewBufferImpl.java,
4970         java/nio/MappedByteBufferImpl.java,
4971         java/nio/ShortBufferImpl.java,
4972         java/nio/ShortViewBufferImpl.java:
4973         Made sure all classes are final and removed final keyword from all
4974         methods.
4975
4976 2004-04-20  Michael Koch  <konqueror@gmx.de>
4977
4978         * java/rmi/MarshalledObject.java,
4979         java/rmi/Naming.java,
4980         java/rmi/RemoteException.java,
4981         java/rmi/activation/ActivationException.java,
4982         java/rmi/server/ServerCloneException.java,
4983         java/security/AccessController.java,
4984         java/security/AlgorithmParameterGenerator.java,
4985         java/security/AlgorithmParameters.java,
4986         java/security/CodeSource.java,
4987         java/security/Identity.java,
4988         java/security/IdentityScope.java,
4989         java/security/KeyPairGenerator.java,
4990         java/security/KeyStore.java,
4991         java/security/Security.java,
4992         java/security/Signature.java,
4993         java/security/SignatureSpi.java,
4994         java/security/SignedObject.java,
4995         java/security/spec/DSAParameterSpec.java,
4996         java/security/spec/DSAPrivateKeySpec.java,
4997         java/security/spec/DSAPublicKeySpec.java,
4998         java/sql/Array.java,
4999         java/sql/DatabaseMetaData.java,
5000         java/sql/ResultSet.java,
5001         java/text/ChoiceFormat.java,
5002         java/text/CollationElementIterator.java,
5003         java/text/CollationKey.java,
5004         java/text/Collator.java,
5005         java/text/DateFormat.java,
5006         java/text/DateFormatSymbols.java,
5007         java/text/DecimalFormatSymbols.java,
5008         java/text/Format.java,
5009         java/text/ParsePosition.java,
5010         java/text/RuleBasedCollator.java,
5011         java/text/SimpleDateFormat.java,
5012         java/text/StringCharacterIterator.java,
5013         java/util/Collections.java,
5014         java/util/PropertyResourceBundle.java,
5015         java/util/ResourceBundle.java,
5016         java/util/StringTokenizer.java,
5017         java/util/jar/Attributes.java,
5018         java/util/logging/ConsoleHandler.java,
5019         java/util/logging/LogManager.java,
5020         java/util/logging/MemoryHandler.java,
5021         java/util/logging/SocketHandler.java,
5022         javax/naming/NamingException.java:
5023         Fixed javadoc, coding style and argument names all over.
5024
5025 2004-04-20  Jeroen Frijters  <jeroen@frijters.net>
5026
5027         * java/io/FileDescriptor.java: (FileDescriptor) Added public
5028         constructor. (valid) Added null check.
5029
5030 2004-04-20  Guilhem Lavaux <guilhem@kaffe.org>
5031
5032         Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5033         * java/io/FileOutputStream.java
5034         (FileOutputStream) Reorganized constructors. Constructors now
5035         check whether the given path is directory.
5036
5037 2004-04-20  Michael Koch  <konqueror@gmx.de>
5038
5039         * java/net/Authenticator.java,
5040         java/net/BindException.java,
5041         java/net/ConnectException.java,
5042         java/net/ContentHandler.java,
5043         java/net/ContentHandlerFactory.java,
5044         java/net/DatagramPacket.java,
5045         java/net/DatagramSocket.java,
5046         java/net/DatagramSocketImpl.java,
5047         java/net/DatagramSocketImplFactory.java,
5048         java/net/FileNameMap.java,
5049         java/net/HttpURLConnection.java,
5050         java/net/Inet4Address.java,
5051         java/net/Inet6Address.java,
5052         java/net/InetAddress.java,
5053         java/net/InetSocketAddress.java,
5054         java/net/JarURLConnection.java,
5055         java/net/MalformedURLException.java,
5056         java/net/MulticastSocket.java,
5057         java/net/NetPermission.java,
5058         java/net/NetworkInterface.java,
5059         java/net/NoRouteToHostException.java,
5060         java/net/PasswordAuthentication.java,
5061         java/net/PortUnreachableException.java,
5062         java/net/ProtocolException.java,
5063         java/net/ServerSocket.java,
5064         java/net/Socket.java,
5065         java/net/SocketAddress.java,
5066         java/net/SocketException.java,
5067         java/net/SocketImpl.java,
5068         java/net/SocketImplFactory.java,
5069         java/net/SocketOptions.java,
5070         java/net/SocketPermission.java,
5071         java/net/SocketTimeoutException.java,
5072         java/net/URI.java,
5073         java/net/URISyntaxException.java,
5074         java/net/URL.java,
5075         java/net/URLClassLoader.java,
5076         java/net/URLConnection.java,
5077         java/net/URLDecoder.java,
5078         java/net/URLEncoder.java,
5079         java/net/URLStreamHandler.java,
5080         java/net/URLStreamHandlerFactory.java,
5081         java/net/UnknownHostException.java,
5082         java/net/UnknownServiceException.java:
5083         Fixed javadocs, coding style and argument names all over.
5084
5085 2004-04-20  Michael Koch  <konqueror@gmx.de>
5086
5087         * java/lang/Byte.java,
5088         java/lang/CharSequence.java,
5089         java/lang/ClassLoader.java,
5090         java/lang/Compiler.java,
5091         java/lang/Double.java,
5092         java/lang/Float.java,
5093         java/lang/Integer.java,
5094         java/lang/Long.java,
5095         java/lang/Math.java,
5096         java/lang/Number.java,
5097         java/lang/Package.java,
5098         java/lang/Runtime.java,
5099         java/lang/RuntimePermission.java,
5100         java/lang/SecurityManager.java,
5101         java/lang/Short.java,
5102         java/lang/StringBuffer.java,
5103         java/lang/System.java,
5104         java/lang/ThreadGroup.java,
5105         java/lang/Throwable.java,
5106         java/lang/reflect/InvocationHandler.java,
5107         java/lang/reflect/Proxy.java:
5108         Fixed javadocs, coding style and argument names all over.
5109
5110 2004-04-20  Michael Koch  <konqueror@gmx.de>
5111
5112         * java/io/BufferedWriter.java,
5113         java/io/ByteArrayInputStream.java,
5114         java/io/CharArrayWriter.java,
5115         java/io/DataInput.java,
5116         java/io/DataInputStream.java,
5117         java/io/File.java,
5118         java/io/FilterInputStream.java,
5119         java/io/InputStream.java,
5120         java/io/InputStreamReader.java,
5121         java/io/ObjectInputStream.java,
5122         java/io/ObjectStreamClass.java,
5123         java/io/PipedInputStream.java,
5124         java/io/PipedReader.java,
5125         java/io/PushbackInputStream.java,
5126         java/io/PushbackReader.java,
5127         java/io/RandomAccessFile.java,
5128         java/io/SerializablePermission.java,
5129         java/io/StreamTokenizer.java,
5130         java/io/StringWriter.java,
5131         java/io/WriteAbortedException.java,
5132         java/io/Writer.java:
5133         Fixed javadocs all over, rename arguments to match javadocs,
5134         fixed coding style.
5135
5136 2004-04-20  Ingo Proetel  <proetel@aicas.com>
5137
5138         * java/awt/FontMetrics.java:
5139         (charsWidth): fixed accumulation of total_width
5140         (getWidth): simple default implementation
5141         * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5142         in Rectangle constructor.
5143         * java/awt/image/Raster.java (toString): Added method. 
5144         * java/awt/image/SampleModel.java (<init>): Added error cause
5145         information to thrown exception.
5146         * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5147         New method.
5148         (setDataElements): New method.
5149         (setPixels): New method.
5150         (toString): New method.
5151
5152 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
5153
5154         * java/awt/image/ComponentColorModel.java
5155         (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5156         for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5157         Mauve tests on this method. Improved documentation.
5158
5159 2004-04-20  Michael Koch  <konqueror@gmx.de>
5160
5161         * javax/swing/JLayeredPane.java,
5162         javax/swing/plaf/BorderUIResource.java,
5163         javax/swing/plaf/ComponentUI.java,
5164         javax/swing/undo/CompoundEdit.java,
5165         javax/swing/undo/StateEdit.java:
5166         Fixed HTML tags in javadocs all over.
5167
5168 2004-04-20  Michael Koch  <konqueror@gmx.de>
5169
5170         * javax/print/attribute/EnumSyntax.java
5171         (getOffset): Made protected.
5172         * javax/print/attribute/HashAttributeSet.java
5173         (HashAttributeSet): Likewise.
5174         * javax/print/attribute/ResolutionSyntax.java
5175         (getFeedResolution): Fixed typo in exception name.
5176         (getCrossFeedResolution): Likewise.
5177         * javax/print/attribute/SetOfIntegerSyntax.java
5178         (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5179         * javax/print/attribute/TextSyntax.java
5180         (TextSyntax): Handle locale correctly.
5181         (hashCode): Calc better hashcode value.
5182         (equals): Fixed @return tag.
5183         (toString): New method.
5184
5185 2004-04-20  Michael Koch  <konqueror@gmx.de>
5186
5187         * gnu/java/nio/FileLockImpl.java
5188         (static): Removed, not needed anymore.
5189         * gnu/java/nio/channels/FileChannelImpl.java
5190         (FileChannelImpl): Made final.
5191         (mode): Made private.
5192         (READ, WRITE, APPEND): Made public.
5193         (EXCL, SYNC, DSYNC): Likewise.
5194         (static): Load native JNI library, when needed.
5195         (length): Unused, removed.
5196         (available): Made public.
5197         (implPosition): Throws IOException.
5198         (seek): Likewise.
5199         (implTruncate): Likewise.
5200         (unlock): Likewise.
5201         (lock): Likewise.
5202
5203 2004-04-20  Michael Koch  <konqueror@gmx.de>
5204
5205         * java/awt/AWTPermission.java,
5206         java/awt/Component.java,
5207         java/awt/ComponentOrientation.java,,
5208         java/awt/Dialog.java,
5209         java/awt/FontMetrics.java,
5210         java/awt/Graphics.java,
5211         java/awt/datatransfer/DataFlavor.java,
5212         java/beans/Introspector.java,
5213         java/beans/PropertyEditor.java,
5214         java/beans/PropertyEditorManager.java,
5215         java/beans/beancontext/BeanContextServiceProvider.java:
5216         Fixed HTML tags in javadocs all over.
5217
5218 2004-04-20  Mark Wielaard  <mark@klomp.org>
5219
5220         * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5221         MissingResourceException is thrown.
5222         * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5223         null when a MissingResourceException is thrown. Should never happen.
5224
5225 2004-04-20  Sascha Brawer  <brawer@dandelis.ch>
5226
5227         * java/awt/image/DataBufferShort.java,
5228         java/awt/image/DataBufferFloat.java,
5229         java/awt/image/DataBufferDouble.java,
5230         java/awt/image/PixelInterleavedSampleModel.java: New files.
5231         * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5232         getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5233
5234 2004-04-20  Michael Koch  <konqueror@gmx.de>
5235
5236         * Makefile.am (java_source_files): Added
5237         java/awt/image/DataBufferDouble.java,
5238         java/awt/image/DataBufferFloat.java,
5239         java/awt/image/DataBufferShort.java and
5240         java/awt/image/PixelInterleavedSampleModel.java.
5241         * Makefile.in: Regenerated.
5242
5243 2004-04-19  Bryce McKinlay  <mckinlay@redhat.com>
5244  
5245         * gcj/cni.h (JvAllocObject): Remove these obsolete, 
5246         undocumented CNI calls.
5247         * include/java-interp.h (_Jv_InterpClass): No longer
5248         extends java.lang.Class.
5249         * java/lang/Class.h (Class): Add new field `aux_info'.
5250         * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5251         * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5252         Use Class->aux_info instead.
5253         * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5254         * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5255         Use Class->aux_info instead.
5256         * java/io/natObjectInputStream.cc (allocateObject): Use
5257         _Jv_AllocObject.
5258         * java/lang/natClass.cc (newInstance): Likewise.
5259         * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5260         * java/lang/natObject.cc (clone): Likewise.
5261         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5262         * java/lang/natVMClassLoader.cc (defineClass): Don't use
5263         JvAllocObject. Allocate klass->aux_info here for interpreted
5264         class.
5265         
5266 2004-04-17  Mark Wielaard  <mark@klomp.org>
5267
5268         * javax/swing/JToggleButton.java (ToggleButtonModel):
5269         Make public static inner class.
5270         * javax/swing/JTabbedPane.java (setComponentAt):
5271         Call Page.setComponent().
5272         (SCROLL_TAB_LAYOUT): Make public, value is 1.
5273         (WRAP_TAB_LAYOUT): Make public, value is 0.
5274         * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5275         Make private static inner class.
5276
5277 2004-04-16  Bryce McKinlay  <mckinlay@redhat.com>
5278
5279         * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5280         arguments to match new signature. Remove FIXME comments.
5281
5282 2004-04-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
5283
5284         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5285         Remove method.
5286         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5287         unused code.
5288
5289 2004-04-02  Olga Rodimina  <rodimina@redhat.com>
5290
5291         * Makefile.am: Added new file.
5292         * Makefile.in: Regenerate.
5293         * javax/swing/ImageIcon.java: 
5294         (ImageIcon(file)): set description of the icon 
5295         to the file name
5296         * javax/swing/JCheckBoxMenuItem.java:
5297         Mostly Implemented. Work in progress.
5298         * javax/swing/JRadioButtonMenuItem.java:
5299         Reimplement constructors to use JToggleButtonModel.
5300         * javax/swing/plaf/basic/BasicIconFactory.java:
5301         (getCheckBoxMenuItemIcon): return check box
5302         icon.
5303         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5304         paint menu item selected only when it is armed and 
5305         pressed. 
5306  
5307 2004-04-02  David Jee  <djee@redhat.com>
5308
5309         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5310         (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5311         * java/awt/Component.java
5312         (add): Set the parent of the popup as this component.
5313         * java/awt/PopupMenu.java
5314         (addNotify): Create popup menu when peer is null.
5315         (show): Call addNotify() if peer is null.
5316         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5317         (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5318         argument for gtk_menu_popup() as zero. This causes the popup menu to
5319         respond to any mouse button.
5320
5321 2004-03-31  Olga Rodimina  <rodimina@redhat.com>
5322
5323         * Makefile.am: Added new file.
5324         * Makefile.in: Regenerate.
5325         * javax/swing/JRadioButtonMenuItem.java:
5326         Implemented.
5327         * javax/swing/plaf/basic/BasicIconFactory.java:
5328         (getRadioButtonMenuItemIcon): Return
5329         radio button icon.
5330         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5331         (getPreferredSize): Add size of checkIcon if it
5332         exists.
5333         (installDefaults): Don't initialize checkIcon.
5334         It's value will be set in subclasses. 
5335         (uninstallDefaults): remove uninstallation of 
5336         checkIcon.
5337         (paint): Moved code to paintMenuItem().
5338         (paintMenuItem): Implemented.
5339         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5340         UI delegate for JRadioButtonMenuItem.
5341         
5342 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
5343
5344         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5345         Corrected position of the accelerator.
5346
5347 2004-03-29  Olga Rodimina  <rodimina@redhat.com>
5348
5349         * Makefile.am: Added new file. 
5350         * Makefile.in: Regenerate.
5351         * javax/swing/JMenuItem.java: Partly 
5352         implemented. Work in progress
5353         * javax/swing/plaf/basic/BasicLookAndFeel.java:
5354         Changed default value of acceleratorDelimiter.
5355         * javax/swing/plaf/basic/BasicMenuItemUI.java:
5356         New class. Partly implemented.
5357                 
5358 2004-03-26  Mark Wielaard  <mark@klomp.org>
5359
5360         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5361         (item_activate): Declare label before use.
5362         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5363         (gtkSetFont): Removed unused variable label.
5364         (addExposeFilter): Declare variables before use.
5365         (removeExposeFilter): Likewise.
5366         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5367         (ok_clicked): Declare str_fileName before use.
5368
5369 2004-03-26  David Jee  <djee@redhat.com>
5370
5371         * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5372         (addSeparator): Remove.
5373         * java/awt/Menu.java
5374         (separator): Remove static final MenuItem field.
5375         (separatorLabel): New static final String field.
5376         (addSeparator): Do not use peer method; use add(MenuItem) instead.
5377         Use separatorLabel to denote that it is a separator.
5378         (insertSeparator): Create a new MenuItem with separatorLabel, instead
5379         of reusing the static separator instance, because a MenuItem instance
5380         can't be added more than once without being cloned.
5381         * java/awt/peer/MenuPeer.java
5382         (addSeparator): Remove from interface.
5383
5384 2004-03-26  David Jee  <djee@redhat.com>
5385
5386         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5387         (connectSignals): New native method declaration.
5388         (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5389         * java/awt/MenuItem.java
5390         (getActionCommand): Return the label if the action command is not set.
5391         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5392         (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5393         gtk_menu_shell_append().
5394         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5395         (item_activate): Fix argument type.
5396         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5397         signal here.
5398         (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5399         method.
5400         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5401         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5402         given. Add the menu widget's top-level GtkWindow to the global window
5403         group, so it can grab the pointer.
5404         (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5405         gtk_menu_shell_append().
5406
5407 2004-03-23  Graydon Hoare  <graydon@redhat.com>
5408
5409         * java/text/AttributedString.java 
5410         (addAttribute): Fix off-by-one.
5411         (getIterator): Likewise.        
5412         * java/text/AttributedStringIterator.java 
5413         (getRunLimit): Correct logic.
5414         (getRunStart): Likewise.
5415         (getAttribute): Fix inequality.
5416         (getAttributes): Likewise.
5417         * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5418
5419 2004-03-23  Kim Ho  <kho@redhat.com>
5420
5421         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5422         (calculateSizes): Return real width and height.
5423
5424 2004-03-23  Kim Ho  <kho@redhat.com>
5425
5426         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5427         (calculateTabRects): Set the selectedRun before
5428         trying to rotate tabs.
5429
5430 2004-03-23  Kim Ho  <kho@redhat.com>
5431
5432         * Makefile.am: New file
5433         * Makefile.in: Regenerate
5434         * java/awt/Graphics.java: (drawRect):
5435         Draw to the correct point.
5436         * javax/swing/DefaultSingleSelectionModel.java
5437         (isSelected): Return true if the selected index
5438         is not -1.
5439         * javax/swing/JLabel.java: Do not change mnemonic
5440         index if text is null.
5441         * javax/swing/JProgressBar.java: Use JComponent's
5442         EventListenerList.
5443         * javax/swing/JScrollBar.java: Ditto.
5444         * javax/swing/JSlider.java: Ditto.
5445         * javax/swing/JTabbedPane.java: Reimplement.
5446         * javax/swing/plaf/basic/BasicLookAndFeel.java:
5447         Add defaults for TabbedPane.
5448         * javax/swing/plaf/basic/BasicArrowButton.java:
5449         Implement
5450         * javax/swing/plaf/basic/BasicProgressBarUI.java:
5451         (paintDeterminate): Don't paint String if it's
5452         empty.
5453         (paintIndeterminate): ditto.
5454         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5455         Reimplement.
5456
5457 2004-03-19  Michael Koch  <konqueror@gmx.de>
5458
5459         * java/awt/image/AffineTransformOp.java
5460         (AffineTransformOp): Made public.
5461         * javax/swing/JComponent.java
5462         (listenerList): Made protected.
5463         (accessibleContext): Likewise.
5464         * javax/swing/JList.java
5465         (valueChanged): Dont use internal fields of ListSelectionEvent.
5466         * javax/swing/JViewport.java
5467         (getView): Dont use internal fields of Component.
5468         (addImpl): Likewise.
5469         * javax/swing/Timer.java
5470         (isRunning): Made public.
5471         (start): Likewise.
5472         (stop): Likewise.
5473         * javax/swing/UIDefaults.java
5474         (getInt): Made public.
5475         * javax/swing/plaf/basic/BasicListUI.java
5476         (mousePressed): Dont use internal fields of MouseEvent.
5477         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5478         * javax/swing/plaf/basic/BasicScrollBarUI.java
5479         (arrowIcon): Made static.
5480         * javax/swing/plaf/basic/BasicViewportUI.java
5481         (stateChanged): Dont use internal field on ChangeEvent.
5482         * javax/swing/text/JTextComponent.java
5483         (getUI): Call UIManager.getUI().
5484         (updateUI): Use getUI().
5485
5486 2004-03-19  Graydon Hoare  <graydon@redhat.com>
5487
5488         * javax/swing/JComponent.java: Turn off double buffer by default.
5489         * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5490         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5491         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable): 
5492         Use cairo to copy areas.
5493         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5494         Initialize and set clip region.
5495
5496 2004-03-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
5497
5498         * java/applet/Applet.java (preferredSize): Override deprecated
5499         variant of getPreferredSize.
5500         (minimumSize): Override deprecated variant of getMinimumSize.
5501
5502 2004-03-15  Olga Rodimina  <rodimina@redhat.com>
5503
5504         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5505         (drawImage(img,xform,bgcolor,obs)): New Method.
5506         Helper function that every drawImage method will
5507         use.
5508         (drawRaster): Added new parameter, bgcolor. All
5509         transparent pixels are changed to bgcolor before 
5510         image is drawn.
5511         (drawRenderedImage): Fixed to use changed drawRaster().
5512         (drawImage(image,xform,obs): Fixed to use new helper function 
5513         (drawImage(image,op,x,y)): Ditto.
5514         (drawImage (img,x,y,observer)): Ditto.
5515         ((PainterThread) bgcolor): New Field.
5516         ((PainterThread) (setPixels)): Changed all transparent pixels 
5517         to bgcolor.     
5518         (drawImage(img,x,y,width,height,bgcolor,observer)): 
5519         Fixed FIXME - all the transparent pixels are 
5520         changed to the specified bgcolor. 
5521         (drawImage(img, x, y, width, height, observer): Changed to 
5522         use function above.
5523         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)): 
5524         Fixed FIXME- changed all transparent pixels to bgcolor.
5525         (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5526         Changed to use function above. 
5527
5528 2004-03-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
5529
5530         * java/applet/Applet.java (dimensions): New field.
5531         (getDimensions): New method.
5532         (getPreferredSize): Call getDimensions.
5533         (getMinimumSize): Likewise.
5534
5535 2004-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
5536
5537         * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5538         * jni/classpath/jnilink.c: Likewise.
5539
5540         * java/applet/Applet.java (getPreferredSize): New method.
5541         (getMinimumSize): New method.
5542
5543 2004-04-15  Bryce McKinlay  <mckinlay@redhat.com>
5544
5545         * prims.cc (_Jv_AllocObject): Remove `size' argument.
5546         (_Jv_AllocObjectNoFinalizer): Likewise.
5547         (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5548         (_Jv_AllocPtrFreeObject): Likewise.
5549         (_Jv_AllocString): Moved from natString.cc. Call collector interface
5550         directly even in the JVMPI case.        
5551         * gcj/cni.h (JvAllocObject): Remove `size' argument from 
5552         _Jv_AllocObject calls.
5553         * gcj/javaprims.h: Update prototypes.
5554         * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5555         * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5556         * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5557
5558 2004-04-14  Andrew Haley  <aph@redhat.com>
5559             Bryce McKinlay  <mckinlay@redhat.com>
5560
5561         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5562         _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5563         * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5564
5565         * testsuite/libjava.lang/InvokeInterface.java: New file.
5566         * testsuite/libjava.lang/InvokeInterface.out: New file.
5567
5568 2004-04-09  Ranjit Mathew  <rmathew@hotmail.com>
5569         
5570         * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5571         modified lookup().
5572         * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5573         StackTraceElement directly.
5574         (newElement): New native helper method to create StackTraceElement
5575         bypassing Java access control.
5576         (createStackTraceElement): Use newElement() instead of directly
5577         calling StackTraceElement's constructor.
5578         * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5579
5580 2004-04-01  Michael Koch  <konqueror@gmx.de>
5581
5582         * java/lang/SecurityManager.java
5583         (checkAwtEventQueueAccess): Implemented.
5584
5585 2004-04-01  Gary Benson  <gbenson@redhat.com>
5586
5587         * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5588         (_Jv_SearchMethodInClass): Likewise.
5589
5590 2004-03-26  Peter Moon  <peterm@miraculum.com>
5591
5592         * java/text/NumberFormat.java: Fix spelling of setCurrency
5593         method.
5594
5595 2004-03-21  Anthony Green  <green@redhat.com>
5596
5597         * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5598         recursion when searching for the system ClassLoader.
5599
5600 2004-03-21  Ito Kazumitsu <kaz@maczuka.gcd.org>
5601
5602         * java/net/ServerSocket.java
5603         (accept): Close the socket when error occured.
5604
5605 2004-03-21  Jeroen Frijters  <jeroen@frijters.net>
5606
5607         * java/net/URI.java (parseURI): Added unquoting.
5608         (unquote): New method.
5609         (quoteAuthority): Implemented.
5610         (quote(String,String)): New method.
5611         (quotePath): Implemented.
5612         (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5613         (getSchemeSpecificPart): Removed FIXME comment.
5614         (getRawAuthority): Return new rawAuthority field.
5615         (getAuthority): Removed FIXME comment.
5616         (getRawUserInfo): Return new rawUserInfo field.
5617         (getUserInfo): Removed FIXME comment.
5618         (getRawPath): Return new rawPath field.
5619         (getPath): Removed FIXME comment.
5620         (getRawQuery): Return new rawQuery field.
5621         (getQuery): Removed FIXME comment.
5622         (getRawFragment): Return new rawFragment field.
5623         (getFragment): Removed FIXME comment.
5624
5625 2004-03-20  Michael Koch  <konqueror@gmx.de>
5626
5627         * java/net/URLConnection.java: Merged copyright year with classpath.
5628
5629 2004-03-20  Norbert Frese  <postfach@nfrese.net>
5630
5631         * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5632         * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5633         Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5634         rmi-message.
5635         (getObjectInputStream): Return object reference, throw IOException if null.
5636         (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5637         (getObjectOutputStream): Return object reference, throw IOException if null.
5638         (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5639         * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5640         (UnicastConnectionManager): Throw RemoteException if port is not available.
5641         (getInstance): Throw RemoteException.
5642         (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5643         * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5644         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5645         Collect Exceptions which are returned by a rmi-call and fix void returns.
5646         * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5647         Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5648         * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5649         (dispatch): Answer ping messages which are sent by other java implementions.
5650         (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5651         for every rmi-message and fix void return problems.
5652         * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5653         (UnicastServerRef): Throw RemoteException.
5654         (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5655         In some situations it is necessary to export a subclass of the class which has the _Stub.
5656         For instance when the class with has the _Stub is abstract.
5657         (findStubSkelClass): New method which looks for the class which has the _Stub.
5658         (getClientHost): Implementated.
5659         * gcc/libjava/java/rmi/server/RemoteServer.java
5660         (getClientHost): Implementated.
5661         * gcc/libjava/Makefile.am (rmi_java_source_files):
5662         Added gnu/java/rmi/server/RMIIncomingThread.java.
5663         * Makefile.in: Regenerated.
5664
5665 2004-03-20  Michael Koch  <konqueror@gmx.de>
5666
5667         * java/net/InetAddress.java
5668         (getLocalHostname): Added javadoc.
5669
5670 2004-03-19  Per Bothner  <per@bothner.com>
5671
5672         * configure.in: FILE variable  overrides FLATFORM when linking
5673         natFileChannelXXX.cc.
5674
5675         * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write):  Restored.
5676         (write):  Call diag_write, as in old natFileDescriptorEcos.cc.
5677
5678 2004-03-19  Per Bothner  <per@bothner.com>
5679
5680         * gnu/gcj/convert/Input_UnicodeBig.java:  New class..
5681         * gnu/gcj/convert/Input_UnicodeLittle.java:  New class.
5682         * Makefile.am:  Update accordingly.
5683         * gnu/gcj/convert/IOConverter.java:  Define "utf-16le" and "utf16be"
5684         as aliases for UnicodeLittle and UnicodeBig.
5685
5686 2004-03-20  Mark Wielaard  <mark@klomp.org>
5687
5688         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5689         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5690         Don't access ws when it is null.
5691         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5692         Likewise.
5693
5694 2004-03-19  Jeroen Frijters  <jeroen@frijters.net>
5695
5696         * java/lang/ThreadGroup.java (list): Changed print to println.
5697
5698 2004-03-19  Mark Wielaard  <mark@klomp.org>
5699
5700         * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
5701         happy.
5702
5703 2004-02-10  Randolph Chung  <tausq@debian.org>
5704  
5705         * configure.in: Build java for hppa target.
5706         * configure: Regenerate.
5707         * libjava/configure.host (hppa-*): Add target.
5708         * libjava/sysdeps/pa/lock.h: New file.
5709
5710 2004-03-19  Mark Wielaard  <mark@klomp.org>
5711
5712         Reported by Stephen Crawley
5713         * java/io/FilePermission.java (implies): Use String.length() -1 to
5714         access last char of String.
5715
5716 2004-03-19  Michael Koch  <konqueror@gmx.de>
5717
5718         * java/awt/image/AffineTransformOp.java
5719         (AffineTransformOp): Made public.
5720         * javax/swing/JComponent.java
5721         (listenerList): Made protected.
5722         (accessibleContext): Likewise.
5723         * javax/swing/JList.java
5724         (valueChanged): Dont use internal fields of ListSelectionEvent.
5725         * javax/swing/JViewport.java
5726         (getView): Dont use internal fields of Component.
5727         (addImpl): Likewise.
5728         * javax/swing/Timer.java
5729         (isRunning): Made public.
5730         (start): Likewise.
5731         (stop): Likewise.
5732         * javax/swing/UIDefaults.java
5733         (getInt): Made public.
5734         * javax/swing/plaf/basic/BasicListUI.java
5735         (mousePressed): Dont use internal fields of MouseEvent.
5736         (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5737         * javax/swing/plaf/basic/BasicScrollBarUI.java
5738         (arrowIcon): Made static.
5739         * javax/swing/plaf/basic/BasicViewportUI.java
5740         (stateChanged): Dont use internal field on ChangeEvent.
5741         * javax/swing/text/JTextComponent.java
5742         (getUI): Call UIManager.getUI().
5743         (updateUI): Use getUI().
5744
5745 2004-03-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5746
5747         * verify.cc: Undef PC.
5748
5749 2004-03-18  Michael Koch  <konqueror@gmx.de>
5750
5751         * java/nio/channels/spi/AbstractSelectableChannel.java
5752         (keys): Initialize at declaration.
5753         (locate): keys cant be null.
5754         (add): Removed.
5755         (addSelectionKey): New method.
5756         (removeSelectionKey): New method.
5757         * java/nio/channels/spi/AbstractSelectionKey.java
5758         (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5759         * java/nio/channels/spi/AbstractSelector.java
5760         (provider): Javadoc added.
5761         (cancelledKeys): Javadoc added.
5762         (cancelKey): Javadoc added, add key to cancelledKeys.
5763         (deregister): Implemented.
5764
5765 2004-03-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5766
5767         * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5768         MAP_FAILED to void *.
5769
5770 2004-03-12  Graydon Hoare  <graydon@redhat.com>
5771
5772         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
5773         * javax/swing/JComponent.java (paint): Use persistent double buffer. 
5774         * javax/swing/JList.java (ListListener): Revalidate on changes.
5775         * javax/swing/JScrollPane.java: Reimplement.
5776         * javax/swing/JViewport.java: Reimplement.
5777         * javax/swing/ScrollPaneLayout.java: Reimplement.
5778         * javax/swing/ViewportLayout.java: Tidy up.
5779         * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
5780         * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
5781         * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
5782         * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
5783         backing store only.
5784
5785 2004-03-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
5786
5787         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5788         (window_wm_protocols_filter): New function.
5789         (window_focus_in_cb): Remove function.
5790         (window_focus_out_cb): Likewise.
5791         (window_focus_or_active_state_change_cb): New function.
5792         (create): Add filter that removes WM_TAKE_FOCUS client messages.
5793         (connectSignals): Don't attach handlers to focus-in-event or
5794         focus-out-event signals.  Handle notify signal.
5795
5796 2004-03-11  David Jee  <djee@redhat.com>
5797
5798         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5799         (gtkSetLabel): New native method declaration.
5800         (setLabel): Use gtkSetLabel.
5801         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5802         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
5803
5804 2004-03-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
5805
5806         * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
5807         black when color argument is null.
5808
5809 2004-03-10  Kim Ho  <kho@redhat.com>
5810
5811         * java/awt/Container.java: Remove check
5812         for drag events.
5813
5814 2004-03-10  Kim Ho  <kho@redhat.com>
5815
5816         * java/awt/Container.java: (visitChild):
5817         Remove candidate clip. Use the component
5818         clip to intersect.
5819         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5820         (handleEvent): Use the PaintEvent's clip.
5821
5822 2004-03-10  Kim Ho  <kho@redhat.com>
5823
5824         * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
5825         (handleEvent): Don't set the clip for the
5826         Graphics object.
5827
5828 2004-03-09  Graydon Hoare  <graydon@redhat.com>
5829
5830         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: 
5831         Fix double <-> fixed macros, reset font transform.
5832         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
5833         Likewise.
5834
5835 2004-03-09  Kim Ho  <kho@redhat.com>
5836
5837         * java/awt/Container.java: (visitChild): Move
5838         the x and y coordinate of the component rectangle
5839         to correct position.
5840         (handleEvent): Forward drag events to the pressed
5841         component.
5842         * javax/swing/plaf/basic/BasicScrollBarUI.java:
5843         Fix comments.
5844         (ArrowButtonListener::mousePressed): Stop the
5845         existing timer.
5846         (mouseDragged): Implement.
5847         (TrackListener::mousePressed): Only react if
5848         the press doesn't occur on the thumb, otherwise
5849         just set the offset.
5850         (TrackListener::mouseReleased): Unset the isAdjusting
5851         value.
5852         (createIncreaseIcon): Switch icon.
5853         (createDecreaseIcon): Switch icon.
5854         (calculatePreferredSize): Use width.
5855         (getThumbBounds): Use the top as the lower value.
5856         (layoutVScrollBar): Switch the button locations.
5857         (paintIncreaseHighlight): Paint correct side of thumb.
5858         (paintDecreaseHighlight): ditto.
5859         (valueForYPosition): Use top as the lower value.
5860         * javax/swing/plaf/basic/BasicSliderUI.java:
5861         Fix comments.
5862         (mouseDragged): Implement.
5863         (mousePressed): Only react when the thumb isn't
5864         pressed, otherwise just set offset.
5865         (mouseReleased): Handle a release of the thumb.
5866         (scrollDueToClickInTrack): Stop the timer first.
5867         * javax/swing/JProgressBar.java:
5868         (setString): Fix change condition.
5869         * javax/swing/JSeparator.java:
5870         Remove println's.
5871
5872 2004-03-08  David Jee  <djee@redhat.com>
5873
5874         * java/awt/image/AffineTransformOp.java:
5875         (filter): Use Graphics2D interface instead of directly using the
5876         GdkGraphics2D peer.
5877
5878 2004-03-05  David Jee  <djee@redhat.com>
5879
5880         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
5881         (handleEvent): Action events are generated upon MOUSE_RELEASED.
5882         * java/awt/Container.java
5883         (acquireComponentForMouseEvent): Fixed.
5884         (handleEvent): Fixed.
5885         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5886         (state_to_awt_mods_with_button_states): New method.
5887         (pre_event_handler): Fixed mouse event generation.
5888
5889 2004-03-05  Olga Rodimina  <rodimina@redhat.com>
5890
5891         gnu/java/awt/peer/gtk/GdkGraphics2D.java
5892         (GdkGraphics2D (BufferedImage)): Initialize
5893         pixmap associated with specified BufferedImage.
5894         (setPaint): Changed implementation of Texture
5895         Paint to use AffineTransformOp.
5896         * java/awt/image/AffineTransformOp.java
5897         (createCompatibleDestRaster): Throw RasterFormatException 
5898         if resulting width or height of raster is 0.
5899
5900 2004-03-04  Olga Rodimina  <rodimina@redhat.com>
5901
5902         * java/awt/image/AffineTransformOp.java:
5903         Removed unnecessary field interpolationType.
5904         Formatted some of the lines to be consistent with 
5905         the GNU style.
5906         (AffineTransformOp): Create new RenderingHints 
5907         containing specified interpolation type.
5908         (createCompatibleDestImage): Implemented.
5909         (createCompatibleDestRaster): Implemented.
5910         (filter): Implemented.
5911         (getBounds2D(BufferedImage)): Implemented.
5912         (getBounds2D(Raster)): Implemented.
5913         (getInterpolationType): Get interpolation value from 
5914         rendering hints.
5915
5916 2004-03-04  David Jee  <djee@redhat.com>
5917
5918         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5919         (setFont): Check if child peers are null.
5920
5921 2004-03-04  Graydon Hoare  <graydon@redhat.com>
5922
5923         * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
5924         .libs in -L option.
5925         (libjava_arguments): Add new libraries to argument list.
5926
5927 2004-03-02  Olga Rodimina  <rodimina@redhat.com>
5928
5929         * Makefile.am: Added java/awt/image/AffineTransformOp.java
5930         * Makefile.in: Re-generated.
5931         * java/awt/image/AffineTransformOp.java: New Class.
5932
5933 2004-03-01  Olga Rodimina  <rodimina@redhat.com>
5934
5935         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5936         (setPaint): Interpret correctly TexturePaint's
5937         anchor rectangle.
5938         (drawImage): Fixed scale factors of the affine
5939         transform.
5940
5941 2004-02-27  David Jee  <djee@redhat.com>
5942
5943         * gnu/java/awt/peer/gtk/GdkGraphics.java
5944         (GdkGraphics(Component)): Inherit font from component.
5945         (drawString): Use font style.
5946         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
5947         (gtkSetFont): New native method declaration.
5948         (setFont): New method.
5949         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5950         (gtkSetFont): New native method declaration.
5951         (setFont): Call new native method gtkSetFont.
5952         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5953         (setFont): For all child components who do not their fonts set,
5954         set their peers' fonts with this container's font.
5955         * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
5956         Move all native method declarations to the top for readability.
5957         (gtkSetFont): New native method declaration.
5958         (setFont): New method.
5959         * java/awt/Component.java
5960         (setFont): Invalidate after setting the font.
5961         * java/awt/Container.java
5962         (invalidateTree): New method.
5963         (setFont): Invalidate the container tree after setting the font.
5964         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
5965         (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
5966         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
5967         (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
5968         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5969         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
5970         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5971         (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
5972
5973 2004-02-27  Olga Rodimina <rodimina@redhat.com>
5974
5975         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5976         (updateBufferedImage): New helper function.
5977         Updates BufferedImage in memory if it was changed.
5978         (draw): changed to update BufferedImage in memory after
5979         this drawing operation
5980         (fill): Ditto.
5981         (draw3DRect): Ditto.
5982         (fill3DRect): Ditto.
5983         (clearRect): Ditto.
5984         (drawRaster): Ditto.
5985         (drawImage) : Ditto. Update only in case of GtkOffScreenImage with 
5986         no affine transformation.
5987         (drawGlyphVector): Ditto.
5988
5989 2004-02-26  Olga Rodimina <rodimina@redhat.com>
5990
5991         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5992         (isBufferedImageGraphics): New Helper function. 
5993         Returns true if this graphics2d can be used to draw 
5994         into buffered image and false otherwise.
5995         (updateImagePixels): New Helper function. 
5996         Updates pixels in the BufferedImage.
5997         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5998         (getImagePixels): New function. Returns pixels
5999         of the buffered image associated with 
6000         this Graphics2D.
6001
6002 2004-02-26  David Jee  <djee@redhat.com>
6003
6004         * java/awt/BorderLayout.java
6005         (layoutContainer): Fix width and height calculations to ensure
6006         that they're non-negative.
6007         * java/awt/Component.java
6008         (setBackground): If c is null, inherit from closest ancestor whose
6009         background color is set.
6010
6011 2004-02-26  Kim Ho  <kho@redhat.com>
6012
6013         * Makefile.am: Add new files.
6014         * Makefile.in: Re-generate.
6015         * javax/swing/JProgressBar.java: 
6016         (JProgressBar(int, int int)): Throw
6017         IllegalArgumentException if orientation is
6018         invalid.
6019         (JProgressBar(BoundedRangeModel)): Create
6020         ChangeListener and register it. UpdateUI.
6021         (getChangeListeners): Implement.
6022         (setModel): Reset ChangeListener.
6023         * javax/swing/JScrollBar.java: Implement.
6024         * javax/swing/JSeparator.java: Implement.
6025         * javax/swing/JSlider.java:
6026         (JSlider(int, int, int, int)): Throw 
6027         IllegalArgumentException if orientation
6028         is invalid.
6029         (getChangeListeners): Fix method name.
6030         * javax/swing/SwingUtilities.java:
6031         (layoutCompoundLabel): If there is no text,
6032         set the text rectangle dimensions to 0.
6033         * javax/swing/plaf/basic/BasicButtonUI.java:
6034         (paint): If there is no text, don't paint it.
6035         * javax/swing/plaf/basic/BasicScrollBarUI.java:
6036         Implement.
6037         * javax/swing/plaf/basic/BasicSeparatorUI.java:
6038         Implement.
6039         * javax/swing/plaf/basic/BasicSliderUI.java: 
6040         (propertyChange): If the model changes, change
6041         the listeners accordingly.
6042
6043 2004-02-25  Graydon Hoare  <graydon@redhat.com>
6044
6045         * javax/swing/AbstractButton.java: Add "final" qualifiers.
6046         * javax/swing/JList.java: Reimplement.
6047         * javax/swing/DefaultListSelectionModel.java: Reimplement.
6048         * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
6049         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
6050         * javax/swing/ListModel.java: Javadoc.
6051         * javax/swing/ListSelectionModel.java: Add missing methods.
6052         * javax/swing/AbstractListModel.java: Javadoc and corrections.
6053         * javax/swing/DefaultListModel.java: Javadoc and corrections.
6054         * javax/swing/ListModel.java: Javadoc and corrections.
6055         * javax/swing/DefaultListCellRenderer.java: Minor tidying.
6056
6057 2004-02-25  David Jee  <djee@redhat.com>
6058
6059         * gnu/java/awt/peer/gtk/GtkFontPeer.java
6060         (GtkFontPeer): Change default size to 12.
6061         * gnu/java/awt/peer/gtk/GtkToolkit.java
6062         (getFontPeer): Change default size to 12.
6063         (getClasspathFontPeer): Likewise. Set default name to "Default".
6064         * java/awt/Font.java
6065         (Font(Map)): Call Font(String,Map).
6066         (Font(String,Map)): If attrs is null, initialize it as an empty
6067         HashMap, which will ensure that the Font will get default attributes.
6068
6069 2004-02-25  David Jee  <djee@redhat.com>
6070
6071         * gnu/java/awt/peer/gtk/GtkFontPeer.java
6072         (GtkFontPeer(String,int)): Call the new constructor with size 1.
6073         (GtkFontPeer(String,int,int)): New constructor with size attribute.
6074         * gnu/java/awt/peer/gtk/GtkToolkit.java
6075         (getFontPeer(String,int)): Call the new overload method with size 1.
6076         (getFontPeer(String,int,int)): New method. Overloaded with size
6077         attribute.
6078         (getClasspathFontPeer): Set the size of the font.
6079
6080 2004-02-24  Olga Rodimina  <rodimina@redhat.com>
6081
6082         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6083         (bimage): New field.
6084         (GdkGraphics2D): New Constructor. Constructs Graphics
6085         object that can be used to draw into the Buffered Image.
6086         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6087         (GdkGraphicsEnvironment): Fixed to include public 
6088         keyword.
6089         (createGraphics): Implemented.
6090         * gnu/java/awt/peer/gtk/GtkToolkit.java
6091         (getLocalGraphicsEnvironment): Implemented.
6092         * java/awt/GraphicsEnvironment.java:
6093         (getLocalGraphicsEnvironment): Implemented.
6094         * java/awt/image/BufferedImage.java:
6095         (createGraphics): Implemented.
6096                 
6097 2004-02-24  David Jee  <djee@redhat.com>
6098
6099         * java/awt/Component.java
6100         (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
6101         * java/awt/Container.java
6102         (addNotifyContainerChildren): Fix event enabling.
6103
6104 2004-02-23  Olga Rodimina  <rodimina@redhat.com>
6105
6106         * Makefile.am: Added 
6107         gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
6108         * Makefile.in: Re-generated.
6109         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
6110         New Class. 
6111         
6112 2004-02-19  Kim Ho  <kho@redhat.com>
6113
6114         * Makefile.am: Add BasicProgressBarUI
6115         * Makefile.in: Regenerate.
6116         * javax/swing/JProgressBar.java: 
6117         Re-implement.
6118         * javax/swing/plaf/basic/BasicLookAndFeel.java
6119         Add constants for JProgressBar.
6120         * javax/swing/plaf/basic/BasicProgressBarUI.java
6121         Implement.
6122         * javax/swing/plaf/basic/BasicSliderUI.java
6123         Change comments.
6124         (calculateGeometry): New method
6125         (paint): Remove unnecessary size calculations.
6126
6127 2004-02-18  Olga Rodimina  <rodimina@redhat.com>
6128
6129         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6130         (drawRaster): Fixed small error that caused
6131         imageToUser transformation to be set incorrectly.
6132         (toString): Implemented.
6133
6134 2004-02-18  David Jee  <djee@redhat.com>
6135
6136         * java/awt/CardLayout.java
6137         (addLayoutComponent): Show the first component added as the default.
6138         (removeLayoutComponent): After removing, show the next component.
6139         (gotoComponent): If there is only one component, show it and return.
6140
6141 2004-02-18  Kim Ho  <kho@redhat.com>
6142
6143         * javax/swing/JSlider.java: Re-order
6144         modifiers.
6145         * javax/swing/JLabel.java: Re-order
6146         modifiers.
6147         * javax/swing/JComponent.java: 
6148         (addPropertyChangeListener):
6149         Implement.
6150         (removePropertyChangeListener):
6151         ditto.
6152         (firePropertyChangeEvent):
6153         ditto.
6154
6155 2004-02-17  David Jee  <djee@redhat.com>
6156
6157         * java/awt/Component.java
6158         (show): Dispatch ComponentEvent via system event queue.
6159         (hide): Likewise.
6160         (move): Likewise.
6161         (resize): Likewise.
6162         (reshape): Likewise.
6163         * java/awt/Window.java
6164         (setBoundsCallback): Likewise.
6165
6166 2004-02-17  David Jee  <djee@redhat.com>
6167
6168         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6169         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
6170         Use gtk_widget_set_size_request() instead of the deprecated
6171         gtk_widget_set_usize().
6172
6173 2004-02-17  Kim Ho  <kho@redhat.com>
6174
6175         * javax/swing/JSlider.java: Fix comments and
6176         make property strings constants.
6177         (createStandardLabels): Use the labels
6178         preferred size as bounds.
6179         * javax/swing/plaf/basic/BasicSliderUI.java
6180         Fix comments.
6181         (ScrollHandler::actionPerformed): Don't
6182         calculate the timer stop value. Let the
6183         MouseListeners find the stop location.
6184         (getPreferredHorizontalSize): Re-implement.
6185         (getPreferredVerticalSize): ditto.
6186         (getMinimumHorizontalSize): ditto.
6187         (getMinimumVerticalSize): ditto.
6188         (getPreferredSize): ditto.
6189         (getMinimumSize): ditto.
6190         (getMaximumSize): ditto.
6191         (paintTicks): Use doubles to find the
6192         tick location.
6193         (paintHorizontalLabel):  Use preferredSize
6194         as initial width and height.
6195         (paintVerticalLabel): ditto.
6196
6197 2004-02-17  Kim Ho  <kho@redhat.com>
6198
6199         * javax/swing/JLabel.java: Changed 
6200         property strings to constants.
6201         (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
6202         New property.
6203         (setText): Change mnemonic index if
6204         text is too short.
6205         (setDisplayedMnemonicIndex): Fire property
6206         change event.
6207         (getDisplayedMnemonicIndex): Remove check
6208         against short text.
6209
6210 2004-02-17 Olga Rodimina <rodimina@redhat.com>
6211
6212         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6213         (drawImage(img,xform,obs)): Invert xform before
6214         passing the xform to cairo.
6215         (drawImage(img,x,y,bgcolor,obs)): Implemented.
6216         (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
6217         implemented.
6218         (drawImage (img,x,y,w,h,obs)): Implemented.
6219         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
6220         bgcolor,obs)): Partly implemented.
6221         (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
6222         Implemented.
6223         * java/awt/image/BufferedImage.java:
6224         (copyData): if dest is null, create raster with same
6225         dimensions as the current image.
6226
6227 2004-02-16  Graydon Hoare  <graydon@redhat.com>
6228
6229         * javax/swing/plaf/basic/BasicLabelUI.java 
6230         (getPreferredSize): Use layoutCL.
6231         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
6232         (getPreferredButtonSize): Start with empty view rect, layout using
6233         component's preferred alignment.
6234         * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
6235         List defaults.
6236
6237 2004-02-16  David Jee  <djee@redhat.com>
6238
6239         * java/awt/Component.java
6240         (show): Dispatch COMPONENT_SHOWN ComponentEvent.
6241         (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
6242         (move): Erase old bounds and repaint new bounds. Dispatch
6243         COMPONENT_MOVED ComponentEvent.
6244         (resize): Erase old bounds and repaint new bounds. Dispatch
6245         COMPONENT_RESIZED ComponentEvent.
6246         (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6247         ComponentEvents.
6248         * java/awt/Window.java
6249         (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
6250         ComponentEvents.
6251
6252 2004-02-16  Olga Rodimina  <rodimina@redhat.com>
6253
6254         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
6255         (setRenderingHint): Added implementation of 
6256         Interpolation rendering hints.
6257         (setRenderingHints): Ditto.
6258         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6259         (drawPixels): fixed to allow user to choose type 
6260         of filtering that should be used when displaying images.
6261         (cairoSurfaceSetFilter): New method. Sets filter type for 
6262         interpolation of pixel values.
6263
6264 2004-02-16  David Jee  <djee@redhat.com>
6265
6266         * java/awt/GridBagLayout.java
6267         (calcCellSizes): Rows or columns with zero sizes should still be
6268         considered for extra space distribution.
6269
6270 2004-02-16  Kim Ho  <kho@redhat.com>
6271
6272         * javax/swing/JLabel.java: Re-implement.
6273         * javax/swing/plaf/basic/BasicLabelUI.java
6274         Re-implement.
6275         * javax/swing/plaf/basic/BasicLookAndFeel.java:
6276         Added constant.
6277
6278 2004-02-16  Kim Ho  <kho@redhat.com>
6279
6280         * javax/swing/JSlider.java: Fix indentation and comments.
6281         (setModel): Remove null check to conform with Sun's.
6282         (setOrientation): Throw exception if not
6283         HORIZONTAL or VERTICAL.
6284         (getInverted): Use private variable instead of 
6285         ComponentOrientation.
6286         (setInverted): ditto.
6287         * javax/swing/plaf/basic/BasicSliderUI.java:
6288         Fix indentation and comments.
6289         (propertyChange): Remove check for inverted slider, handle
6290         in main paint.
6291         (getMinimumSize): Return preferred size.
6292         (getMaximumSize): ditto.
6293         (calculateFocusRect): Don't relocate rectangle.
6294         (drawInverted): Return XOR of the slider's inversion and 
6295         the component's orientation.
6296         (paint): Update leftToRightCache
6297
6298 2004-02-13  David Jee  <djee@redhat.com>
6299
6300         * java/awt/GridBagLayout.java
6301         (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
6302         code to helper methods.
6303         (sortBySpan): New helper method.
6304         (distributeSizeAndWeight): Likewise.
6305         (calcCellWeights): Likewise.
6306         (calcCellSizes): Add comments.
6307
6308 2004-02-13  David Jee  <djee@redhat.com>
6309
6310         * java/awt/Component.java
6311         (show): Only do something if component is invisible at the moment.
6312         (hide): Only do something if component is visible at the moment.
6313         (reshape): If lightweight, erase old bounds and repaint new bounds.
6314
6315 2004-02-13  Kim Ho  <kho@redhat.com>
6316
6317         * Makefile.am: Updated for new file.
6318         * Makefile.in: Regenerated.
6319         * javax/swing/JSlider.java: Reimplement.
6320         * javax/swing/SwingUtilities.java
6321         (layoutCompoundLabel): Use icon height
6322         instead of width.
6323         (paintComponent): Implement.
6324         * javax/swing/plaf/basic/BasicLookAndFeel.java:
6325         Add JSlider defaults.
6326         * javax/swing/plaf/basic/BasicSliderUI.java:
6327         Implement. New file.
6328
6329 2004-03-17  Michael Koch  <konqueror@gmx.de>
6330
6331         * gnu/java/net/PlainDatagramSocketImpl.java
6332         (RECEIVE_LOCK): New member field.
6333         (SEND_LOCK): New member field.
6334         (send0): New method.
6335         (send): Synchronize on SEND_LOCK.
6336         (receive0): New method.
6337         (receive): Synchronize on RECEIVE_LOCK.
6338         * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
6339         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
6340         gnu/java/net/natPlainDatagramSocketImplWin32.cc
6341         (send0): Renamed from send.
6342         (receive0): Renamed from receive.
6343 2004-03-17  Michael Koch  <konqueror@gmx.de>
6344
6345         * gnu/java/net/natPlainSocketImplPosix.cc
6346         (write): Just call write(jbyteArray, offset, len).
6347         (read): Just call read(jbyteArray, offset, len).
6348
6349 2004-03-16  Michael Koch  <konqueror@gmx.de>
6350
6351         * javax/swing/JTabbedPane.java
6352         (serialVersionUID): New field.
6353
6354 2004-03-16  Norbert Frese  <postfach@nfrese.net>
6355
6356         * java/net/InetAddress.java
6357         (getByName): Handle hostname == "" case.
6358
6359 2004-03-16  Dalibor Topic  <robilad@kaffe.org>
6360
6361         Reported by: Adam Heath <doogie@debian.org>
6362         * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
6363         class loader.
6364
6365 2004-03-15  Michael Koch  <konqueror@gmx.de>
6366
6367         * java/util/Locale.java: Reverting my last patch
6368         and add a comment why the original version was okay.
6369
6370 2004-03-14  Andreas Tobler <a.tobler@schweiz.ch>
6371
6372         * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
6373         munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
6374         (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
6375         (MappedByteBufferImpl::forceImpl): Use msync_adptor.
6376
6377 2004-03-12  Michael Koch  <konqueror@gmx.de>
6378
6379         * java/text/DateFormatSymbols.java: Fixed file name in copyright.
6380
6381 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
6382
6383         * java/net/URI.java (toURL): Implemented.
6384
6385 2004-03-12  Ito Kazumitsu  <ito.kazumitsu@hitachi-cable.co.jp>
6386
6387         * java/net/URI.java
6388         (URI_REGEXP) updated to contain scheme specific part.
6389         (SCHEME_SPEC_PART_GROUP) new constant.
6390         (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
6391         updated to make room for SCHEME_SPEC_PART_GROUP.
6392         (parseURI) parse scheme specific part.
6393         (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
6394         getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
6395         getQuery, getFragment) implemented.
6396
6397 2004-03-12  Dalibor Topic  <robilad@kaffe.org>
6398
6399         * libraries/javalib/java/net/URI.java
6400         partially implemented using java.util.regex.
6401         (URI_REGEXP) new constant. Used to parse URIs.
6402         (SCHEME_GROUP) new constant representing index of scheme group
6403         in parsed URI.
6404         (AUTHORITY_GROUP) new constant representing index of authority
6405         group in parsed URI.
6406         (PATH_GROUP) new constant representing index of path group in
6407         parsed URI.
6408         (QUERY_GROUP) new constant representing index of query group in
6409         parsed URI.
6410         (FRAGMENT_GROUP) new constant representing index of fragment
6411         group in parsed URI.
6412         (getURIGroup) new static utility method.
6413         (parseURI) implemented.
6414         (quote) stub for new static utility method.
6415         (quoteAuthority) stub for new static utility method.
6416         (quoteHost) stub for new static utility method.
6417         (quotePath) stub for new static utility method.
6418         (quoteUserInfo) stub for new static utility method.
6419         (URI) implemented.
6420         (create) don't throw URISyntaxException. Implemented.
6421         (toString) implemented.
6422
6423 2004-03-12  Michael Koch  <konqueror@gmx.de>
6424
6425         * java/net/HttpURLConnection.java
6426         (getResponseCode): Fix another typo in javadoc.
6427
6428 2004-03-11  Michael Koch  <konqueror@gmx.de>
6429
6430         * java/util/logging/Level.java
6431         (parse): Use String.equals() instead of ==.
6432
6433 2004-03-11  Michael Koch  <konqueror@gmx.de>
6434
6435         * gnu/java/net/protocol/jar/Connection.java
6436         (getContentLength): New method.
6437
6438 2004-03-11  Michael Koch  <konqueror@gmx.de>
6439
6440         * gnu/java/net/PlainSocketImpl.java:
6441         Reformated to merge better with classpath's version.
6442
6443 2004-03-11  Michael Koch  <konqueror@gmx.de>
6444
6445         * java/util/Locale.java
6446         (getISO3Language): Use String.equals() instead of ==.
6447         (getISO3Country): Likewise.
6448
6449 2004-03-11  Dalibor Topic  <robilad@kaffe.org>
6450
6451         * java/text/AttributedString.java
6452         (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
6453         Use HashMap instead of Hashtable since value can be null, and
6454         you can not store a null value in a Hashtable.
6455
6456 2004-03-11  Guilhem Lavaux <guilhem@kaffe.org>
6457
6458         * java/text/AttributedStringIterator.java
6459         (getAllAttributesKey): Return only keys concerned
6460         by the current iterator.
6461         (getAttributes): Use strict inequality for
6462         end_index. 
6463
6464 2004-03-11  Michael Koch  <konqueror@gmx.de>
6465
6466         * java/net/HttpURLConnection.java:
6467         Fixed typo in javadoc.
6468
6469 2004-03-11  Guilhem Lavaux  <guilhem@kaffe.org>
6470
6471         * java/io/BufferedInputStream.java (marktarget): New field for max
6472         mark limit.
6473         (CHUNKSIZE): New constant for incremental mark buffer allocation.
6474         (mark): Use new fields.
6475         (read): Likewise.
6476         (read(byte[],int,int)): Likewise.
6477         (skip): Likewise.
6478         (refill): Likewise.
6479
6480 2004-03-11  Mark Wielaard  <mark@klomp.org>
6481
6482         * java/beans/BeanDescriptor.java (BeanDescriptor):
6483         Set the FeatureDescriptor programmatic name.
6484
6485 2004-03-11  Michael Koch  <konqueror@gmx.de>
6486
6487         * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
6488         This file was was just copied form java/io/natFileDescriptorEcos.cc
6489         and never changed to compile correctly.
6490
6491 2004-03-11  Michael Koch  <konqueror@gmx.de>
6492
6493         * gnu/java/nio/PipeImpl.java
6494         (SourceChannelImpl): Made final.
6495         (read): Implemented.
6496         (SinkChannelImpl): Made final.
6497         (write): Implemented.
6498
6499 2004-03-11  Michael Koch  <konqueror@gmx.de>
6500
6501         * gnu/java/net/PlainDatagramSocketImpl.java:
6502         Reformated to match classpath's version more.
6503
6504 2004-03-11  Michael Koch  <konqueror@gmx.de>
6505
6506         * gnu/java/awt/peer/ClasspathFontPeer.java:
6507         Fixed javadoc to be correct xhtml.
6508         * gnu/java/awt/peer/gtk/GtkArgList.java
6509         (add): Use Boolean.valueOf() instead of new Boolean().
6510
6511 2004-03-09  Michael Koch  <konqueror@gmx.de>
6512
6513         * java/lang/Thread.java
6514         (runnable): Moved around.
6515         (daemon): Renamed from daemon_flag.
6516         (contextClassLoader): Renamed from context_class_loader.
6517         (Thread): Reordered constructors.
6518         (activeCount): Use group directly.
6519         (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
6520         (holdsLock): Reworked javadoc.
6521         (setDaemon): Reworked.
6522         * java/lang/natThread.cc
6523         (destroy): Removed.
6524
6525 2004-03-08  Anthony Green  <green@redhat.com>
6526
6527         * Makefile.am: Build property resource files into libgcj.
6528         * Makefile.in: Rebuilt.
6529         * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
6530         java/util/regex/PatternSyntaxException.java,
6531         gnu/regexp/CharIndexed.java,
6532         gnu/regexp/CharIndexedCharArray.java,
6533         gnu/regexp/CharIndexedInputStream.java,
6534         gnu/regexp/CharIndexedReader.java,
6535         gnu/regexp/CharIndexedString.java,
6536         gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
6537         gnu/regexp/REException.java,
6538         gnu/regexp/REFilterInputStream.java,
6539         gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
6540         gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
6541         gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
6542         gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
6543         gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
6544         gnu/regexp/RETokenLookAhead.java,
6545         gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
6546         gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
6547         gnu/regexp/RETokenStart.java,
6548         gnu/regexp/RETokenWordBoundary.java,
6549         gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
6550
6551 2004-03-03  Per Bothner  <per@bothner.com>
6552
6553         * java/nio/channels/Channels.java (newInputStream, newOutputStream):
6554         Optimize when argument is a FileChannelImpl.
6555         (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
6556         New native methods.
6557         * java/nio/channels/natChannels.cc:  New file for new native methods.
6558         * Makefile.am:  Update accordingly.
6559
6560 2004-03-02  Jan Hubicka  <jh@suse.cz>
6561
6562         * configure.host: Pass -fno-omit-frame-pointer for i386.
6563         * configure.in: Likewise.
6564         * configure: Regenerate.
6565
6566 2004-03-01  Per Bothner  <per@bothner.com>
6567
6568         * java/lang/natPosixProcess.cc (startProcess):  Fix thinko.
6569
6570 2004-02-29  Per Bothner  <per@bothner.com>
6571
6572         * java/nio/channels/FileChannelImpl.java:  Moved to package
6573         gnu/java/nio/channels, since we need to refer to it from java.io.
6574         * java/nio/channels/natFileChannelImpl.cc:  Removed file.
6575         * gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
6576         from java/nio/channels.  Don't depend on FileDescriptor.
6577         (in, out, err):  New static fields.
6578         (mode):  New field.
6579         (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
6580         from FileDescriptor.
6581         (by):  Removed MappedByteBuffer field.
6582         (map):  New working implementation.
6583         * gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
6584         some code "ported" from natFileDescriptoPosix.cc.
6585         * gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
6586         * gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.
6587         * java/io/FileDescriptor.java:  Implement on top of FileChannel.
6588         Remove native methods.
6589         * Makefile.am, configure.in:  Updated accordingly.
6590
6591         * gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
6592         (ch):  New FileChannelImpl field.  Update constructor to match.
6593         (releaseImpl):  Remove native method.  Instead ...
6594         (release):  Call unlock on channel.
6595         * gnu/java/nio/natFileLockImpl.cc:  Removed file.
6596
6597         * java/io/natFileDescriptorEcos.cc:  Remove file.
6598         * java/io/natFileDescriptorPosix.cc:  Remove file.
6599         * java/io/natFileDescriptorWin32.cc:  Remove file.
6600         * java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
6601         (<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
6602         (<init>(FileChannelImpl)):  New package-private constructor.
6603         (<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
6604         (available, close, read, skip):  Implement using FileChannelImpl.
6605         (getFD):  Allocate FileDescriptor if needed.
6606         (getChannel):  Is now trivial.
6607         * java/io/FileOutputStream.java:  Corresponding changes.
6608         * java/io/RandomAccessFile.java:  Corresponding changes.
6609
6610         * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
6611         unmapImpl):  New dummy methods, to be overridden by subclass.
6612         (finalize, isLoaded, load, force):  New methods.
6613         * java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
6614         Now works, at least for read mapping.
6615
6616         * java/lang/natPosixProcess.cc (startProcess):  Implement standard
6617         streams using FileChannelImpl, not FileDescriptor.
6618         * java/lang/natWin32Process.cc (startProcess):  Likewise.
6619
6620 2004-02-28  Michael Koch  <konqueror@gmx.de>
6621
6622         * java/io/ObjectInputStream.java: Compile fix, damn I commited the
6623         wrong code.
6624
6625 2004-02-28  Guilhem Lavaux <guilhem@kaffe.org>
6626
6627         * java/io/ObjectInputStream.java
6628         (readClassDescriptor): Keep elements of the mapping non null.
6629         (checkTypeConsistency): New method.
6630         (readFields): Fixed main loop and base logic. Small reindentation.
6631         * java/io/ObjectStreamField.java
6632         (lookupField): New method to update the field reference.
6633         (checkFieldType): New method.
6634         * java/io/ObjectStreamClass.java
6635         (setClass, setFields): Call lookupField when building the field
6636         database. Check the real field type.
6637
6638 2004-02-28  Michael Koch  <konqueror@gmx.de>
6639
6640         * java/nio/ByteOrder.java
6641         (nativeOrder): Use equals() to compare strings.
6642
6643 2004-02-26  Michael Koch  <konqueror@gmx.de>
6644
6645         * gnu/java/nio/FileLockImpl.java
6646         (finalize): Made protected.
6647         * java/nio/channels/FileChannel.java
6648         (MapMode.READ_ONLY): Made final.
6649         (MapMode.READ_WRITE): Made final.
6650         (MapMode.PRIVATE): Made final.
6651         * java/nio/channels/SocketChannel.java
6652         (open): Simplified code.
6653         * java/nio/channels/spi/AbstractSelectableChannel.java
6654         (registered): Unused, removed.
6655         (keyFor): Check channel is open, only locate key
6656         and not add a new one.
6657         (register): Don't delete attachments.
6658
6659 2004-02-26  Michael Koch  <konqueror@gmx.de>
6660
6661         * gnu/java/awt/ComponentDataBlitOp.java
6662         (INSTANCE): Made final.
6663         * gnu/java/awt/image/ImageDecoder.java:
6664         Reworked imports.
6665         (cm): Unused, removed.
6666
6667 2004-02-26  Michael Koch  <konqueror@gmx.de>
6668
6669         * gnu/java/nio/DatagramChannelImpl.java
6670         (send): Check if target address is resolved.
6671
6672 2004-02-26  Michael Koch  <konqueror@gmx.de>
6673
6674         * Makefile.am: Generate and install headers for inner classes in
6675         java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
6676         * Makefile.in: Regenerated.
6677
6678 2004-02-24  Anthony Green  <green@redhat.com>
6679
6680         * java/lang/StringBuffer.java: No need to NULL out remainder of
6681         buffer since ensureCapacity_unsynchronized will have done this for
6682         us.
6683
6684 2004-02-20  Michael Koch  <konqueror@gmx.de>
6685
6686         * gnu/java/net/protocol/jar/Handler.java
6687         (): Removed unneeded check for file != null. java.net.URL.getFile()
6688         returns an empty string but never null.
6689
6690 2004-02-20  Michael Koch  <konqueror@gmx.de>
6691
6692         * gnu/gcj/convert/Convert.java
6693         (main): Use equals() to compare strings.
6694
6695 2004-02-20  Michael Koch  <konqueror@gmx.de>
6696
6697         * javax/swing/AbstractButton.java: Made several constants final.
6698         (getRolloverSelectedIcon): Made public.
6699         (getSelectedIcon): Made public.
6700
6701 2004-02-16  Per Bothner  <per@bothner.com>
6702
6703         * java/nio/CharBufferImpl.java:  Inline super constructor.
6704         * java/nio/DoubleBufferImpl.java:  Likewise.
6705         * java/nio/FloatBufferImpl.java:  Likewise.
6706         * java/nio/IntBufferImpl.java:  Likewise.
6707         * java/nio/LongBufferImpl.java:  Likewise.
6708         * java/nio/ShortBufferImpl.java:  Likewise.
6709         * java/nio/CharBuffer.java:  Remove unused constructor.
6710         * java/nio/DoubleBuffer.java:  Likewise.
6711         * java/nio/FloatBuffer.java:  Likewise.
6712         * java/nio/IntBuffer.java:  Likewise.
6713         * java/nio/LongBuffer.java:  Likewise.
6714         * java/nio/ShortBuffer.java:  Likewise.
6715         * java/nio/CharViewBufferImpl.java:  New convenience constructor.
6716         Fix buggy call to super constructor.
6717         * java/nio/DoubleViewBufferImpl.java:  Likewise.
6718         * java/nio/FloatViewBufferImpl.java:  Likewise.
6719         * java/nio/IntViewBufferImpl.java:  Likewise.
6720         * java/nio/LongViewBufferImpl.java:  Likewise.
6721         * java/nio/ShortViewBufferImpl.java:  Likewise.
6722         
6723         * java/nio/ByteBuffer.java (endian):  Make non-private so other
6724         java.nio classes can inherit it.
6725         (<init>):  Don't bother clearing array_offset.
6726         * java/nio/ByteBuffer.java (allocate):  Re-implement using wrap.
6727         * java/nio/ByteBuffer.java (get(byte[],int,int)):  Check underflow.
6728         Remove redundant test.
6729
6730         * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
6731         asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
6732         Use new XxxViewBufferImpl constructors.
6733         * java/nio/MappedByteBufferImpl.java:  Likewise.
6734         * java/nio/DirectByteBufferImpl.java:  Likewise.
6735
6736         * java/nio/ByteBufferImpl.java:  Remove one constructor.
6737         Inline super in remaining constructor.
6738         * java/nio/ByteBuffer.java:  Remove unused constructor.
6739
6740         * java/nio/ByteBufferImpl.java (shiftDown):  New optimized method.
6741
6742         * java/nio/ByteBufferImpl.java (get, put):  Add array_offset.
6743         * java/nio/DirectByteBufferImpl.java (owner):  New field.
6744         (offset):  Remove unused field.
6745         (<init>):  Modify one and add another constructor.  Change callers.
6746         (allocateDirect):  Removed - not used.
6747         (getImpl, putImpl):  Make static and pass address explicitly,
6748         to make them useful for MappedByteBufferImpl.
6749         (get, put):  Check for underflow.  Modify for new getImpl.
6750         (getImpl):  New native method where target is array.
6751         (get(byte[],int,int)):  Use the above.
6752         (adjustAddress):  New static native method.
6753         (slice, duplicate, asReadOnly):  New implementations.
6754         * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
6755         adjustAddress):  New or updated native methods.
6756
6757 2004-02-15  Ito Kazumitsu  <kaz@maczuka.gcd.org>
6758
6759         * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
6760         overflow of fieldmapping.
6761
6762 2004-02-14  Sascha Brawer  <brawer@dandelis.ch>
6763
6764         * javax/swing/undo/UndoManager.java: Re-written from scratch.
6765
6766 2004-02-14  Per Bothner  <per@bothner.com>
6767
6768         * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
6769         Set closed before calling implCloseChannel, as in the spec.
6770
6771 2004-02-09  Graydon Hoare  <graydon@redhat.com>
6772
6773         * javax/swing/ToggleButtonModel.java: Remove dead class.
6774         * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
6775         * javax/swing/plaf/basic/BasicButtonListener.java: New class.
6776         * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
6777         * Makefile.am: Update for new and removed files.
6778         * Makefile.in: Regenerate.
6779
6780         * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
6781         * javax/swing/AbstractButton.java 
6782         (AbstractButton): Initialize fields correctly in ctor.
6783         * javax/swing/JCheckbox.java 
6784         (JCheckBox): Override painting flags.
6785         * javax/swing/DefaultButtonModel.java: Conform to sun.
6786         * javax/swing/JComponent.java (paint): Fill with background color
6787         if available.
6788         (processComponentKeyEvent)
6789         (processFocusEvent)
6790         (processKeyEvent)
6791         (processMouseMotionEvent): Remove event-consuming empty methods.
6792         (getUIClassID): Return "ComponentUI" not "JComponent"
6793         * javax/swing/JFrame.java: Remove some debugging chatter.
6794         (JFrame): Subscribe to window events.
6795         * javax/swing/JRadioButton.java 
6796         (JRadioButton): Override painting flags.
6797         * javax/swing/JRootPane.java 
6798         (JRootPane): Set background from UIDefaults.
6799         * javax/swing/JToggleButton.java 
6800         (ToggleButtonModel): New inner class.
6801         (JToggleButton): Override layout alighment.
6802         * javax/swing/SwingUtilities.java:
6803         (getLocalBounds): Return width and height, not x and y.
6804         (calculateInnerArea): Use local bounds, not bounds.
6805         (layoutCompoundLabel): Provide overridden form.
6806         (layoutCompoundLabel): Correct bugs.
6807         * javax/swing/UIDefaults.java: Correct comment.
6808         * javax/swing/plaf/basic/BasicButtonUI.java: 
6809         Move most logic into defaults, external listener.
6810         (paintIcon): Implement icon painting.
6811         (paint): Fix state painting to conform to changes in model.
6812         * javax/swing/plaf/basic/BasicCheckBoxUI.java:
6813         Remove most dead/wrong methods.
6814         (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
6815         * javax/swing/plaf/basic/BasicIconFactory.java:
6816         (DummyIcon): New class.
6817         (getMenuItemCheckIcon)
6818         (getMenuItemArrowIcon) 
6819         (getMenuArrowIcon)
6820         (getCheckBoxMenuItemIcon)
6821         (getRadioButtonMenuItemIcon)
6822         (createEmptyFrameIcon): Return DummyIcons, not null.
6823         (getCheckBoxIcon): Implement an icon that looks like sun's.
6824         (getRadioButtonIcon): Implement an icon that looks like sun's.
6825         * javax/swing/plaf/basic/BasicLookAndFeel.java 
6826         (initComponentDefaults): Fix impossible values, add some missing.
6827         * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
6828         * javax/swing/plaf/basic/BasicRadioButtonUI.java:
6829         Remove most dead/wrong methods.
6830         (icon): New field.
6831         (getDefaultIcon): New method.
6832         * javax/swing/plaf/basic/BasicToggleButtonUI.java:
6833         Remove most dead/wrong methods.
6834         * javax/swing/plaf/metal/MetalLookAndFeel.java
6835         (getDefaults): Return super.getDefaults(), not BasicDefaults.
6836         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
6837         (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
6838         Implement "clearing" as drawing, when on pixmap drawables.
6839
6840         * javax/swing/JButton.java (getUIClassID): 
6841         * javax/swing/JCheckBox.java (getUIClassID):
6842         * javax/swing/JEditorPane.java (getUIClassID):
6843         * javax/swing/JLabel.java (getUIClassID): 
6844         * javax/swing/JList.java (getUIClassID): 
6845         * javax/swing/JOptionPane.java (getUIClassID): 
6846         * javax/swing/JPanel.java (getUIClassID): 
6847         * javax/swing/JPasswordField.java (uiClassID): 
6848         * javax/swing/JRadioButton.java (getUIClassID): 
6849         * javax/swing/JRootPane.java (getUIClassID): 
6850         * javax/swing/JScrollPane.java (getUIClassID): 
6851         * javax/swing/JTabbedPane.java (getUIClassID): 
6852         * javax/swing/JToggleButton.java (getUIClassID): 
6853         * javax/swing/JTree.java (getUIClassID): 
6854         * javax/swing/JViewport.java (getUIClassID): 
6855         * javax/swing/text/JTextComponent.java (getUIClassID):
6856         Return "fooUI" not "Jfoo"
6857
6858 2004-02-11  Michael Koch  <konqueror@gmx.de>
6859
6860         * java/net/DatagramSocket.java
6861         (setReuseAddress): Use Boolean.valueOf() instead of creating a new
6862         Boolean object.
6863         (setBroadcast): Likewise.
6864         * java/net/MulticastSocket.java
6865         (setLoopbackMode): Likewise.
6866         * java/net/ServerSocket.java
6867         (setReuseAddress): Likewise.
6868         * java/net/Socket.java
6869         (setTcpNoDelay): Likewise.
6870         (setSoLinger): Likewise.
6871         (setOOBInline): Likewise.
6872         (setKeepAlive): Likewise.
6873         (setReuseAddress): Likewise.
6874         * java/net/URLConnection.java
6875         (setContentHandler): Replace == with equals().
6876         * java/net/URLStreamHandler.java
6877         (hostSEquals): Fix checking host addresses.
6878         (toExternalForm): Dont check protocol for null. We know already its
6879         not null.
6880
6881 2004-02-10  David Jee  <djee@redhat.com>
6882
6883         * java/awt/BorderLayout.java
6884         (calcCompSize): Invisible components get zero dimensions.
6885         * java/awt/Button.java
6886         (setLabel): Set actionCommand.
6887         * java/awt/Component.java
6888         (show): Invalidate component and parent container.
6889         (hide): Likewise.
6890
6891 2004-02-10  David Jee  <djee@redhat.com>
6892
6893         * java/awt/GridBagLayout.java
6894         (GridBagLayout): New private field, internalcomptable.
6895         (lookupInternalConstraints): New method.
6896         (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
6897         (GetLayoutInfo): Reimplement.
6898         (calcCellSizes): Ignore rows/columns with size 0.
6899
6900 2004-02-10  Michael Koch  <konqueror@gmx.de>
6901
6902         * gnu/java/awt/EmbeddedWindow.java
6903         (setHandle): Use java.awt.Component.getPeer() instead of
6904         java.awt.Component.peer directly.
6905
6906 2004-02-10  David Jee  <djee@redhat.com>
6907
6908         * gnu/java/awt/peer/gtk/GtkButtonPeer.java
6909         (gtkSetLabel): New native method definition.
6910         (setLabel): Use gtkSetLabel.
6911         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6912         (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
6913
6914 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
6915
6916         * include/powerpc-signal.h: Revert 2004-01-21 change.
6917         (INIT_SEGV, INIT_FPE): Provide powerpc64 versions.  Check return
6918         from syscall for ppc32 versions.
6919
6920 2004-02-08  Per Bothner  <per@bothner.com>
6921
6922         * java/nio/ByteBuffer.java (shiftDown):  New helper method.
6923         * java/nio/natDirectByteBufferImpl.cc (shiftDown):  New implementation.
6924         * java/nio/ByteBufferImpl.java (compact):  Use new shiftDown method.
6925         * sava/nio/ByteBufferHelper.java:  Remove redundant 'final' specifiers.
6926         Pass ByteOrder parameter to most methods, since the underlying
6927         ByteBuffer's order isn't always what we should use.
6928         * java/nio/ByteBufferImpl.java:  Pass byte-order various places.
6929         * java/nio/DirectByteBufferImpl.java:  Likewise.
6930         Use ByteBufferHelper methods.
6931         * java/nio/MappedByteBufferImpl.java:  Likewise.
6932         (compact):  Use shiftDown.
6933         * java/nio/CharViewBufferImpl.java (<init>):  Pass byte-order.
6934         (get, put):  Use ByteBufferHelper.
6935         (compact):  Use new shiftDown method.
6936         (duplicate(boolean)):  New helper method.
6937         (duplicate, asReadOnlyBuffer):  Use it.
6938         (order):  Return endian field.
6939         * java/nio/DoubleViewBufferImpl.java:  Likewise.
6940         * java/nio/FloatViewBufferImpl.java:  Likewise.
6941         * java/nio/IntViewBufferImpl.java:  Likewise.
6942         * java/nio/LongViewBufferImpl.java:  Likewise.
6943         * java/nio/ShortViewBufferImpl.java:  Likewise.
6944         * java/nio/CharViewBufferImpl.java (subsequence):  Redundant test.
6945         * java/nio/DirectByteBufferImpl.java (shiftDown):  New native method.
6946         (compact):  Re-implement using shiftDown.
6947
6948 2004-02-08  Andreas Jaeger  <aj@suse.de>
6949
6950         * include/x86_64-signal.h: Fix typo.
6951
6952 2004-02-08  Diego Novillo  <dnovillo@redhat.com>
6953
6954         * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
6955         qualifier to _regs.
6956         (HANDLE_DIVIDE_OVERFLOW): Likewise.
6957
6958 2004-02-06  Michael Koch  <konqueror@gmx.de>
6959
6960         * java/io/ObjectInputStream.java
6961         (currentClassLoader): Reverted to old version of this method.
6962
6963 2004-02-06  Jeroen Frijters  <jeroen@frijters.net>
6964
6965         * java/io/ObjectInputStream.java: Made all calls
6966         to dumpElement[ln] conditional on dump flag. (readObject): Changed to
6967         use cached info from ObjectStreamClass. (readClassDescriptor):
6968         Cache more information in ObjectStreamClass. (processResolution,
6969         readFields): Use cached info from ObjectStreamClass.
6970         (newObject): Throw exception instead of returning null for failure.
6971         (getField, getMethod, callReadMethod, setBooleanField, setByteField,
6972         setCharField, setDoubleField, setFloatField, setIntField,
6973         setLongField, setShortField, setObjectField, readObjectParams):
6974         Removed. (dumpElement, dumpElementln): Removed dump flag condition
6975         check.
6976         * java/io/ObjectStreamField.java (hasReadMethod): Removed.
6977         (setClass): Added call to cacheMethods() (findMethod): New method.
6978         (cacheMethods): New method. (ObjectStreamClass): Added call to
6979         cacheMethods(). (setFields): Cache fields. (getClassUID): Use
6980         AccessController.doPrivileged to invoke setAccessible.
6981         (readObjectMethod, readResolveMethod, realClassIsSerializable,
6982         realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
6983         New fields.
6984         * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
6985         (ObjectStreamField): Removed FIXME workaround. (getTypeString,
6986         isPrimitive): Made safe for cases where type == null.
6987         (setBooleanField, setByteField, setCharField, setShortField,
6988         setIntField, setLongField, setFloatField, setDoubleField,
6989         setObjectField): New methods.
6990
6991 2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
6992
6993         * java/awt/Component.java (getFont): Return a default font
6994         instead of null.
6995
6996         * java/awt/Scrollbar.java (next_scrollbar_number): New field.
6997         (Scrollbar (int, int, int, int, int)): Make default page
6998         increment 10.
6999         (setValues): Only call peer.setValues if one of the values has
7000         changed.
7001         (generateName): New method.
7002         (getUniqueLong): New method.
7003         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
7004         (range_scrollbar): Remove structure.
7005         (post_adjustment_event): Remove function.
7006         (post_change_event): Accept jobject argument.
7007         (create): Cast jints to gdoubles.  Round scrollbar values to the
7008         nearest integer.  Clamp min, max and value settings.
7009         (connectJObject): Connect hook to widget->window.
7010         (connectSignals): Remove range_scrollbar structure variables.
7011         Remove "move-slider" connection.  Pass global peer reference to
7012         "value-changed" callback.
7013         (setLineIncrement): Cast jint value to gdouble.
7014         (setPageIncrement): Likewise.
7015         (setValues): Likewise.  Clamp min, max and value settings.
7016
7017 2004-02-05  Michael Koch  <konqueror@gmx.de>
7018
7019         * javax/swing/AbstractCellEditor.java
7020         (getCellEditorValue): Removed.
7021         * javax/swing/Box.java: Reformated.
7022         (serialVersionUID): New field.
7023         * javax/swing/ButtonGroup.java:
7024         Removed some weird whitespace.
7025         * javax/swing/CellEditor.java: Reformated.
7026         * javax/swing/CellRendererPane.java
7027         (serialVersionUID): New field.
7028         (AccessibleCellRendererPaneserialVersionUID): New field.
7029         * javax/swing/DefaultListModel.java
7030         (serialVersionUID): New field.
7031         * javax/swing/JEditorPane.java
7032         (serialVersionUID): New field.
7033         (setPage): Throws IOException.
7034         (addHyperlinkListener): Implemented.
7035         (removeHyperlinkListener): Implemented.
7036         (getHyperlinkListener): New method.
7037         * javax/swing/JFileChooser.java
7038         (serialVersionUID): New field.
7039         (AccessibleJFileChooser.serialVersionUID): New field.
7040         (addActionListener): Implemented.
7041         (removeActionListener): Implemented.
7042         (getActionListeners): New method.
7043         * javax/swing/JFormattedTextField.java
7044         (serialVersionUID): New field.
7045         (AbstractFormatter.serialVersionUID): New field.
7046         (clone): Throws CloneNotSupportedException
7047         (setEditValid): Add missing argument.
7048         (stringToValue): Throws ParseExcpetion.
7049         (valueToString): Throws ParseException.
7050         (commitEdit): Throws ParseException.
7051         * javax/swing/JLabel.java
7052         (serialVersionUID): New field.
7053         * javax/swing/JList.java
7054         (serialVersionUID): New field.
7055         (addListSelectionListener): Reformated.
7056         (removeListSelectionListener): Reformated.
7057         (getListSelectionListeners): New method.
7058         * javax/swing/colorchooser/AbstractColorChooserPanel.java:
7059         Reformated.
7060         (serialVersionUID): New field.
7061         * javax/swing/table/AbstractTableModel.java
7062         (getValueAt): Removed.
7063         (getColumnCount): Removed.
7064         (getRowCount): Removed.
7065
7066 2004-02-05  Michael Koch  <konqueror@gmx.de>
7067
7068         * java/awt/datatransfer/DataFlavor.java
7069         (imageFlavor): Javadoc added.
7070         (javaJVMLocalObjectType): Fixed.
7071
7072 2004-02-05  Michael Koch  <konqueror@gmx.de>
7073
7074         * java/lang/Thread.java
7075         (Thread): Reordered.
7076         (setContextClassLoader): Fixed javadoc comment.
7077         (setPriority): Reordered.
7078         (yield): Reordered.
7079         (initialize_native): Reordered.
7080         (gen_name): Reordered.
7081
7082 2004-02-05  Michael Koch  <konqueror@gmx.de>
7083
7084         * java/lang/Thread.java: Reordered fields, reformated much code,
7085         no functional changes, some variables renamed, javadoc comments
7086         merged.
7087
7088 2004-02-05  Michael Koch  <konqueror@gmx.de>
7089
7090         * java/util/zip/Deflater.java,
7091         java/util/zip/DeflaterOutputStream.java,
7092         java/util/zip/GZIPInputStream.java:
7093         Reformated and javadoc comments merged from classpath.
7094
7095 2004-02-05  Michael Koch  <konqueror@gmx.de>
7096
7097         * gnu/java/nio/NIOServerSocket.java
7098         (impl): Unused, removed.
7099         * gnu/java/nio/SocketChannelImpl.java
7100         (finnishConnect): Don't throw NoConnectionPendingException if not
7101         connected or no connection pending.
7102
7103 2004-02-02  Graydon Hoare  <graydon@redhat.com>
7104
7105         * javax/swing/SwingUtilities.java: Many new functions.
7106         * java/awt/Container.java (LightweightDispatcher): Reimplement.
7107         * javax/swing/basic/BasicGraphicsUtils.java 
7108         (getPreferredButtonSize): Start layout from top-left corner.
7109
7110 2004-02-04  Olga Rodimina  <rodimina@redhat.com>
7111
7112         * java/awt/geom/AffineTransform.java: 
7113         Corrected comments on the field definitions for
7114         m11 and m10.
7115         (shear): Fixed few errors that caused shear
7116         transformation to be performed incorrectly.
7117         (createInverse): Fixed to return correct
7118         inverse of the given matrix.
7119
7120 2004-02-03  Tom Tromey  <tromey@redhat.com>
7121
7122         * java/lang/natPosixProcess.cc (startProcess): Handle case where
7123         PATH or LD_LIBRARY_PATH is not set in parent environment.
7124
7125 2004-02-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
7126
7127         * gnu/java/awt/peer/gtk/GtkListPeer.java,
7128         java/awt/BorderLayout.java, java/awt/CardLayout.java,
7129         java/awt/CheckboxGroup.java, java/awt/Choice.java,
7130         java/awt/Component.java, java/awt/Container.java,
7131         java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
7132         java/awt/LayoutManager2.java, java/awt/List.java,
7133         java/awt/Menu.java, java/awt/MenuBar.java,
7134         java/awt/MenuItem.java, java/awt/Polygon.java,
7135         java/awt/Rectangle.java, java/awt/ScrollPane.java,
7136         java/awt/Scrollbar.java, java/awt/TextArea.java,
7137         java/awt/TextField.java,
7138         java/awt/image/renderable/RenderContext.java,
7139         javax/swing/JApplet.java: Fix handling of alias methods, where a
7140         method has been deprecated in favour of a new one with the same
7141         funtion but a different name.  Put the method implementation in
7142         the deprecated method and have the new method call the
7143         deprecated one.  Make all other code call the new method.
7144
7145 2004-02-03  Mohan Embar  <gnustuff@thisiscool.com>
7146
7147         * gnu/java/nio/DatagramChannelImpl.java
7148         (inChannelOperation): New field.
7149         (isInChannelOperation): New accessor.
7150         (setInChannelOperation): New modifier.
7151         (receive): Use capacity() - position() of destination
7152         buffer instead of remaining(). Set and reset our "in
7153         channel operation indicator" before and after delegating
7154         the receive to our datagram socket. Removed testing code.
7155         Update destination buffer's current position if it is
7156         backed by a byte array (hasArray() is true).
7157         (send): Set and reset our "in channel operation indicator"
7158         before and after delegating the send to our datagram socket.
7159         Removed testing code. Update source buffer's current position
7160         if it is backed by a byte array (hasArray() is true).
7161         * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
7162         Use capacity() - position() of destination buffer instead
7163         of remaining().
7164         * java/net/DatagramSocket.java (receive): Don't throw an
7165         IllegalBlockingModeException if we have a non-blocking
7166         channel which initiated this operation.
7167         (send): Likewise.
7168
7169 2004-02-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
7170
7171         * configure.in: Add pkgconfig check for glib and gthread.
7172         * configure: Regenerate.
7173
7174 2004-02-01  Michael Koch  <konqueror@gmx.de>
7175
7176         * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
7177         arguments.
7178         * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
7179         * verify.cc (debug_print): Mark 'fmt' unused.
7180
7181 2004-01-30  Michael Koch  <konqueror@gmx.de>
7182
7183         * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
7184         * configure: Regenerated.
7185         * glib-2.0.m4: Removed.
7186         * gtk-2.0.m4: Removed.
7187         * libart.m4: Removed.
7188         * pkg.m4: New file.
7189
7190 2004-01-30  Mohan Embar  <gnustuff@thisiscool.com>
7191
7192         * gnu/java/net/PlainSocketImpl.java 
7193         (inChannelOperation): New field.
7194         (isInChannelOperation): New accessor.
7195         (setInChannelOperation): New modifier.
7196         * gnu/java/nio/ServerSocketChannelImpl.java
7197         (accept): Set and reset our server socket's PlainSocketImpl's
7198         "in channel operation" indicator before and after delegating
7199         the accept to our server socket.
7200         * gnu/java/nio/SocketChannelImpl.java
7201         (connect): Set and reset our socket's PlainSocketImpl's "in channel
7202         operation" indicator before and after delegating the operation to
7203         our socket.
7204         (read): Likewise.
7205         (write): Likewise.
7206         * java/net/ServerSocket.java (implAccept): Don't throw an
7207         IllegalBlockingModeException if we have a non-blocking
7208         channel which initiated this accept operation.
7209         * java/net/Socket.java (connect): Don't throw an
7210         IllegalBlockingModeException if we have a non-blocking
7211         channel which initiated this connect operation.
7212         * java/nio/channels/spi/AbstractSelectableChannel.java
7213         (configureBlocking): Only call implConfigureBlocking() if
7214         the desired blocking mode is different from our current one.
7215
7216 2004-01-29  Mohan Embar  <gnustuff@thisiscool.com>
7217
7218         * java/io/BufferedReader.java (sbuf): New field.
7219         (readLine): Use String.valueOf instead of new String() as per
7220         Per Bothner's suggestion. Use instance sbuf field instead of a
7221         local StringBuffer instance.
7222         * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
7223         caller's buffer to refill().
7224         (read(void)): Pass our internal work buffer to refill if our
7225         input queue is empty.
7226         (refill): Changed return type to int. Use the specified buffer
7227         instead of our work buffer as per Bryce McKinlay's suggestion.
7228         Return the number of characters read or -1 for EOF.
7229
7230 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7231
7232         * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
7233
7234 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7235
7236         * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
7237         * Makefile.in: Re-generated.
7238         * gnu/awt/xlib/XFontPeer.java: New file.
7239         * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
7240         (setClip): Commented out debug printout.
7241         * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
7242         (getFontPeer): Return XFontPeer.
7243         (getLocalGraphicsEnvironment): New method.
7244         (getClasspathFontPeer): New method.
7245         (createFont): New method.
7246
7247 2004-01-29  Scott Gilbertson  <scottg@mantatest.com>
7248
7249         * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
7250         return null. 
7251
7252 2004-01-29  Kim Ho  <kho@redhat.com>
7253
7254         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7255         (gtkLayoutSetVisible): New method
7256         (setMenuBar): Hide layout before setting MenuBar
7257         and reshow it after.
7258         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7259         (gtkLayoutSetVisible): Hide or show the Gtk Layout.
7260
7261 2004-01-28  Michael Koch  <konqueror@gmx.de>
7262
7263         * gnu/java/lang/ClassHelper.java
7264         (getPackagePortion): Removed.
7265
7266 2004-01-28  Michael Koch  <konqueror@gmx.de>
7267
7268         * javax/swing/JComponent.java
7269         (listenerList): Initalize globally.
7270         (ancestor_list): Removed.
7271         (veto_list): Removed.
7272         (change_list): Removed.
7273         (get_veto_list): Removed.
7274         (get_change_list): Removed.
7275         (get_ancestor_list): Removed.
7276         (removeAncestorListener): Reimplemented.
7277         (removePropertyChangeListener): Likewise.
7278         (removeVetoableChangeListener): Likewise.
7279         (addAncestorListener): Likewise.
7280         (addPropertyChangeListener): Likewise.
7281         (addVetoableChangeListener): Likewise.
7282         (getListeners): New method.
7283         (getAncestorListeners): Likewise.
7284         (getVetoableChangeListeners): Likewise.
7285         (fireVetoableChange): Throws PropertyVetoException.
7286         * javax/swing/JEditorPane.java
7287         (JEditorPane): Throws IOException.
7288
7289 2004-01-28  David Jee  <djee@redhat.com>
7290
7291         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7292         (create): Set the default foreground color to
7293         java.awt.SystemColor.windowText.
7294
7295 2004-01-27  Michael Koch  <konqueror@gmx.de>
7296
7297         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
7298         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7299         Reindented to merge with classpath.
7300
7301 2004-01-27  David Jee  <djee@redhat.com>
7302
7303         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7304         (addExposeFilter): Handle GtkFramePeer separately.
7305         (removeExposeFilter): Likewise.
7306
7307 2004-01-27  Michael Koch  <konqueror@gmx.de>
7308
7309         * gnu/java/net/protocol/http/Connection.java
7310         (getOutputStream): Fixed typo.
7311
7312 2004-01-27  Michael Koch  <konqueror@gmx.de>
7313
7314         * java/lang/Class.java
7315         (getConstructor): Removed SecurityException from throws clause.
7316         (_getConstructors): Likewise.
7317         (getConstructors): Likewise.
7318         (getDeclaredConstructor): Likewise.
7319         (getDeclaredClasses): Likewise.
7320         (getDeclaredConstructors): Likewise.
7321         (getDeclaredField): Likewise.
7322         (getDeclaredMethod): Likewise.
7323         (getDeclaredMethods): Likewise.
7324         (getField): Likewise.
7325         (getMethod): Likewise.
7326         (getMethods): Likewise.
7327
7328 2004-01-27  Kim Ho  <kho@redhat.com>
7329
7330         * gnu/java/awt/peer/gtk/GtkFramePeer.java
7331         (removeMenuBarPeer): Remove MenuBarPeer argument.
7332         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
7333         (dispose): Call native method.
7334         * java/awt/Frame.java (setMenuBar): Create and remove
7335         MenuBar peers only if the Frame has a peer.
7336         (addNotify): Create the MenuBar peer if one exists.
7337         (removeNotify): Remove MenuBar peer if one exists.
7338         * java/awt/Menu.java: Fix imports.
7339         (addNotify): Don't use full class name.
7340         (removeNotify): Call removeNotify on all children.
7341         * java/awt/MenuBar.java (removeNotify): Call
7342         removeNotify on all children.
7343         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7344         (removeMenuBarPeer): Remove MenuBarPeer argument.
7345         Iterate through children to find the Frame's MenuBar.
7346         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
7347         New file.
7348         (dispose): Remove references to the MenuComponent.
7349
7350 2004-01-27  Michael Koch  <konqueror@gmx.de>
7351
7352         * javax/swing/AbstractCellEditor.java: Reformated.
7353         * javax/swing/DefaultListSelectionModel.java
7354         (listenerList): Made protected.
7355         (addListSelectionListener): Javadoc added.
7356         (removeListSelectionListener): Likewise.
7357         (getListeners): Likewise.
7358         (getListSelectionListeners): Likewise.
7359         * javax/swing/JComboBox.java: Merged copyright year.
7360         * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
7361
7362 2004-01-26  Andrew Haley  <aph@redhat.com>
7363
7364         * javax/swing/table/JTableHeader.java: Extend JComponent
7365
7366 2004-01-26  Kim Ho  <kho@redhat.com>
7367
7368         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
7369         Fix spacing.
7370
7371 2004-01-26  Kim Ho  <kho@redhat.com>
7372
7373         * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
7374         method.
7375         (setMenuBar): Shift the Gtk layout up/down by the MenuBar
7376         height and let the Layout Managers readjust anything that
7377         needs to move.
7378         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7379         (moveLayout): New method. Shift everything in the Gtk
7380         layout in the Y direction by an offset.
7381
7382 2004-01-26  David Jee  <djee@redhat.com>
7383
7384         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
7385         (handleEvent): Implemented. Handles PaintEvents.
7386         (paint): Implemented. Use GTK native methods to queue updates
7387         for this heavyweight peer.
7388         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
7389         (handleEvent): Removed.
7390         * java/awt/Component.java
7391         (paint): Implemented. Explictly paint the heavyweight peer.
7392         (update): Clear the background for heavyweight components.
7393         (paintAll): No need to call peer.paint() anymore.
7394         (processEvent): Don't process PaintEvents here. It's now done in
7395         the peer's handleEvent().
7396         (processPaintEvent): Removed.
7397         * java/awt/Container.java
7398         (paint): No need to call super.paint(). Visit heavyweight
7399         children as well.
7400         (update): Don't clear the background here.  It's done in
7401         Component.update().
7402         (visitChildren): Added check to not recurse into Containers.
7403         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7404         (filter_expose_event_handler): New method.  Filter unwanted
7405         expose events while painting heavyweight peers.
7406         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
7407         New method. Connect filter and block pre_event_handler.
7408         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
7409         New method. Disconnect filter and unblock pre_event_handler.
7410         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
7411         New method. Invalidate and update given area.
7412         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7413         (pre_event_handler): Add checks for unwanted expose events.
7414
7415 2004-01-26  David Jee  <djee@redhat.com>
7416
7417         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7418         (find_bg_color_widget): For GtkButton, return its child.
7419
7420 2004-01-26  Kim Ho  <kho@redhat.com>
7421
7422         * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
7423         private.
7424         (setMenuBar): Grab MenuBar height and change insets.
7425         (setBounds): Account for MenuBar height.
7426         (postInsetsChangedEvent): Ditto.
7427         (postSizeAllocateEvent): Remove.
7428         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7429         (menubar_resize_cb): Remove
7430         (setMenuBarPeer): Remove callback.
7431         (getMenuBarHeight): Use size requisition instead of
7432         allocation.
7433
7434 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7435
7436         * java/awt/TextArea.java: Fix indentation.  Flesh out javadocs.
7437         (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
7438         when peer is null.
7439         (setColumns): Remove FIXME -- peer will retrieve number of
7440         columns by calling getColumns.
7441         (setRows): Likewise for number of rows.
7442         (next_text_number): New field.
7443         (paramString): Fix param string.
7444         (generateName): New method.
7445         (getUniqueLong): New method.
7446
7447 2004-01-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7448
7449         * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
7450         image observer of image loading status.
7451         (getImage (String)): Start image production.
7452         (getImage (URL)): Likewise.
7453
7454 2004-01-25  Michael Koch  <konqueror@gmx.de>
7455
7456         * java/lang/Class.java: Imports reworked, reformated.
7457         (Class): Javadoc added.
7458         (forName): Likewise.
7459         (getClasses): Likewise.
7460         (getClassLoader): Likewise.
7461         (getComponentType): Likewise.
7462         (getConstructor): Likewise.
7463         (getConstructors): Likewise.
7464         (getDeclaredConstructor): Likewise.
7465         (getDeclaredClasses): Likewise.
7466         (getDeclaredConstructors): Likewise.
7467         (getDeclaredField): Likewise.
7468         (getDeclaredMethod): Likewise.
7469         (getDeclaredMethods): Likewise.
7470         (getDeclaringClass): Likewise.
7471         (getField): Likewise.
7472         (getInterfaces): Likewise.
7473         (getMethod): Likewise.
7474         (getMethods): Likewise.
7475         (getModifiers): Likewise.
7476         (getName): Likewise.
7477         (getResource): Likewise.
7478         (getResourceAsStream): Likewise.
7479         (getSigners): Likewise.
7480         (setSigners): Likewise.
7481         (getSuperclass): Likewise.
7482         (isArray): Likewise.
7483         (isAssignableFrom): Likewise.
7484         (isInstance): Likewise.
7485         (isInterface): Likewise.
7486         (isPrimitive): Likewise.
7487         (newInstance): Likewise.
7488         (getProtectionDomain): Likewise.
7489         (toString): Likewise.
7490         (Class): Moved.
7491         (initializeClass): Likewise.
7492         (finalize): Likewise.
7493
7494 2004-01-24  Michael Koch  <konqueror@gmx.de>
7495
7496         * gnu/java/net/protocol/jar/Connection.java
7497         (hdrHash): Removed.
7498         (hdrVec): Removed.
7499         (gotHeaders): Removed.
7500         (getHeaderField): Removed.
7501         (getHeaderFields): Removed.
7502         (getHeaderFieldKey): Removed.
7503         (getKey): Removed.
7504         (getField): Removed.
7505         (getHeaders): Removed.
7506
7507 2004-01-24  Michael Koch  <konqueror@gmx.de>
7508
7509         * Makefile.am: Added library version to gtk peer lib.
7510         * Makefile.in: Regenerated.
7511
7512 2004-01-24  Michael Koch  <konqueror@gmx.de>
7513
7514         * java/util/zip/InflaterInputStream.java: Merged class documentation
7515         with classpath.
7516
7517 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
7518
7519         * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
7520         header.  For __powerpc64__ provide the default-signal.h definitions
7521         for now.
7522         * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
7523         instead of the dummy definitions.
7524         * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
7525         (powerpc64*-*): Remove with_libffi_default.
7526         Only add -mminimal-toc for 64-bit compilations.
7527         * configure.in: Use powerpc-signal.h on powerpc64 as well.
7528         (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
7529         Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
7530         * configure: Rebuilt.
7531
7532 2004-01-23  Michael Koch  <konqueror@gmx.de>
7533
7534         * gnu/java/nio/FileLockImpl.java: Compile fixes.
7535
7536 2004-01-23  Michael Koch  <konqueror@gmx.de>
7537
7538         * java/lang/VMClassLoader.java: Reworked imports.
7539         
7540 2004-01-23  Michael Koch  <konqueror@gmx.de>
7541
7542         * javax/swing/AbstractAction.java: Reformated.
7543
7544 2004-01-23  Michael Koch  <konqueror@gmx.de>
7545
7546         * java/text/CollationElementIterator.java:
7547         (setText): New method.
7548
7549 2004-01-23  Michael Koch  <konqueror@gmx.de>
7550
7551         * gnu/java/nio/FileLockImpl.java:
7552         Fixed filename in copyright.
7553         (released): Removed.
7554         (finalize): New method.
7555         * gnu/java/nio/natFileLockImpl.cc
7556         (releaseImpl): Implemented.
7557         * java/nio/channels/FileChannelImpl.java:
7558         Reworked imports.
7559         (lock): Implemented.
7560         (lockImpl): New method.
7561         (tryLock): Implemented.
7562         (tryLockImpl): New method.
7563         * java/nio/channels/natFileChannelImpl.cc
7564         (lockImpl): New method.
7565         (tryLockImpl): New method.
7566
7567 2004-01-23  Michael Koch  <konqueror@gmx.de>
7568
7569         * java/io/FileDescriptor.java
7570         (lock): New method.
7571         (tryLock): New method.
7572         (unlock): New method.
7573         * java/io/natFileDescriptorEcos.cc
7574         (lock): New method.
7575         (tryLock): New method.
7576         (unlock): New method.
7577         * java/io/natFileDescriptorPosix.cc
7578         (lock): New method.
7579         (tryLock): New method.
7580         (unlock): New method.
7581         * java/io/natFileDescriptorWin32.cc
7582         (lock): New method.
7583         (tryLock): New method.
7584         (unlock): New method.
7585
7586 2004-01-23  Michael Koch  <konqueror@gmx.de>
7587
7588         * java/io/FileDescriptor.java
7589         (sync): Moved around, added javadoc.
7590         (valid): Likewise.
7591         (open): Likewise.
7592         (write): Likewise.
7593         (close): Likewise.
7594         (setLength): Likewise.
7595         (seek): Likewise.
7596         (getLength): Likewise.
7597         (getFilePointer): Likewise.
7598         (read): Likewise.
7599         (available): Likewise.
7600         (finalize): Likewise.
7601
7602 2004-01-23  Michael Koch  <konqueror@gmx.de>
7603
7604         * javax/swing/AbstractAction.java: Reformated.
7605         (getPropertyChangeListeners): New method.
7606         * javax/swing/AbstractCellEditor.java: Reformated.
7607         (getCellEditorListeners): New method.
7608         * javax/swing/DefaultListSelectionModel.java
7609         (listenerList): New field.
7610         (listeners): Removed.
7611         (get_listeners): Removed.
7612         (addListSelectionListener): Rewritten.
7613         (removeListSelectionListener): Rewritten.
7614         (getListSelectionListeners): New method.
7615         (getListeners): New method.
7616         * javax/swing/JComboBox.java: Imports reworked.
7617         (addActionListener): Implemented.
7618         (removeActionListener): Implemented.
7619         (addItemListener): Implemented.
7620         (removeItemListener): Implemented.
7621         (addPopupMenuListener): Implemented.
7622         (removePopupMenuListener): Implemented.
7623         (getActionListeners): New method.
7624         (getItemListeners): New method.
7625         (getPopupMenuListeners): New method.
7626
7627 2004-01-23  Michael Koch  <konqueror@gmx.de>
7628
7629         * gnu/java/net/protocol/http/Connection.java
7630         (connect): Don't initialize bufferedOutputStream if not needed.
7631         (sendRequest): Set property for content length if content is present.
7632         Write content only if present.
7633         (getOutputStream): Check if already connected, dont connect,
7634         initalize bufferedOutputStream if needed.
7635
7636 2004-01-23  Michael Koch  <konqueror@gmx.de>
7637
7638         * java/io/FileDescriptor.java
7639         (in, out, err): Added javadoc.
7640         (static): Merged loading code.
7641         (fd, position): Moved around.
7642
7643 2004-01-23  Michael Koch  <konqueror@gmx.de>
7644
7645         * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
7646         New file.
7647
7648 2004-01-23  Michael Koch  <konqueror@gmx.de>
7649
7650         * java/lang/Class.java,
7651         java/lang/Object.java,
7652         java/lang/Thread.java: Merged copyright with classpath.
7653
7654 2004-01-23  Michael Koch  <konqueror@gmx.de>
7655
7656         * java/io/FileDescriptor.java: Merged copyright with classpath to
7657         start merging this class.
7658
7659 2004-01-22  Tom Tromey  <tromey@redhat.com>
7660
7661         PR libgcj/13107:
7662         * testsuite/libjava.lang/pr13107_2.xfail: New file.
7663         * testsuite/libjava.lang/pr13107_3.xfail: New file.
7664         * testsuite/libjava.lang/pr13107_3.java: New file.
7665         * testsuite/libjava.lang/pr13107_3.out: New file.
7666         * testsuite/libjava.lang/pr13107_2.java: New file.
7667         * testsuite/libjava.lang/pr13107_2.out: New file.
7668         * testsuite/libjava.lang/pr13107.java: New file.
7669         * testsuite/libjava.lang/pr13107.out: New file.
7670         * verify.cc (jsr_ptrs): Removed.
7671         (entry_points): Likewise.
7672         (struct subr_info): Likewise.
7673         (struct subr_entry_info): Likewise.
7674         (type_val::unused_by_subroutine_type): Likewise.
7675         (type::merge): Don't handle unused_by_subroutine_type.
7676         (type::print): Likewise.
7677         (state::flags): Removed.
7678         (state::subroutine): Likewise.
7679         (state::seen_subrs): Likewise.
7680         (state::NO_STACK): Likewise.
7681         (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
7682         (state): Updated all methods.
7683         (state::clean_subrs): Removed.
7684         (state::state): Removed `ret_semantics' flag.
7685         (state::copy): Likewise.
7686         (state::add_subr): Removed.
7687         (state::enter_subroutine): Likewise.
7688         (type::set_return_address): New method.
7689         (handle_jsr_insn): Set return address on the type.  Always
7690         invalidate PC after call.
7691         (check_nonrecursive_call): Removed.
7692         (~_Jv_BytecodeVerifier): Updated.
7693         (branch_prepass): Removed special handling of jsr.
7694         (note_branch_target): Likewise.
7695         (get_subroutine): Removed.
7696         (state::merge): Don't merge subroutines and don't handle
7697         NO_STACK.  Removed ret_semantics and jsr_semantics arguments.
7698         (state::note_variable): Removed.
7699         (state::is_unmerged_ret_state): Likewise.
7700         (state::print): Updated.
7701         (set_variable): Likewise.
7702         (merge_into): Renamed from push_jump_merge.  Removed ret_semantics
7703         and jsr_semantics arguments.  Updated for new reverification
7704         list.
7705         (pop_jump): Rewrote.
7706         (construct_primitive_array_type): Updated.
7707         (state::next): Removed.
7708         (INVALID_STATE): New define.
7709         (state::INVALID): Removed.
7710         (state::NO_NEXT): New value.
7711         (state::pc, state::next): New fields.
7712         (state::get_pc): New method.
7713         (next_verify_pc): Removed.
7714         (next_verify_state): New field.
7715         (verify_instructions_0): Always check for falling off end.
7716         (linked): New type.
7717         (linked_utf8): Removed.
7718         (states): Changed type.
7719         (type::state_mergeable_p): New method.
7720         (state::state_mergeable_p): Likewise.
7721         (handle_ret_insn): Removed most code.
7722         (state::reverify): New method.
7723         (add_new_state): Likewise.
7724         (state::set_pc): Likewise.
7725
7726 2004-01-22  Jeff Sturm  <jsturm@one-point.com>
7727
7728         PR java/13733
7729         * testsuite/libjava.compile/PR13733.java: New file.
7730         * testsuite/libjava.compile/PR13733.xfail: New file.
7731
7732 2004-01-22  Arnaud Vandyck  <arnaud.vandyck@ulg.ac.be>
7733             Michael Koch  <konqueror@gmx.de>
7734
7735         * javax/swing/table/DefaultTableCellRenderer.java
7736         (DefaultTableCellRenderer): Added javadoc for the class and for
7737         the constructor, Border instance, create an EmptyBorder.
7738         (UIResource): Removed the comment at the end of the class
7739         (setForeground): New method.
7740         (setBackground): New method.
7741         (updateUI): New method.
7742         (getTableCellRendererComponent): Rewritten with the help of
7743         dvholten and Stephane Meslin-Weber.
7744         (validate): New method.
7745         (repaint): New method.
7746         (firePropertyChange): New method.
7747         (setValue): New method.
7748
7749 2004-01-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
7750
7751         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7752         (connectJObject): Replace printf calls with g_assert statements.
7753         Move property-notify-event signal connection to ...
7754         (connectSignals): Connect property-notify-event signal.  Iterate
7755         through the vbox's children to find layout.
7756
7757 2004-01-22  Graydon Hoare  <graydon@redhat.com>
7758         
7759         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: 
7760         * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
7761         Predicate static initialization on GtkToolkit.useGraphics2D().
7762         * java/awt/Component.java (processPaintEvent): Consume event.
7763         * javax/swing/AbstractButton.java: Reimplement, document.
7764         * javax/swing/DefaultButtonModel.java: Reimplement, document.
7765         * javax/swing/JComponent.java (paint): Use double buffer.
7766         (listenerList): Enable member.
7767         * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
7768         * javax/swing/JToggleButton.java 
7769         (JToggleButton): Modify model constructor.
7770         * javax/swing/SwingUtilities.java 
7771         (layoutCompoundLabel): Adjust arithmetic.
7772         * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
7773         * javax/swing/plaf/basic/BasicGraphicsUtils.java 
7774         (getPreferredButtonSize): Include margins in calculation.
7775         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7776         (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
7777         Receive up events from subordinate layout component.
7778
7779 2004-01-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
7780
7781         * java/awt/Component.java (show): Set visible to true before
7782         showing the peer.
7783
7784 2004-01-21  Kim Ho  <kho@redhat.com>
7785
7786         * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
7787         Fix comments.
7788         (removeMenuBarPeer): Make package private.
7789         (setMenuBarPeer): Make package private.
7790         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7791         (menubar_resize_cb): Mark attributes unused.
7792         (getMenuBarHeight): ditto.
7793
7794 2004-01-21  David Jee  <djee@redhat.com>
7795
7796         * java/awt/Container.java
7797         (LightweightDispatcher.handleEvent): Add an extra check to avoid
7798         dispatching MOUSE_ENTERED event twice. Translate the point for
7799         the mouse event target before dispatching the event.
7800
7801 2004-01-20  Jakub Jelinek  <jakub@redhat.com>
7802
7803         * Makefile.am (lib_org_w3c_dom_la_LIBADD,
7804         lib_org_w3c_dom_la_LDFLAGS): New.
7805         (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
7806         * Makefile.in: Rebuilt.
7807
7808 2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
7809
7810         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
7811         Calculate proper offsets for heavyweight components packed in
7812         lightweight containers.
7813
7814         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
7815         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
7816         (native create): Add width parameter.
7817         (create): Calculate text entry width based on current font's
7818         metrics and number of columns.  Set TextField's font if not
7819         already set.  Call native create.
7820         (gtkEntryGetBorderWidth): New native method.
7821         (gtkEntryGetSize): Remove method.
7822         (getMinimumSize): Call minimumSize.
7823         (getPreferredSize): Call preferredSize.
7824         (minimumSize): Calculate minimum size based on backing
7825         GtkEntry's borders, font metrics and number of columns.
7826         (preferredSize): Likewise for preferred size.
7827         (get_border_width): New static function.
7828
7829         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
7830         Override GtkWindowPeer's setResizable method to account for menu
7831         bar height when setting the frame's size.
7832
7833 2004-01-19  Matthias Klose  <doko@debian.org>
7834
7835         * libtool-version: Increased `current' to 6.
7836
7837 2004-01-19  Kim Ho  <kho@redhat.com>
7838
7839         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7840         (connectJObject): Iterate through the vbox's children to find layout.
7841
7842 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
7843
7844         * java/awt/EventQueue.java (invokeAndWait): Use list-aware
7845         isDispatchThread method to replace wrong test condition.
7846
7847 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
7848
7849         * java/awt/EventQueue.java (pop): Prevent racing condition to add
7850         events to the queue out of order by acquiring locks in the proper
7851         order and not by releasing one before acquiring the other.
7852
7853 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
7854
7855         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
7856         visible so that dialog can be reused.
7857
7858 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
7859
7860         * java/awt/EventQueue.java (getCurrentEvent): Consider that system
7861         events may be handled by any queue in the stack.
7862
7863 2004-01-19  Kim Ho  <kho@redhat.com>
7864
7865         * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
7866         MenuBarPeer parameter.
7867         (removeMenuBarPeer): New native method.
7868         (setMenuBar): Call remove if menu bar is null. Adjust insets
7869         appropriately.
7870         (postSizeAllocateEvent): New method. Called when menu bar size is
7871         allocated. Adjust insets and redo layout.
7872         (GtkFramePeer): Set menu bar during frame creation.
7873         (postConfigureEvent): Adjust position and size to accomodate
7874         menu bar.
7875         * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
7876         * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
7877         (addNotify): Create the peer if it doesn't exist and call addNotify
7878         for the menu's items.
7879         * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
7880         * java/awt/MenuItem.java (addNotify): Create the peer if it
7881         doesn't exist.
7882         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7883         (removeMenuBarPeer): New method. Remove menu bar on the current
7884         frame.
7885         (setMenuBarPeer): Add the menu bar to the current frame and the
7886         callback for size-allocate events on the menu bar.
7887         (getMenuBarHeight): Add menu bar parameter.
7888         (menubar_resize_cb): New callback method for postSizeAllocate events.
7889
7890         Also: Fix indentation on last ChangeLog entry.
7891
7892 2004-01-16  Kim Ho  <kho@redhat.com>
7893
7894         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7895         (gtkWidgetGetDimensions): Remove.
7896         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7897         (gtkWidgetGetDimensions): Remove.
7898
7899 2004-01-16  Tom Tromey  <tromey@redhat.com>
7900
7901         * java/awt/Container.java: Typo and indentation fixes.
7902
7903         * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
7904         * java/lang/natVMClassLoader.cc: ...here.  New file.
7905         * Makefile.in: Rebuilt.
7906         * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
7907
7908 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
7909
7910         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
7911         Discard GDK_ENTER_NOTIFY related to ungrabs.
7912
7913 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
7914
7915         * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
7916         is called for an intermediate queue.
7917
7918 2004-01-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
7919
7920         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7921         (window_property_changed_cb): Set id_set.
7922
7923 2004-01-16  Kim Ho  <kho@redhat.com>
7924
7925         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
7926         it is a FileDialog and has dimensions of 0 by 0, then the initial
7927         size is set to size request plus insets.
7928         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
7929         (gtkWidgetGetDimensions): Override method.
7930         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7931         (gtkWidgetGetDimensions): Override method. Returns size request plus
7932         insets.
7933
7934 2004-01-16  Andrew Haley  <aph@redhat.com>
7935
7936         * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
7937         * sysdep/i386/locks.h: Likewise.
7938
7939 2004-01-16  Fernando Nasser  <fnasser@redhat.com>
7940
7941         * java/awt/EventDispatchThread.java (run): Stop running when
7942         interrupted.
7943         * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
7944         Reset the queue after transferring its contents.
7945         (push): Start a new dispatch thread if none is running.
7946
7947 2004-01-16  Olga Rodimina <rodimina@redhat.com>
7948
7949         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
7950         (doPolygon): set fill rule of polygon to 
7951         WIND_EVEN_ODD by default.
7952
7953 2004-01-15  Olga Rodimina <rodimina@redhat.com>
7954
7955         * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
7956         Implemented rendering hints related methods.
7957         (getDefaultHints): New helper method. Returns
7958         default rendering hints.
7959         (walkPath): changed to normalize path if
7960         the KEY_STROKE_CONTROL key is in "normalize" mode.
7961         (draw3DRect): changed coordinates of rectangle by +0.5
7962         if in "normalize" mode.
7963
7964 2004-01-15  Tom Tromey  <tromey@redhat.com>
7965
7966         * Makefile.in: Rebuilt.
7967         * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
7968         (%.lo: %.java) Filter out StackTrace.lo.
7969
7970 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
7971
7972         * configure.in: Add in AC_PREREQ(2.13)
7973         * libltdl/configure.ac: Update to AC_PREREQ(2.57).  Delete 
7974         FIXME comment.
7975
7976 2004-01-14  Nathan Bryant  <nbryant@optonline.net>
7977             Tom Tromey  <tromey@redhat.com>
7978
7979         PR libgcj/12001:
7980         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
7981         array to superclass.
7982         (init): Changed interface; add URLs here.
7983         (initialize): New static method.
7984         * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
7985         (_Jv_RunMain): ... not here.
7986
7987 2004-01-14  Michael Koch  <konqueror@gmx.de>
7988
7989         * java/text/MessageFormat.java:
7990         Added descriptions to exceptions.
7991         This fixes PR libgcj/2429.
7992
7993 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
7994
7995         * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
7996         (push): Make sure push is performed at the top of the thread stack.
7997
7998 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
7999
8000         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
8001         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
8002         (native create): Add width and height parameters.  Set text
8003         view's size request according to new parameters.
8004         (create): Calculate text view size based on current font's
8005         metrics and number of rows and columns.  Set TextArea's font if
8006         not already set.  Call native create.
8007         (getMinimumSize): Call minimumSize.
8008         (getPreferredSize): Call preferredSize.
8009         (getHScrollbarHeight): New method.
8010         (getVScrollbarWidth): New method.
8011         (minimumSize): Calculate minimum size based on scrollbar
8012         visibility, scrollbar sizes, font metrics and number of rows and
8013         columns.
8014         (preferredSize): Likewise for preferred size.
8015         (gtkTextGetSize): Remove method.
8016
8017 2004-01-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
8018
8019         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8020         (initializeInsets): Remove method.
8021         (GtkComponentPeer): Initialize insets field.  Remove call to
8022         initializeInsets.
8023         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
8024         Remove method.
8025         * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
8026         Remove method.
8027         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
8028         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
8029         (latestInsets): Remove field.
8030         (native create): Add insets parameter.  Call
8031         window_get_frame_extents.  Set the window's default size and
8032         size request based on its frame extents.
8033         (create): Initialize insets.
8034         (postInsetsChangedEvent): New method.
8035         (postConfigureEvent): Remove parameters top, left, bottom,
8036         right.  Remove insets-related logic.
8037         (connectJObject): Handle property-notify-event.
8038         (window_get_frame_extents, request_frame_extents,
8039         property_notify_predicate, window_property_changed_cb): New
8040         static functions.
8041         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8042         (pre_event_handler): Remove insets-related logic for configure
8043         events.
8044         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
8045         Update postConfigureEvent signature.
8046
8047 2004-01-13  Fernando Nasser  <fnasser@redhat.com>
8048  
8049         * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
8050         to handle Window "Closing" events.
8051  
8052 2004-01-13  David Jee  <djee@redhat.com>
8053
8054         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8055         (setBackground): New method. Children with no explicitly-set
8056         background will be repainted with the parent container's new
8057         background color.
8058
8059 2004-01-13  David Jee  <djee@redhat.com>
8060
8061         * Makefile.am: Add BitwiseXORComposite.java.
8062         * Makefile.in: Regenerated.
8063         * gcj/Makefile.in: Regenerated.
8064         * include/Makefile.in: Regenerated.
8065         * testsuite/Makefile.in: Regenerated.
8066
8067 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
8068
8069         * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
8070         not show modal dialogs twice and so that it allows showing a modal
8071         dialog from another modal dialog.
8072
8073 2004-01-12  Fernando Nasser  <fnasser@redhat.com>
8074
8075         * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
8076         and run secondary dispatch thread to process event queue while this
8077         thread is blocked.
8078
8079 2004-01-12  Graydon Hoare  <graydon@redhat.com>
8080
8081         * gnu/java/awt/gtk/GdkGraphics2D.java
8082         (static): Check GtkToolkit before initializing static state.
8083         (Graphics2D): Don't construct transform with 0.5 unit offset.
8084
8085 2003-11-06  Sascha Brawer  <brawer@dandelis.ch>
8086
8087         * gnu/java/awt/BitwiseXORComposite.java: Add.
8088         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8089         (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
8090         (BitwiseXORComposite): Remove inner class.
8091
8092 2004-01-11  Michael Koch  <konqueror@gmx.de>
8093
8094         * gnu/java/lang/reflect/TypeSignature.java
8095         (getEncodingOfClass): Documentation fixed.
8096         (getClassForEncoding): Give class loader to Class.forName().
8097         Documentation fixed.
8098
8099 2004-01-11  Sascha Brawer  <brawer@dandelis.ch>
8100
8101         * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
8102
8103 2004-01-11  Michael Koch  <konqueror@gmx.de>
8104
8105         * javax/swing/undo/StateEditable.java
8106         (RCSID): Removed redundant modifiers.
8107
8108 2004-01-10  Michael Koch  <konqueror@gmx.de>
8109
8110         * javax/print/attribute/EnumSyntax.java
8111         (getStringTable): Made protected.
8112         (getEnumValueTable): Likewise.
8113         * javax/print/attribute/standard/JobKOctetsProcessed.java
8114         (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
8115         * javax/print/attribute/standard/JobMediaSheetsCompleted.java
8116         (JobMediaSheetsCompleted): Made class final.
8117         * javax/print/attribute/standard/OutputDeviceAssigned.java
8118         (getName): Fixed typo.
8119         * javax/print/attribute/standard/RequestingUserName.java
8120         (serialVersionUID): Fixed value.
8121
8122 2004-01-10  Michael Koch  <konqueror@gmx.de>
8123
8124         * javax/swing/plaf/basic/BasicButtonUI.java,
8125         javax/swing/plaf/basic/BasicCheckBoxUI.java,
8126         javax/swing/plaf/basic/BasicListUI.java,
8127         javax/swing/plaf/basic/BasicOptionPaneUI.java,
8128         javax/swing/plaf/basic/BasicPanelUI.java,
8129         javax/swing/plaf/basic/BasicRadioButtonUI.java,
8130         javax/swing/plaf/basic/BasicScrollPaneUI.java,
8131         javax/swing/plaf/basic/BasicToggleButtonUI.java,
8132         javax/swing/plaf/basic/BasicViewportUI.java:
8133         Fixed import statements.
8134
8135 2004-01-10  Michael Koch  <konqueror@gmx.de>
8136
8137         * gnu/java/awt/image/ImageDecoder.java
8138         (produce): Made public.
8139         * gnu/java/awt/peer/GLightweightPeer.java,
8140         gnu/java/awt/peer/gtk/GtkToolkit.java:
8141         Reformated.
8142
8143 2004-01-10  Michael Koch  <konqueror@gmx.de>
8144
8145         * javax/swing/JRadioButtonMenuItem.java,
8146         javax/swing/JSeparator.java,
8147         javax/swing/JSplitPane.java,
8148         javax/swing/JTextPane.java,
8149         javax/swing/JToolBar.java,
8150         javax/swing/ListCellRenderer.java,
8151         javax/swing/ListModel.java,
8152         javax/swing/MenuElement.java,
8153         javax/swing/OverlayLayout.java,
8154         javax/swing/ProgressMonitor.java,
8155         javax/swing/ProgressMonitorInputStream.java,
8156         javax/swing/Renderer.java,
8157         javax/swing/RootPaneContainer.java,
8158         javax/swing/Scrollable.java,
8159         javax/swing/SingleSelectionModel.java,
8160         javax/swing/ToolTipManager.java,
8161         javax/swing/ViewportLayout.java,
8162         javax/swing/event/DocumentEvent.java,
8163         javax/swing/event/SwingPropertyChangeSupport.java,
8164         javax/swing/event/TreeSelectionEvent.java,
8165         javax/swing/event/UndoableEditEvent.java,
8166         javax/swing/text/AbstractDocument.java,
8167         javax/swing/text/AttributeSet.java,
8168         javax/swing/text/Caret.java,
8169         javax/swing/text/ComponentView.java,
8170         javax/swing/text/DefaultCaret.java,
8171         javax/swing/text/DefaultEditorKit.java,
8172         javax/swing/text/Document.java,
8173         javax/swing/text/EditorKit.java,
8174         javax/swing/text/GapContent.java,
8175         javax/swing/text/Keymap.java,
8176         javax/swing/text/MutableAttributeSet.java,
8177         javax/swing/text/PlainEditorKit.java,
8178         javax/swing/text/Segment.java,
8179         javax/swing/text/Style.java,
8180         javax/swing/text/StyledDocument.java,
8181         javax/swing/text/StyledEditorKit.java,
8182         javax/swing/text/TextAction.java,
8183         javax/swing/text/View.java: Fixed import statements.
8184
8185 2004-01-08  Graydon Hoare  <graydon@redhat.com>
8186
8187         * javax/swing/JLayeredPane.java: Rewrite to accomodate
8188         djee@redhat.com's recent inverse ordering of Container elements.
8189
8190 2004-01-09  Michael Koch  <konqueror@gmx.de>
8191
8192         * gnu/java/lang/ArrayHelper.java
8193         (equalsArray): Removed.
8194
8195 2004-01-09  Andrew Haley  <aph@redhat.com>
8196
8197         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
8198         a Utf8Const field before looking at its class.
8199
8200 2004-01-09  Michael Koch  <konqueror@gmx.de>
8201
8202         * javax/print/attribute/standard/DocumentName.java,
8203         javax/print/attribute/standard/JobHoldUntil.java,
8204         javax/print/attribute/standard/JobMessageFromOperator.java,
8205         javax/print/attribute/standard/JobName.java,
8206         javax/print/attribute/standard/JobOriginatingUserName.java,
8207         javax/print/attribute/standard/OutputDeviceAssigned.java,
8208         javax/print/attribute/standard/PrinterInfo.java,
8209         javax/print/attribute/standard/PrinterLocation.java,
8210         javax/print/attribute/standard/PrinterMakeAndModel.java,
8211         javax/print/attribute/standard/PrinterMessageFromOperator.java,
8212         javax/print/attribute/standard/PrinterName.java,
8213         javax/print/attribute/standard/RequestingUserName.java: New files.
8214         * Makefile.am (javax_source_files): Added new files.
8215         * Makefile.in: Regenerated.
8216
8217 2004-01-09  Michael Koch  <konqueror@gmx.de>
8218
8219         * javax/swing/AbstractAction.java,
8220         javax/swing/AbstractSet.java,
8221         javax/swing/Action.java,
8222         javax/swing/ActionMap.java,
8223         javax/swing/BoundedRangeModel.java,
8224         javax/swing/ButtonModel.java,
8225         javax/swing/CellEditor.java,
8226         javax/swing/CellRendererPane.java,
8227         javax/swing/ComboBoxEditor.java,
8228         javax/swing/DebugGraphics.java,
8229         javax/swing/DefaultCellEditor.java,
8230         javax/swing/DefaultCellRenderer.java,
8231         javax/swing/DefaultComboBoxModel.java,
8232         javax/swing/DefaultDesktopManager.java,
8233         javax/swing/DefaultFocusManager.java,
8234         javax/swing/DefaultListCellRenderer.java,
8235         javax/swing/Icon.java,
8236         javax/swing/JButton.java,
8237         javax/swing/JCheckBoxMenuItem.java,
8238         javax/swing/JDesktopPane.java,
8239         javax/swing/JEditorPane.java,
8240         javax/swing/JMenu.java,
8241         javax/swing/JPanel.java,
8242         javax/swing/JPasswordField.java,
8243         javax/swing/JPopupMenu.java,
8244         javax/swing/JProgressBar.java: Reworked imports.
8245
8246 2004-01-09  Michael Koch  <konqueror@gmx.de>
8247
8248         * java/awt/geom/PathIterator.java
8249         (WIND_EVEN_ODD): Removed redundant modifiers.
8250         (WIND_NON_ZERO): Likewise.
8251         (SEG_MOVETO): Likewise.
8252         (SEG_LINETO): Likewise.
8253         (SEG_QUADTO): Likewise.
8254         (SEG_CUBICTO): Likewise.
8255         (SEG_CLOSE): Likewise.
8256         * java/awt/image/SinglePixelPackedSampleModel.java:
8257         Removed redundant semicolon.
8258         * java/io/ObjectInputStream.java
8259         (inputGetObjectStreamClasses): Removed unused variable "ret_val".
8260         * java/util/logging/Filter.java
8261         (isLoggable): Removed redundant modifier.
8262         * java/util/logging/LogManager.java:
8263         Removed redundant semicolon.
8264         * java/util/logging/XMLFormatter.java
8265         (format): Removed unused variable "key".
8266
8267 2004-01-08  Fernando Nasser  <fnasser@redhat.com>
8268
8269         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
8270         New name for the former setFile native method.
8271         (setFile): New method.
8272         (setDirectory): Implemented.
8273         (connectSignals): New native method.
8274         (setFilenameFilter): Improve comment.
8275         (getGraphics): Comment.
8276         (gtkHideFileDialog): New method.
8277         (gtkDisposeFileDialog): New method.
8278         (gtkSetFilename): New method.
8279         * java/awt/Dialog.java (show): Block on modal dialogs, but only
8280         for FileDialog for now.
8281         (hide): New method.
8282         (dispose): New method.
8283         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
8284         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
8285         deprecated creation functions.  Make dialog modal.  Add it to the
8286         window group.
8287         (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
8288         function.
8289         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
8290         Rename to...
8291         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
8292         name.
8293         (window_closed): New function.
8294         (ok_clicked): New function.
8295         (cancel_clicked): New function.
8296
8297 2004-01-08  Michael Koch  <konqueror@gmx.de>
8298
8299         * javax/swing/JLayeredPane.java: Revert changes to standard
8300         boilerplate, reworked imports.
8301
8302 2004-01-07  Tom Tromey  <tromey@redhat.com>
8303
8304         PR libgcj/13439:
8305         * verify.cc (state::merge): Copy changed locals out of subroutine
8306         in NO_STACK case.
8307         (state::FLAG_CHANGED): New const.
8308         (state::FLAG_UNUSED): Likewise.
8309         (state::local_changed): Removed.  Updated all users.
8310         (state::flags): New field.
8311         (state::merge): Added jsr_semantics argument, more logic.
8312         (push_jump_merge): Added jsr_semantics argument.
8313         (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
8314         merging through the jsr instruction.
8315
8316 2004-01-07  Tom Tromey  <tromey@redhat.com>
8317
8318         * scripts/MakeDefaultMimeTypes.java: Use \n, not
8319         backslash-newline.
8320
8321 2004-01-07  Graydon Hoare  <graydon@redhat.com>
8322
8323         * java/awt/Container.java (LightweightDispatcher): Implement.
8324         (visitChild): Reuse graphics object.
8325         (dispatchEventImpl): Optionally dispatch to lightweight.
8326         (addNotifyContainerChildren): Build LightweightDispatcher.
8327
8328 2004-01-07  David Jee  <djee@redhat.com>
8329
8330         * java/awt/Container.java
8331         (update): Clear only the clipped region, instead of clearing the
8332         entire Container.
8333         (visitChildren): Visit children in descending order.
8334
8335 2004-01-07  Michael Koch  <konqueror@gmx.de>
8336
8337         * java/lang/reflect/Array.java: Merged documentation with classpath.
8338
8339 2004-01-07  Michael Koch  <konqueror@gmx.de>
8340
8341         * java/text/CollationElementIterator.java
8342         (textIndex): Renamed from index.
8343         * java/text/CollationKey.java
8344         (collator): New member.
8345         (CollationKey): New argument for parent collator.
8346         (equals): Check for same collator, source string and key array.
8347         * java/text/RuleBasedCollator.java:
8348         Reformated.
8349         (RuleBasedCollator): Don't re-initialize frenchAccents with default
8350         value.
8351         (getCollationElementIterator): Rewritten.
8352         (getCollationKey): Added new argument to CollationKey constructor.
8353
8354 2004-01-07  Michael Koch  <konqueror@gmx.de>
8355
8356         * gnu/java/nio/DatagramChannelImpl.java
8357         (blocking): Removed.
8358         (DatagramChannelImpl): Call configureBlocking().
8359         (implConfigureBlocking): Dont initialize blocking.
8360         * gnu/java/nio/ServerSocketChannelImpl.java
8361         (blocking): Removed.
8362         (ServerSocketChannelImpl): Call configureBlocking().
8363         (implConfigureBlocking): Dont initialize blocking.
8364         * gnu/java/nio/SocketChannelImpl.java
8365         (blocking): Removed.
8366         (SocketChannelImpl): Call configureBlocking().
8367         (implConfigureBlocking): Dont initialize blocking.
8368         (connect): Use isBlocking().
8369         * java/nio/channels/spi/AbstractSelectableChannel.java
8370         (configureBlocking): Use blockingLock() instead of LOCK.
8371         Set blocking after successfully called implConfigureBlocking().
8372         (register): Use blockingLock() instead of LOCK.
8373
8374 2004-01-07  Michael Koch  <konqueror@gmx.de>
8375
8376         * java/net/ServerSocket.java (isBound): Fixed documentation.
8377
8378 2004-01-07  Sascha Brawer  <brawer@dandelis.ch>
8379
8380         * javax/swing/DefaultBoundedRangeModel.java: Documented API.
8381         (changeEvent): Create event object on demand.
8382         (DefaultBoundedRangeModel, toString, setValue, setExtent,
8383         setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
8384         fireStateChanged): Re-written.
8385         * javax/swing/event/EventListenerList.java: Reformatted, document
8386         typical usage.
8387         (toString): Implemented.
8388         (getListeners): Re-written.
8389         (remove): Re-written.
8390         (add): Re-written.
8391         (NO_LISTENERS): New singleton field.
8392         (listenerList): Declare as transient; document.
8393         (serialVersionUID): Document.
8394         (getListenerCount(Class)): More efficient implementation,
8395         also accepts null argument.  Improve Javadoc.
8396         (getListenerCount()): Remove unnecessary cast; docfix.
8397         * javax/swing/undo/UndoableEditSupport.java:
8398         Re-format, document.
8399         (UndoableEditSupport): Set realSource field. Improve documentation.
8400         (_postEdit): Iterate over cloned listener vector.
8401         (toString): Don't emit realSource.
8402         (beginUpdate, endUpdate): Support nested updates.
8403         (postEdit): Use compound edit if present.
8404
8405 2004-01-06  Graydon Hoare  <graydon@redhat.com>
8406
8407         * java/awt/Container.java (swapComponents): Add forgotten
8408         function, required for JLayeredPane change.
8409
8410 2004-01-06  Michael Koch  <konqueror@gmx.de>
8411
8412         * java/text/CollationElementIterator.java: Reformated.
8413         (CollationElementIterator): Changed order of arguments.
8414         * java/text/RuleBasedCollator.java
8415         (RuleBasedCollator): Merged class documentation.
8416         (CollationElement): Added documentation.
8417         (compare): Reformated, renamed arguments.
8418         (equals): Likewise.
8419         (getCollationElementIterator): Likewise.
8420         (getCollationKey): Likewise.
8421
8422 2004-01-06  Graydon Hoare  <graydon@redhat.com>
8423
8424         * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
8425
8426 2004-01-06  Michael Koch  <konqueror@gmx.de>
8427
8428         * gnu/java/net/protocol/file/Connection.java:
8429         Reformated copyright.
8430         (hdrHash): Removed.
8431         (hdrVec): Removed.
8432         (gotHeaders): Removed.
8433         (getHeaderField): Removed.
8434         (getHeaderField): Removed.
8435         (getHeaderFieldKey): Removed.
8436         (getKey): Removed.
8437         (getField): Removed.
8438         (getHeaders): Removed.
8439
8440 2004-01-06  Michael Koch  <konqueror@gmx.de>
8441
8442         * javax/print/attribute/standard/DateTimeAtCompleted.java,
8443         javax/print/attribute/standard/DateTimeAtCreation.java,
8444         javax/print/attribute/standard/DateTimeAtProcessing.java,
8445         javax/print/attribute/standard/JobImpressionsCompleted.java,
8446         javax/print/attribute/standard/JobKOctets.java,
8447         javax/print/attribute/standard/JobKOctetsProcessed.java,
8448         javax/print/attribute/standard/JobMediaSheetsCompleted.java,
8449         javax/print/attribute/standard/JobPrioritySupported.java: New files.
8450         * Makefile.am (javax_source_files): Added new files.
8451         * Makefile.in: Regenerated.
8452
8453 2004-01-06  Michael Koch  <konqueror@gmx.de>
8454
8455         * java/net/URLConnection.java
8456         (contentHandler): Removed.
8457         (locale): Removed.
8458         (getHeaderFields): Return an empty map instead of null.
8459         (getContent): Connect if needed, renamed "cType" to "type" and
8460         "contentHandler" to "ch" and made it a local variable.
8461         (getPermission): Don't use package in class name.
8462         (setDefaultRequestProperty): Fixed typo in documentation.
8463         (initializeDateFormats): Made locale a local variable.
8464
8465 2004-01-06  Michael Koch  <konqueror@gmx.de>
8466
8467         * java/lang/Package.java
8468         (getPackage): Get the current class loader directly.
8469         * java/lang/SecurityManager.java
8470         (currentLoadedClass): Dont iterate over class contexts.
8471         (classLoaderDepth): Don't check class loaders if everything is allowed.
8472
8473 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
8474
8475         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8476         (pre_event_handler): Set all insets to 0 when a Configure event
8477         is received for a GtkPlug.
8478         * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
8479         Make handle long, not int.
8480         (EmbeddedWindow()): New constructor.
8481         (EmbeddedWindow(int)): Rename window_id to handle.  Make handle
8482         long, not int.
8483         (setHandle): New method.
8484         (getHandle): Return long, not int.
8485         * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
8486         declaration.
8487         * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
8488         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
8489         (create(long)): Take long parameter, not int.  Cast gtk_plug_new
8490         argument to GdkNativeWindow.
8491         (construct): New method.
8492         (embed): New method.
8493
8494         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
8495         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
8496         (create(int, int)): New method.
8497         (create): Call new create method.
8498         (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
8499         methods.
8500         (childResized): Remove native implementation.  Implement in
8501         Java.
8502         (getHScrollbarHeight, getVScrollbarWidth): Call
8503         gtk_widget_size_request to get scrollbar dimensions.
8504         * java/awt/ScrollPane.java (getViewportSize): Reimplement.  Only
8505         call getVScrollbarWidth and getHScrollbarHeight when vertical
8506         and horizontal scrollbars respectively are needed.
8507         (doLayout): Enlarge child if it is smaller than the viewport.
8508
8509 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
8510
8511         * java/awt/Dialog.java (constructor): Accept null title as per spec.
8512         * java/awt/FileDialog.java (constructor): Throw exception on invalid
8513         argument as per spec.
8514
8515 2004-01-05  Fernando Nasser  <fnasser@redhat.com>
8516
8517         * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
8518         (insert): Ditto.
8519         (remove): Ditto.  Also, Check for valid argument.
8520         (removeAll): Use peer interface method.
8521         * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
8522         native add function.
8523         (nativeRemove): New name for native remove function.
8524         (getHistory): New native function.
8525         (constructor): Generate ItemEvent.
8526         (add): Ditto, if selection is changed.
8527         (remove): Ditto, ditto.
8528         (removeAll): Add implementation.
8529         (handleEvent): Remove.  Dead code.
8530         (choicePostItemEvent): Add comment.
8531         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
8532         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
8533         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
8534         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name.  Add
8535         comments and fix condition to change selection.
8536         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
8537         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name.  Add
8538         remove all capability.
8539         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
8540         (item_activate): Add cast to remove compiler warning.
8541
8542 2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
8543
8544         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
8545         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8546         (getPreferredSize): Call preferredSize.
8547         (preferredSize): Call gtkWidgetGetPreferredDimensions.
8548         (getMinimumSize): Call minimumSize.
8549         (minimumSize): Call gtkWidgetGetPreferredDimensions.
8550         (gtkWidgetGetDimensions): Return the peer widget's current size
8551         request.
8552         (gtkWidgetGetPreferredDimensions): Return the peer widget's
8553         natural size request.
8554
8555 2004-01-05  Sascha Brawer  <brawer@dandelis.ch>
8556
8557         Thanks to Brian Gough <bjg@network-theory.com>
8558         * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
8559         * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
8560
8561 2004-01-04  Matthias Klose  <doko@debian.org>
8562
8563         * aclocal.m4: Rebuilt using "aclocal -I .".
8564         * configure: Rebuilt.
8565
8566 2004-01-03  Per Bothner  <per@bothner.com>
8567
8568         * java/util/Date.java (parse):  Fix a number of problems.
8569         (skipParens):  Remove no-longer-needed method.
8570