OSDN Git Service

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