OSDN Git Service

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