OSDN Git Service

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