1 2004-12-23 Jeroen Frijters <jeroen@frijters.net>
3 * java/awt/color/ICC_Profile.java
4 (finalize): Removed pointless field assignments.
6 2004-12-22 Michael Koch <konqueror@gmx.de>
8 * javax/swing/plaf/basic/BasicEditorPaneUI.java: New file.
9 * Makefile.am: Added javax/swing/plaf/basic/BasicEditorPaneUI.java.
10 * Makefile.in: Regenerated.
12 2004-12-22 Michael Koch <konqueror@gmx.de>
14 * javax/swing/text/DefaultStyledDocument.java: New file.
15 * Makefile.am: Added javax/swing/text/DefaultStyledDocument.java.
16 * Makefile.in: Regenerated.
18 2004-12-22 Michael Koch <konqueror@gmx.de>
20 * javax/swing/JFileChooser.java
21 (showDialog): Return CANCEL_OPTION for now.
22 (showOpenDialog): Likewise.
23 (showSaveDialog): Likewise.
25 2004-12-22 Michael Koch <konqueror@gmx.de>
27 * javax/swing/JApplet.java
28 (HIDE_ON_CLOSE): Removed.
29 (EXIT_ON_CLOSE): Likewise.
30 (DISPOSE_ON_CLOSE): Likewise.
31 (DO_NOTHING_ON_CLOSE): Likewise.
32 (close_action): Likewise.
33 (getDefaultCloseOperation): Likewise.
34 (setDefaultCloseOperation): Likewise.
35 (processWindowEvent): Likewise.
36 (getPreferredSize): Simplified.
37 * javax/swing/JInternalFrame.java
38 (setDefaultCloseOperation): Fixed throwing exception on wrong argument
40 * javax/swing/JWindow.java
41 (HIDE_ON_CLOSE): Removed.
42 (EXIT_ON_CLOSE): Likewise.
43 (DISPOSE_ON_CLOSE): Likewise.
44 (DO_NOTHING_ON_CLOSE): Likewise.
45 (close_action): Likewise.
46 (processKeyEvent): Likewise.
47 (setDefaultCloseOperation): Likewise.
48 (getPreferredSize): Simplified.
50 2004-12-22 Michael Koch <konqueror@gmx.de>
52 * javax/swing/JTextField.java
53 (getPreferredSize): Re-implemented.
55 2004-12-22 Michael Koch <konqueror@gmx.de>
57 * javax/swing/JLabel.java
58 (setDisplayedMnemonic): Use only upper case characters.
59 (setDisplayedMnemonicIndex): Handle index == -1 and fire
60 PropertyChangeEvent after property got set to the new index.
62 2004-12-22 Robert Schuster <thebohemian@gmx.net>
64 * javax/swing/JComboBox.java:
65 (JComboBox): Removed selection of the
66 first item in the model.
68 2004-12-22 Robert Schuster <thebohemian@gmx.net>
70 * javax/swing/JComboBox.java
71 added support for no item being selected
72 (JComboBox): select first or nothing depending on element count
73 (setModel): cleaned up unneeded "this." usage, added more
74 docs, made exception behavior match that of the JDK
75 (setLighWeightPopupEnabled): removed unneeded "this." usage
77 (setMaximumRowCount): dito
79 (setPrototypeDisplayValue): dito
80 (getSelectedItem): simplified, added more user doc
81 (setSelectedIndex): corrected exception behavior, added more user doc
82 (getSelectedIndex): fixed hardcoded dependency on DefaultComboBoxModel,
83 added performance warning to user doc
84 (addItem): fixed exception behavior, added user doc
88 (removeAll): fixed exception behavior, added user doc, added support
89 for model not being instance of DefaultComboBoxModel
90 (getSelectedItemObjects): simplified
91 (getItemCount): fixed dependency on DefaultComboBoxModel
92 (getItemAt): fixed dependency on MutableComboBoxModel
93 * javax/swing/DefaultComboBoxModel.java:
94 (setSelectedItem): updates selected item only if new
95 value is null or known (match JDK behavior)
96 * javax/swing/plaf/basic/BasicComboBoxUI.java:
97 (paintCurrentValue): renders "" if no item is selected
99 2004-12-22 Michael Koch <konqueror@gmx.de>
101 * javax/swing/plaf/metal/MetalTheme.java,
102 javax/swing/plaf/metal/DefaultMetalTheme.java:
104 * javax/swing/plaf/metal/MetalLookAndFeel.java
105 * Makefile.am: Added the new files.
106 * Makefile.in: Regenerated.
108 2004-12-22 Olga Rodimina <rodimina@redhat.com>
110 * javax/swing/JTable.java
111 (editorComp): New field.
112 (JTable): Initialize local variables and call updateUI
113 (selectionBackground): Make protected.
114 (selectionForeground): Likewise.
115 (initializeLocalVars): Create default editors and renderers,
116 initialize editingColumn, editingRow variables.
117 (createDefaultEditors): New Method.
118 (createDefaultRenderers): Likewise.
119 (createDefaultListSelectionModel): Removed
120 (createDefaultSelectionModel): New Method.
121 (createDefaultTableHeader): Likewise
122 (removeColumn): Likewise.
123 (getEditingColumn): Likewise.
124 (setEditingColumn): Likewise.
125 (getEditingRow): Likewise.
126 (setEditingRow): Likewise.
127 (getEditorComponent): Likewise.
128 (isEditing): Likewise.
129 (setDefaultEditor): Likewise.
130 (addColumnSelectionInterval): Likewise.
131 (addRowSelectionInterval): Likewise.
132 (setColumnSelectionInterval): Likewise.
133 (setRowSelectionInterval): Likewise.
134 (removeColumnSelectionInterval): Likewise.
135 (removeRowSelectionInterval): Likewise.
136 (isColumnSelected): Likewise.
137 (isRowSelected): Likewise.
138 (isCellSelected): Likewise.
139 (selectAll): Likewise.
141 2004-12-17 Michael Koch <konqueror@gmx.de>
143 * javax/swing/JTable.java
144 (addColumn): New method.
145 (getColumnClass): Likewise.
146 (getColumnName): Likewise.
148 2004-12-17 Paul Jenner <psj.home@ntlworld.com>
150 * javax/swing/TransferHandler.java
151 (createTransferable): Made protected.
153 2004-12-16 Michael Koch <konqueror@gmx.de>
155 * javax/swing/JTable.java,
156 javax/swing/plaf/basic/BasicTableHeaderUI.java,
157 javax/swing/plaf/basic/BasicTableUI.java:
158 Use fixed get/setIntercellSpacing() methods.
160 2004-12-16 Michael Koch <konqueror@gmx.de>
162 * javax/swing/JTable.java
163 (getIntercellSpacing): Fixed typo in method name.
164 (setIntercellSpacing): Likewise.
166 2004-12-16 Michael Koch <konqueror@gmx.de>
168 * javax/swing/text/JTextComponent.java
169 (focusAccelerator): New variable.
170 (getFocusAccelerator): New method.
171 (setFocusAccelerator): Likewise.
173 2004-12-15 Michael Koch <konqueror@gmx.de>
175 * javax/swing/JComponent.java
176 (setTransferHandler): Made public. Fire property change event.
177 * javax/swing/TransferHandler.java: Implemented.
178 * javax/swing/text/JTextComponent.java
179 (DefaultTransferHandler): New inner class.
180 (defaultTransferHandler): New variable.
184 (doTransferAction): Likewise.
186 2004-12-14 Michael Koch <konqueror@gmx.de>
188 * javax/swing/JTree.java
189 (collapsePath): New method.
190 (collapseRow): Likewise.
191 (expandPath): Likewise.
192 (expandRow): Likewise.
193 (checkExpandParents): Likewise.
194 (doExpandParents): Likewise.
195 (setExpandedState): Likewise.
196 (makeVisible): Likewise.
198 2004-12-13 Michael Koch <konqueror@gmx.de>
200 * javax/swing/JPasswordField.java: Updated javadocs.
202 2004-12-13 Michael Koch <konqueror@gmx.de>
204 * javax/swing/JLayeredPane.java
205 (getLayer): Fixed return type, made public.
206 (getPosition): Use new getLayer().
207 (SetPosition): Likewise.
208 (getIndexOf): Likewise.
210 * javax/swing/JInternalFrame.java
211 (getLayer): Use new JLayeredPane.getLayer().
214 2004-12-13 Michael Koch <konqueror@gmx.de>
216 * javax/swing/table/TableColumn.java: Added/fixed javadocs over all.
217 (setHeaderValue): Simplified. Do nothing when old value == new value.
219 2004-12-08 Thomas Fitzsimmons <fitzsim@redhat.com>
221 * gnu/java/awt/peer/gtk/GdkGraphics.java (setClip): Protect
222 against null clip region.
223 * gnu/java/awt/peer/gtk/GtkFramePeer.java (create): Call
224 gtkWindowSetResizable.
225 (postConfigureEvent): Only revalidate if frame size has changed.
226 * gnu/java/awt/peer/gtk/GtkWindowPeer.java (postConfigureEvent):
227 Only revalidate if frame size has changed.
228 * java/awt/Component.java (reshape): Only repaint and post
229 component events if component is showing.
230 * java/awt/Container.java (addImpl): Only post container event if
231 container is showing.
233 * java/awt/Window.java (setLocationRelativeTo): Implement.
234 (setBoundsCallback): Only post component events if component is
236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (clearRect):
237 Protect against null graphics structure. Flush gdk event queue.
239 2004-12-07 Michael Koch <konqueror@gmx.de>
241 * javax/imageio/ImageReader.java,
242 javax/imageio/ImageTranscoder.java,
243 javax/imageio/ImageWriter.java,
244 javax/imageio/spi/ImageInputStreamSpi.java,
245 javax/imageio/spi/ImageOutputStreamSpi.java,
246 javax/imageio/spi/ServiceRegistry.java,
247 javax/imageio/stream/ImageInputStream.java,
248 javax/imageio/stream/ImageOutputStream.java: Updated.
249 * javax/imageio/IIOException.java,
250 javax/imageio/IIOImage.java,
251 javax/imageio/IIOParam.java,
252 javax/imageio/IIOParamController.java,
253 javax/imageio/ImageIO.java,
254 javax/imageio/ImageReadParam.java,
255 javax/imageio/ImageTypeSpecifier.java,
256 javax/imageio/ImageWriteParam.java,
257 javax/imageio/spi/IIORegistry.java,
258 javax/imageio/spi/ImageReaderSpi.java,
259 javax/imageio/spi/ImageWriterSpi.java,
260 javax/imageio/stream/FileCacheImageInputStream.java,
261 javax/imageio/stream/FileCacheImageOutputStream.java,
262 javax/imageio/stream/FileImageInputStream.java,
263 javax/imageio/stream/FileImageOutputStream.java,
264 javax/imageio/stream/ImageInputStreamImpl.java,
265 javax/imageio/stream/ImageOutputStreamImpl.java,
266 javax/imageio/stream/MemoryCacheImageInputStream.java,
267 javax/imageio/stream/MemoryCacheImageOutputStream.java,
268 javax/imageio/event/IIOReadProgressListener.java,
269 javax/imageio/event/IIOReadUpdateListener.java,
270 javax/imageio/event/IIOReadWarningListener.java,
271 javax/imageio/event/IIOWriteProgressListener.java,
272 javax/imageio/event/IIOWriteWarningListener.java,
273 javax/imageio/metadata/IIOMetadata.java,
274 javax/imageio/metadata/IIOMetadataController.java,
275 javax/imageio/metadata/IIOMetadataFormat.java,
276 javax/imageio/metadata/IIOInvalidTreeException.java,
277 javax/imageio/metadata/IIOMetadataFormatImpl.java,
278 javax/imageio/metadata/IIOMetadataNode.java: New files.
279 * Makefile.am (javax_source_files): Added new files
280 * Makefile.in: Regenerated.
282 2004-12-06 Graydon Hoare <graydon@redhat.com>
284 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
285 Rework painting into BufferedImages
286 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java:
287 Construct BufferedImage with alpha only when alpha is
288 present in colormodel.
289 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
290 Rework painting into client-side jint arrays.
291 * jni/gtk-peer/gtkcairopeer.h:
294 2004-12-06 Michael Koch <konqueror@gmx.de>
296 * javax/swing/DefaultListCellRenderer.java
297 (serialVersionUID): Made private.
298 (getListCellRendererComponent): Set horizontal alignment.
299 * javax/swing/JLabel.java
300 (setVerticalAlignment): Re-implemented.
301 (setHorizontalAlignment): Do nothing if old value = new value.
302 * javax/swing/JList.java
303 (setCellRenderer): Likewise.
304 (setModel): Re-implemented.
305 (setSelectionModel): Likewise.
307 2004-12-06 David Gilbert <david.gilbert@object-refinery.com>
309 * java/awt/Component.java,
310 java/awt/geom/Rectangle2D.java:
313 2004-12-01 Michael Koch <konqueror@gmx.de>
315 * javax/swing/AbstractListModel.java
316 (fireContentsChanged): Simplified.
317 (fireIntervalAdded): Likewise.
318 (fireIntervalRemoved): Likewise.
319 * javax/swing/DefaultSingleSelectionModel.java:
321 (fireStateChanged): Simplified.
322 * javax/swing/JPopupMenu.java
323 (setSelectionModel): Set property.
325 2004-12-01 Michael Koch <konqueror@gmx.de>
327 * java/awt/print/Book.java: Reformatted.
329 2004-12-01 Michael Koch <konqueror@gmx.de>
331 * java/awt/geom/Area.java
332 (QuadSegment.curveArea): Remove unused variables.
333 (CubicSegment.curveArea): Likewise.
335 2004-12-01 Michael Koch <konqueror@gmx.de>
337 * javax/swing/JTree.java
338 (ANCHOR_SELECTION_PATH_PROPERTY): Added @since tag.
339 (LEAD_SELECTION_PATH_PROPERTY): Likewise.
340 (EXPANDS_SELECTED_PATHS_PROPERTY): Likewise.
341 (EXPANDED): New constant.
342 (COLLAPSED): Likewise.
343 (nodeStates): New field.
344 (cellEditor): New method.
345 (cellRenderer): Likewise.
346 (selectionModel): Likewise.
347 (treeModel): Likewise.
348 (scrollPathToVisible): Likewise.
349 (scrollRowToVisible): Likewise.
350 (isCollapsed): Likewise.
351 (isExpanded): Likewise.
352 (clearToggledPaths): Likewise.
353 (getDescendantToggledPaths): Likewise.
354 (hasBeenExpanded): Likewise.
355 (isVisible): Likewise.
356 (isPathEditable): Likewise.
358 2004-12-01 Michael Koch <konqueror@gmx.de>
360 * javax/swing/JLayeredPane.java: Reformatted.
362 2004-11-30 Michael Koch <konqueror@gmx.de>
364 * javax/swing/tree/DefaultMutableTreeNode.java:
366 * javax/swing/tree/MutableTreeNode.java:
369 2004-11-30 Michael Koch <konqueror@gmx.de>
371 * javax/swing/JFormattedTextField.java
372 (setDocument): Call setDocument of super class. Don't fire property
375 2004-11-29 Sven de Marothy <sven@physto.se>
377 * java/awt/image/IndexColorModel.java:
378 Add FIXME with respect to alpha handling.
379 (getAlpha): Default to returning opaque pixels.
380 * java/awt/image/MultiPixelPackedSampleModel.java
381 (MultiPixelPackedSampleModel): Corrected parameters, order of
382 bit shifts and masks, stride length off by one.
384 2004-11-26 Michael Koch <konqueror@gmx.de>
386 * javax/swing/JList.java, javax/swing/JTree.java:
387 Added much new methods and fixed much methods setting bound properties.
389 2004-11-15 Thomas Fitzsimmons <fitzsim@redhat.com>
391 * gnu/java/awt/peer/gtk/GdkGraphics.java (drawImage variants):
392 Update image observer.
393 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage):
394 Start image production.
395 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Protect
396 against negative menu bar widths.
397 (setBounds): Likewise.
398 (postConfigureEvent): Likewise.
399 * gnu/java/awt/peer/gtk/GtkImage.java (imageComplete): Don't
400 remove consumer unless only a single frame has completed.
401 * gnu/java/awt/peer/gtk/GtkImagePainter.java (GtkImagePainter):
402 Add observer parameter.
403 (setPixels): Update image observer.
404 (imageComplete): Likewise.
405 * java/applet/Applet.java (width): New field.
407 (setStub): Set size if width or height field has been set.
408 (resize): If stub is null save width and height values.
409 * java/awt/Component.java (reshape): Protect against null
411 * java/awt/image/MemoryImageSource.java
412 (MemoryImageSource(int,int,ColorModel,byte[],int,int)):
414 (MemoryImageSource(int,int,ColorModel,int[],int,int)):
416 (MemoryImageSource(int,int,ColorModel,byte[],int,int,Hashtable)):
417 Reference pixel array directly, rather than creating a local
419 (MemoryImageSource(int,int,ColorModel,int[],int,int,Hashtable)):
421 (newPixels(int,int,int,int)): Fix for loop and array copy
423 (newPixels(int,int,int,int,boolean)): Likewise.
424 (startProduction): If animated call imageComplete with
426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Uncomment
428 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
429 (drawPixels): Return if g is null or g->drawable is not a gdk
432 2004-11-23 Michael Koch <konqueror@gmx.de>
434 * javax/swing/DefaultSingleSelectionModel.java,
435 javax/swing/JPasswordField.java,
436 javax/swing/tree/AbstractLayoutCache.java:
437 Reformatted and javadocs cleaned up.
439 2004-11-23 Michael Koch <konqueror@gmx.de>
441 * java/awt/Component.java:
442 Fixed argument names to match javadocs.
443 (setFont): Rewritten set property first and then fire event.
444 (setLocale): Likewise.
445 * javax/swing/text/JTextComponent.java
446 (setEditable): Likewise.
448 2004-11-22 Jerry Quinn <jlquinn@optonline.net>
450 * java/awt/Button.java
451 (AccessibleAWTButton.getAccessibleActionDescription): Explain the
454 2004-11-21 Jerry Quinn <jlquinn@optonline.net>
456 * java/awt/Checkbox.java: Remove stub comments.
458 2004-11-21 Jerry Quinn <jlquinn@optonline.net>
460 * java/awt/Button.java
461 (AccessibleAWTButton.getAccessibleActionDescription): Return
464 2004-11-21 Michael Koch <konqueror@gmx.de>
466 * java/awt/CardLayout.java:
467 Made some constants static.
468 (serialVersionUID): Made private.
469 (addLayoutComponent): Simplified code.
470 * java/awt/event/InputEvent.java
471 (getModifiersEx): Added missing @param tag.
472 * java/awt/image/RGBImageFilter.java
473 (filterRGBPixels): Reformatted, removed wrong @param tag.
475 2004-11-21 Michael Koch <konqueror@gmx.de>
477 * javax/swing/text/FieldView.java,
478 javax/swing/text/JTextComponent.java:
481 2004-11-21 Michael Koch <konqueror@gmx.de>
483 * javax/swing/BorderFactory.java
484 (BorderFactory): Added private constructor.
485 * javax/swing/SwingUtilities.java
486 (SwingUtilities): Likewise.
487 (computeStringWidth): New method.
489 2004-11-21 Michael Koch <konqueror@gmx.de>
491 * java/awt/color/ICC_Profile.java
492 (icSigNamedColorTag): Removed.
493 * java/awt/datatransfer/DataFlavor.java
494 (isMimeTypeEqual): Made final.
495 * java/awt/image/AffineTransformOp.java:
497 (TYPE_BICUBIC): Added @since tag.
499 2004-11-19 Jerry Quinn <jlquinn@optonline.net>
501 * java/awt/Checkbox.java (AccessibleAWTCheckBox): Remove todo
504 2004-11-19 Jerry Quinn <jlquinn@optonline.net>
506 * java/awt/Checkbox.java (itemStateChanged): Implement function.
507 (getAccessibleContext): Add AccessibleAWTCheckBox to item listeners.
509 2004-11-18 Sven de Marothy <sven@physto.se>
511 * java/awt/Polygon.java (contains): Reimplemented.
513 2004-11-17 Michael Koch <konqueror@gmx.de>
515 * java/awt/print/PrinterJob.java: Reformatted.
517 2004-11-17 Michael Koch <konqueror@gmx.de>
519 * java/awt/image/AffineTransformOp.java,
520 java/awt/image/ColorConvertOp.java,
521 java/awt/image/LookupOp.java,
522 java/awt/image/RescaleOp.java:
523 Added final keywords where they belong.
525 2004-11-17 Michael Koch <konqueror@gmx.de>
527 * java/awt/CardLayout.java,
528 java/awt/Component.java,
530 java/awt/image/SinglePixelPackedSampleModel.java:
531 Fixed javadocs and argument names all over.
533 2004-11-17 Michael Koch <konqueror@gmx.de>
535 * java/awt/image/DataBufferShort.java: Fixed file header.
536 * java/awt/image/DataBufferUShort.java: Likewise.
537 (DataBufferUShort): Throw NullPointerException if dataArray is null.
539 2004-11-17 Sven de Marothy <sven@physto.se>
541 * java/awt/geom/Arc2D.java
542 (setAngleStart): Corrected (wrong sign on atan2 y parameter).
543 (setAngles): Likewise.
544 (containsAngle): Return false on zero extent, don't include
546 (contains): Treat OPEN-type arcs like CHORD ones, not as PIE
549 2004-11-16 Sven de Marothy <sven@physto.se>
551 * java/awt/geom/AffineTransform.java,
552 (inverseTransform): Fixed bug and simplified code.
553 (createTransformedShape): Return null on null parameter.
555 2004-11-16 Michael Koch <konqueror@gmx.de>
557 * java/awt/color/ICC_ColorSpace.java,
558 java/awt/color/ICC_Profile.java,
559 java/awt/color/ICC_ProfileGray.java,
560 java/awt/color/ICC_ProfileRGB.java:
561 Re-indent copyright header to be standardish.
562 * java/awt/datatransfer/StringSelection.java:
564 * java/awt/geom/Area.java
565 (EPSILON): Made static.
566 (RS_EPSILON): Likewise.
567 (PE_EPSILON): Likewide.
569 2004-11-16 Sven de Marothy <sven@physto.se>
571 * javax/swing/SwingUtilities.java:
572 (computeDifference): Implemented
573 (computeIntersection): Likewise
574 (computeUnion): Likewise
575 (isRectangleContainingRectangle): Likewise
577 2004-11-16 Michael Koch <konqueror@gmx.de>
579 * java/awt/BasicStroke.java,
580 java/awt/Button.java,
581 java/awt/Canvas.java,
582 java/awt/CheckboxMenuItem.java,
583 java/awt/Container.java,
584 java/awt/EventQueue.java,
585 java/awt/FileDialog.java,
586 java/awt/FlowLayout.java,
587 java/awt/FontMetrics.java,
588 java/awt/Graphics.java,
589 java/awt/GridLayout.java,
590 java/awt/KeyboardFocusManager.java,
592 java/awt/LayoutManager2.java,
594 java/awt/MenuBar.java,
595 java/awt/Scrollbar.java,
596 java/awt/Toolkit.java,
597 java/awt/Window.java,
598 java/awt/datatransfer/DataFlavor.java,
599 java/awt/datatransfer/FlavorTable.java,
600 java/awt/event/ActionListener.java,
601 java/awt/event/HierarchyBoundsAdapter.java,
602 java/awt/geom/Arc2D.java,
603 java/awt/geom/Rectangle2D.java,
604 java/awt/geom/RectangularShape.java,
605 java/awt/im/spi/InputMethod.java,
606 java/awt/image/ByteLookupTable.java,
607 java/awt/image/ColorModel.java,
608 java/awt/image/DirectColorModel.java,
609 java/awt/image/ShortLookupTable.java,
610 java/awt/print/Book.java:
611 Fixed javadocs and method argument names all over.
613 2004-11-16 Michael Koch <konqueror@gmx.de>
615 * gnu/java/awt/peer/gtk/GdkFontPeer.java
616 (buildString): Optimise String building.
618 2004-11-15 Jerry Quinn <jlquinn@optonline.net>
620 * java/awt/TextArea.java (AccessibleAWTTextArea,
621 getAccessibleContext): Implement.
622 * java/awt/TextField.java (AccessibleAWTTextField,
623 getAccessibleContext): Implement.
625 2004-11-15 Tom Tromey <tromey@redhat.com>
627 * Makefile.in: Rebuilt.
628 * Makefile.am (jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.lo):
631 2004-11-15 Jerry Quinn <jlquinn@optonline.net>
633 * java/awt/Menu.java (AccessibleAWTMenu, getAccessibleContext):
635 * java/awt/PopupMenu.java (AccessibleAWTMenu, getAccessibleContext):
638 2004-11-15 Jerry Quinn <jlquinn@optonline.net>
640 * java/awt/print/PrinterJob.java (lookupPrintServices,
641 getPrintService, setPrintService): Implement.
642 (lookupStreamPrintServices): Add commented out implementation.
643 (printer): New field.
645 2004-11-14 Mark Wielaard <mark@klomp.org>
647 * javax/swing/ToolTipManager.java (mouseMoved): Set currentComponent
650 2004-11-11 Sven de Marothy <sven@physto.se>
652 * java/awt/geom/GeneralPath.java (evaluateCrossings):
653 Fixed epsilon value, should always be nonzero.
655 2004-11-11 Paul Jenner <psj.home@ntlworld.com>
657 * java/awt/image/Raster.java
658 (createPackedRaster): Implemented.
660 2004-11-11 Graydon Hoare <graydon@redhat.com>
662 * javax/swing/plaf/basic/BasicTextUI.java:
663 Listen to focus events, indicate focus via caret.
664 * javax/swing/text/GapContent.java (getString): Return substring.
665 * javax/swing/text/PlainDocument.java (reindex): New method.
666 (createDefaultRoot): Call it.
667 (insertUpdate): Likewise.
668 (removeUpdate): Likewise.
669 * javax/swing/text/Utilities.java (drawTabbedText): Always advance
670 on tab and newline, even if no painting happens.
672 2004-11-10 Thomas Fitzsimmons <fitzsim@redhat.com>
674 * Makefile.am: List peer JNI header: Java source file
675 dependencies explicitly. Likewise for JNI .lo: JNI header
677 * Makefile.in: Regenerate.
679 2004-11-10 Graydon Hoare <graydon@redhat.com>
681 * Makefile.am: Add entry for BasicTextPaneUI.java
682 * Makefile.in: Regenerate.
683 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
684 (GdkGraphics2D): Set clip after transform.
685 (drawImage): Protect against null image.
686 * gnu/java/awt/peer/gtk/GtkFramePeer.java
687 (setIconImage): Protect against non-GtkImage args.
688 * gnu/java/awt/peer/gtk/GtkToolkit.java
689 (checkImage): Protect against non-GtkImage args.
690 * java/awt/print/PrinterJob.java:
691 (print): Add variant taking PrintRequestAttributeSet.
692 (printDialog): Likewise.
693 * javax/swing/JComponent.java:
694 (transferHandler): New field.
695 (getComponentGraphics): Build new Graphics for each sub-paint.
696 (getTransferHandler): New method.
697 (setTransferHandler): New method.
698 * javax/swing/JDesktopPane.java
699 (setDragMode): Force LIVE_DRAG_MODE.
700 * javax/swing/JMenuItem.java
701 (menuSelectionChanged): Protect against null parent.
702 * javax/swing/JTable.java (setDefaultRenderer): New method.
703 * javax/swing/JTree.java: Get basic ctors and UI working.
704 * javax/swing/JViewport.java (JViewport): Set scroll mode.
705 * javax/swing/RepaintManager.java
706 (addDirtyRegion): Skip empty regions.
707 * javax/swing/ScrollPaneLayout.java (minimumLayoutSize): Do not
708 bound scrollpane minimum by central view minimum.
709 * javax/swing/ToolTipManager.java
710 (showTip): Guard against null component.
711 * javax/swing/TransferHandler.java: Stub out.
712 * javax/swing/plaf/basic/BasicLookAndFeel.java:
713 Add entry for TextPaneUI, change Tree icons to pngs.
714 * javax/swing/plaf/basic/BasicMenuItemUI.java:
715 (installDefaults): Set text position and alignment.
716 (paintMenuItem): Layout icon with normal compound function.
717 * javax/swing/plaf/basic/BasicTableHeaderUI.java:
718 (getMaximumSize): Delete.
719 (getMinimumSize): Delete.
720 (getPreferredSize): Use column model's total width.
721 * javax/swing/plaf/basic/BasicTextPaneUI.java: New file.
722 * javax/swing/plaf/basic/BasicTextUI.java
723 (modelChanged): Make resilient against nulls.
724 * javax/swing/plaf/basic/BasicTreeUI.java:
725 Add some simplistic config / painting functions.
726 * javax/swing/plaf/basic/BasicViewportUI.java
727 (paintSimple): Add new non-backingstore paint mode.
728 (paintBackingStore): Split out backing store code.
729 (paint): Switch on painting mode.
730 * javax/swing/text/SimpleAttributeSet.java
731 (SimpleAttributeSet): Resist nulls.
732 * javax/swing/tree/DefaultTreeCellRenderer.java: Implement.
733 * javax/swing/tree/DefaultTreeModel.java: Partially implement.
735 2004-11-09 Thomas Fitzsimmons <fitzsim@redhat.com>
737 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (setFont):
738 Set pango context's description and language.
740 2004-11-07 Mark Wielaard <mark@klomp.org>
742 * java/awt/image/LookupOp.java: Comments and indentation fixes.
744 2004-11-07 Jerry Quinn <jlquinn@optonline.net>
746 * java/awt/Checkbox.java (AccessibleAWTCheckBox): Implement.
747 (getAccessibleContext): Implement.
749 2004-11-07 Jerry Quinn <jlquinn@optonline.net>
751 * java/awt/TextComponent.java (AccessibleAWTTextComponent):
753 (getIndexAtPoint, getCharacterBounds): New methods.
755 2004-11-07 Jerry Quinn <jlquinn@optonline.net>
757 * java/awt/Button.java (AccessibleAWTButton): Implement.
759 2004-11-07 Mark Wielaard <mark@klomp.org>
761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
762 (filenameFilterCallback): Made static.
764 2004-11-07 Michael Koch <konqueror@gmx.de>
766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
767 (cairoShowGlyphs) Removed.
769 2004-11-07 Sven de Marothy <sven@physto.se>
771 * gnu/java/awt/color/RgbProfileConverter.java (RgbProfileConverter):
772 Don't invert matrix when reverse CLUT is available.
773 * gnu/java/awt/color/LinearRGBConverter.java: Documentation update.
774 * java/awt/color/ICC_ColorSpace.java: Likewise.
775 * java/awt/color/ICC_Profile.java: Likewise.
776 * java/awt/color/ICC_ProfileGray.java: Likewise.
777 * java/awt/color/ICC_ProfileRGB.java: Likewise.
779 2004-11-07 Jerry Quinn <jlquinn@optonline.net>
781 * java/awt/MenuItem.java (AccessibleAWTMenuItem): Implement.
783 2004-11-07 Jerry Quinn <jlquinn@optonline.net>
785 * java/awt/Choice.java (AccessibleAWTChoice): Implement.
787 2004-11-06 Jerry Quinn <jlquinn@optonline.net>
789 * java/awt/image/BandedSampleModel.java (scanlineStride): Remove
790 field hiding ComponentSampleModel.scanlineStride.
792 2004-11-06 Noa Resare <noa@resare.com>
794 * java/awt/geom/GeneralPath.java (currentSegment):
795 Fix typo in transform.transform() invocation.
797 2004-11-06 Sven de Marothy <sven@physto.se>
799 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
800 (createImage): Created bitmap should be filled with bg color
802 2004-11-06 Noa Resare <noa@resare.com>
804 * java/awt/Choice.java (add):
805 Implement correct selection behavior when peer == null.
809 2004-11-06 Mark Wielaard <mark@klomp.org>
811 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (GtkChoicePeer):
812 Call select() when Choice has a selected item.
814 2004-11-06 Michael Koch <address@bogus.example.com>
816 * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
817 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c,
818 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
819 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c,
820 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
821 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
822 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
823 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
824 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c,
825 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
826 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
827 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
828 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c,
829 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
830 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
831 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
832 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
833 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
834 Fixed method names to start at begin of line. This is desired by GNU
837 2004-11-06 Michael Koch <konqueror@gmx.de>
839 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
840 (gtkWidgetSetVisible): Unused. Removed.
841 (connectJObject): Likewise.
842 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
843 (gtkScrolledWindowSetScrollPosition): Commented out.
845 2004-11-06 Mark Wielaard <mark@klomp.org>
847 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c
848 (Java_gnu_java_awt_peer_gtk_GdkTextLayout_setText): Installed and
849 renamed from Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setText.
851 2004-11-06 Mark Wielaard <mark@klomp.org>
853 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c
854 (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setText): Removed.
855 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
856 (init_dpi_conversion_factor): Correct prototype.
858 2004-11-06 Sven de Marothy <sven@physto.se>
860 * java/awt/image/ConvolveOp.java: Added missing
863 2004-11-06 Robert Schuster <theBohemian@gmx.net>
866 * gnu/java/beans/IntrospectionIncubator.java:
867 (addMethod): static methods are discarded now, too.
869 2004-11-06 Mark Wielaard <mark@klomp.org>
871 * Makefile.am (awt_java_source_files): Add new gnu/java/awt/color
873 * Makefile.in: Regenerated.
875 2004-11-06 Sven de Marothy <sven@physto.se>
877 * gnu/java/awt/color/CieXyzConverter.java,
878 gnu/java/awt/color/GrayScaleConverter.java,
879 gnu/java/awt/color/SrgbConverter.java,
880 gnu/java/awt/color/ClutProfileConverter.java,
881 gnu/java/awt/color/LinearRGBConverter.java,
882 gnu/java/awt/color/TagEntry.java,
883 gnu/java/awt/color/ColorLookUpTable.java,
884 gnu/java/awt/color/ProfileHeader.java,
885 gnu/java/awt/color/ToneReproductionCurve.java,
886 gnu/java/awt/color/ColorSpaceConverter.java,
887 gnu/java/awt/color/PyccConverter.java,
888 gnu/java/awt/color/GrayProfileConverter.java,
889 gnu/java/awt/color/RgbProfileConverter.java:
891 * java/awt/color/ICC_ColorSpace.java,
892 java/awt/color/ICC_Profile.java,
893 java/awt/color/ICC_ProfileGray.java,
894 java/awt/color/ICC_ProfileRGB.java:
895 Implemented (sans PhotoYCC color space).
897 2004-11-06 Jerry Quinn <jlquinn@optonline.net>
899 * java/awt/image/AffineTransformOp.java (filter): Implement
900 bilinear interpolation for Rasters.
902 2004-11-06 Jerry Quinn <jlquinn@optonline.net>
904 * java/awt/image/IndexColorModel.java (IndexColorModel): Actually
905 use the provided colormap. Throw documented exceptions. Document
908 2004-11-06 Paul Jenner <psj.home@ntlworld.com>
910 * java/awt/image/IndexColorModel.java (IndexColorModel): Fix
913 2004-11-03 Jerry Quinn <jlquinn@optonline.net>
915 * java/awt/image/AffineTransformOp.java: Add TYPE_BICUBIC.
917 2004-11-02 Jerry Quinn <jlquinn@optonline.net>
919 * java/awt/image/AffineTransformOp.java (filter): Implement Raster
922 2004-11-02 Jerry Quinn <jlquinn@optonline.net>
924 * java/awt/image/ComponentSampleModel.java (getDataElements,
925 setDataElements): Implement SHORT, FLOAT, and INT transfer types.
927 2004-11-02 Thomas Fitzsimmons <fitzsim@redhat.com>
929 * java/awt/Font.java (name): New field.
933 2004-11-01 Jerry Quinn <jlquinn@optonline.net>
935 * java/awt/image/Raster.java (createBandedRaster): Implement.
937 2004-11-01 Jerry Quinn <jlquinn@optonline.net>
939 * java/awt/image/ConvolveOp.java: New class.
940 * Makefile.am: Add ConvolveOp.
941 * Makefile.in: Regenerate.
943 2004-11-01 Jerry Quinn <jlquinn@optonline.net>
945 * java/awt/image/RescaleOp.java (BandCombineOp, ColorConvertOp,
946 LookupOp, RescaleOp): Fix loop bounds.
948 2004-11-01 jlquinn <jlquinn@optonline.net>
950 * Makefile.am: Fix typo in BandCombineOp.
951 * Makefile.in: Regenerate.
953 2004-10-31 Jerry Quinn <jlquinn@optonline.net>
955 * java/awt/image/BandCombineOp.java: New class.
956 * Makefile.am: Add BandCombineOp.
957 * Makefile.in: Regenerate.
959 2004-10-31 Jerry Quinn <jlquinn@optonline.net>
961 * java/awt/image/LookupOp.java: New class.
962 * Makefile.am: Add LookupOp.
963 * Makefile.in: Regenerate.
965 2004-10-31 Jerry Quinn <jlquinn@optonline.net>
967 * java/awt/image/SampleModel.java (createSubsetSampleModel): Add
970 2004-10-28 Jerry Quinn <jlquinn@optonline.net>
972 * java/awt/image/ColorModel.java (cloneColorModel): Fix line
973 wrap. Use Boolean.valueOf.
975 2004-10-28 Michael Koch <konqueror@gmx.de>
977 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
978 (releasePeerGraphicsResource): Fixed typo in method name.
979 * gnu/java/awt/peer/gtk/GdkFontPeer.java
980 (finalize): Fixed typo in releasePeerGraphicsResource.
982 2004-10-28 Michael Koch <konqueror@gmx.de>
984 * java/awt/font/TextAttribute.java
985 (RUN_DIRECTION_LTR): Initialie with static value instead of
987 (RUN_DIRECTION_RTL): Likewise.
988 (STRIKETHROUGH_ON): Likewise.
989 (SWAP_COLORS_ON): Likewise.
991 2004-10-28 Jerry Quinn <jlquinn@optonline.net>
993 * java/awt/image/ColorConvertOp.java: New class.
994 * java/awt/image/ColorModel.java (cloneColorModel): New method.
995 * Makefile.am: Add ColorConvertOp.
996 * Makefile.in: Regenerate.
998 2004-10-27 Thomas Fitzsimmons <fitzsim@redhat.com>
1000 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
1001 Track Window focus owner on FOCUS_GAINED events.
1003 2004-10-26 Thomas Fitzsimmons <fitzsim@redhat.com>
1005 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
1006 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1008 2004-10-26 Andreas Tobler <a.tobler@schweiz.ch>
1010 * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c
1011 (Java_gnu_java_awt_peer_gtk_GThreadNativeMethodRunner_nativeRun):
1012 Fix pointer warning.
1014 2004-10-25 Andreas Tobler <a.tobler@schweiz.ch>
1016 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1017 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFilenameFilter):
1018 Fix pointer warning.
1020 * jni/gtk-peer/gtkpeer.h: Introduce widget_union to fix type punned
1022 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1023 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect): Use widget_union
1024 to fix type punned pointer warning.
1025 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
1028 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1029 (window_get_new_state): Introduce unions to fix warnings as above.
1030 (window_property_changed_cb): Likewise.
1031 (window_active_state_change_cb): Mark unused variables unused.
1032 (window_focus_state_change_cb): Likewise.
1033 (window_focus_in_cb): Likewise.
1034 (window_focus_out_cb): Likewise.
1036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
1037 (Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Convert
1038 PangoFontMap correctly with PANGO_FT2FONT_MAP macro.
1040 2004-10-25 Michael Koch <konqueror@gmx.de>
1042 * javax/swing/JMenuBar.java
1043 (updateUI): Simplified.
1044 * javax/swing/tree/DefaultTreeSelectionModel.java:
1045 Reorganized import statements.
1047 2004-10-25 Michael Koch <konqueror@gmx.de>
1049 * java/awt/font/TextAttribute.java,
1050 javax/swing/JComponent.java,
1051 javax/swing/JInternalFrame.java,
1052 javax/swing/table/TableColumn.java,
1053 javax/swing/text/StyleConstants.java:
1054 Replaced "new Boolean(boolean)" with "Boolean.valueOf(boolean)".
1056 2004-10-24 Michael Koch <konqueror@gmx.de>
1058 * javax/swing/tree/DefaultTreeCellEditor.java,
1059 javax/swing/tree/DefaultTreeModel.java,
1060 javax/swing/tree/DefaultTreeSelectionModel.java:
1063 2004-10-24 Michael Koch <konqueror@gmx.de>
1065 * javax/swing/tree/DefaultTreeCellEditor.java
1066 (EditorContainer.EditorContainer): Fixed arguments.
1067 (EditorContainer.EditorContainer): New method.
1068 (DefaultTextField.DefaultTextField): Fixed arguments, implemented.
1069 (DefaultTextField.getBorder): Implemented.
1070 (listenerList): New field.
1071 (addCellEditorListener): Implemented.
1072 (removeCellEditorListener): Implemented.
1073 (getCellEditorListeners): New method.
1074 * javax/swing/tree/DefaultTreeModel.java
1075 (addTreeModelListener): Fixed javadoc.
1076 (removeTreeModelListener): Likewise.
1077 (getTreeModelListeners): New method.
1078 (fireTreeNodesChanged): Implemented.
1079 (fireTreeNodesInserted): Likewise.
1080 (fireTreeNodesRemoved): Likewise.
1081 (fireTreeStructureChanged): Likewise.
1082 (getListeners): Fixed javadoc.
1083 * javax/swing/tree/DefaultTreeSelectionModel.java
1084 (addTreeSelectionListener): Implemented.
1085 (removeTreeSelectionListener): Likewise.
1086 (fireValueChanged): Likewise.
1087 (getListeners): Likewise.
1088 (addPropertyChangeListener): Likewise.
1089 (removePropertyChangeListener): Likewise.
1090 (getTreeSelectionListeners): New method.
1091 (getPropertyChangeListeners): Likewise.
1093 2004-10-23 Michael Koch <konqueror@gmx.de>
1095 * javax/swing/plaf/basic/BasicScrollBarUI.java
1096 (maximumThumbSize): Removed static keyword.
1097 (minimumThumbSize): Likewise.
1098 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
1099 (CloseAction): Made public.
1100 (IconifyAction): Likewise.
1101 (MaximizeAction): Likewise.
1102 (MoveAction): Likewise.
1103 (RestoreAction): Likewise.
1104 (SizeAction): Likewise.
1105 (SystemMenuBar): Likewise.
1106 * javax/swing/plaf/basic/BasicSliderUI.java
1107 (TrackListener): Likewise.
1108 * javax/swing/plaf/basic/BasicSplitPaneUI.java
1109 (KeyboardDownRightHandler): Likewise.
1110 (KeyboardEndHandler): Likewise.
1111 (KeyboardHomeHandler): Likewise.
1112 (KeyboardResizeToggleHandler): Likewise.
1113 (KeyboardUpLeftHandler): Likewise.
1114 (PropertyHandler): Likewise.
1115 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1116 (PropertyChangeHandler): Likewise.
1117 (TabSelectionHandler): Likewise.
1119 2004-10-23 Michael Koch <konqueror@gmx.de>
1121 * javax/swing/text/JTextComponent.java
1122 (getKeymap): Made public.
1124 2004-10-22 Michael Koch <konqueror@gmx.de>
1126 * javax/swing/JEditorPane.java
1127 (getStream): Throws IOException.
1129 * javax/swing/JRootPane.java
1130 (createContentPane): Fixed return type.
1131 * javax/swing/JSpinner.java
1132 (commitEdit): Throws ParseException.
1133 * javax/swing/plaf/metal/MetalLookAndFeel.java
1134 (serialVersionUID): New field.
1135 * javax/swing/table/TableColumn.java
1136 (resizedPostingDisableCount): Added @deprecated tag.
1137 (disableResizedPosting): Likewise.
1138 (enableResizedPosting): Likewise.
1139 * javax/swing/text/Document.java
1140 (TitleProperty): Fixed value.
1141 * javax/swing/tree/TreeCellEditor.java
1142 (TreeCellEditor): Extends CellEditor.
1144 2004-10-22 Michael Koch <konqueror@gmx.de>
1146 * javax/swing/JWindow.java
1147 javax/swing/SpinnerModel.java
1148 javax/swing/Timer.java
1149 javax/swing/event/MenuKeyEvent.java
1150 javax/swing/plaf/basic/BasicButtonUI.java
1151 javax/swing/plaf/basic/BasicIconFactory.java
1152 javax/swing/plaf/basic/BasicTabbedPaneUI.java
1153 javax/swing/text/AttributeSet.java
1154 javax/swing/text/Highlighter.java
1155 javax/swing/text/StyleConstants.java
1156 javax/swing/tree/TreeCellEditor.java:
1157 Removed redundant and reordered modifiers.
1159 2004-10-22 Michael Koch <konqueror@gmx.de>
1161 * javax/swing/plaf/basic/BasicToolTipUI.java:
1162 Reformatted copyright header.
1164 2004-10-22 Michael Koch <konqueror@gmx.de>
1166 * javax/swing/AbstractAction.java,
1167 javax/swing/AbstractButton.java,
1168 javax/swing/AbstractCellEditor.java,
1169 javax/swing/AbstractListModel.java,
1170 javax/swing/AbstractSpinnerModel.java,
1171 javax/swing/ActionMap.java,
1172 javax/swing/BorderFactory.java,
1173 javax/swing/Box.java,
1174 javax/swing/ButtonModel.java,
1175 javax/swing/CellEditor.java,
1176 javax/swing/CellRendererPane.java,
1177 javax/swing/DefaultBoundedRangeModel.java,
1178 javax/swing/DefaultButtonModel.java,
1179 javax/swing/DefaultCellEditor.java,
1180 javax/swing/DefaultDesktopManager.java,
1181 javax/swing/DefaultListCellRenderer.java,
1182 javax/swing/DefaultListSelectionModel.java,
1183 javax/swing/DefaultSingleSelectionModel.java,
1184 javax/swing/GrayFilter.java,
1185 javax/swing/InputMap.java,
1186 javax/swing/JApplet.java,
1187 javax/swing/JCheckBoxMenuItem.java,
1188 javax/swing/JColorChooser.java,
1189 javax/swing/JComboBox.java,
1190 javax/swing/JComponent.java,
1191 javax/swing/JDesktopPane.java,
1192 javax/swing/JDialog.java,
1193 javax/swing/JEditorPane.java,
1194 javax/swing/JFileChooser.java,
1195 javax/swing/JFormattedTextField.java,
1196 javax/swing/JFrame.java,
1197 javax/swing/JInternalFrame.java,
1198 javax/swing/JLabel.java,
1199 javax/swing/JLayeredPane.java,
1200 javax/swing/JList.java,
1201 javax/swing/JMenu.java,
1202 javax/swing/JMenuBar.java,
1203 javax/swing/JMenuItem.java,
1204 javax/swing/JOptionPane.java,
1205 javax/swing/JPanel.java,
1206 javax/swing/JPasswordField.java,
1207 javax/swing/JPopupMenu.java,
1208 javax/swing/JRadioButtonMenuItem.java,
1209 javax/swing/JRootPane.java,
1210 javax/swing/JSpinner.java,
1211 javax/swing/JSplitPane.java,
1212 javax/swing/JTabbedPane.java,
1213 javax/swing/JTable.java,
1214 javax/swing/JTextArea.java,
1215 javax/swing/JTextPane.java,
1216 javax/swing/JToggleButton.java,
1217 javax/swing/JToolBar.java,
1218 javax/swing/JToolTip.java,
1219 javax/swing/JTree.java,
1220 javax/swing/JViewport.java,
1221 javax/swing/ListModel.java,
1222 javax/swing/LookAndFeel.java,
1223 javax/swing/MenuSelectionManager.java,
1224 javax/swing/ProgressMonitorInputStream.java,
1225 javax/swing/RepaintManager.java,
1226 javax/swing/RootPaneContainer.java,
1227 javax/swing/ScrollPaneLayout.java,
1228 javax/swing/SpringLayout.java,
1229 javax/swing/SwingUtilities.java,
1230 javax/swing/Timer.java,
1231 javax/swing/ToolTipManager.java,
1232 javax/swing/UIDefaults.java,
1233 javax/swing/UIManager.java,
1234 javax/swing/border/MatteBorder.java,
1235 javax/swing/colorchooser/AbstractColorChooserPanel.java,
1236 javax/swing/colorchooser/ColorSelectionModel.java,
1237 javax/swing/colorchooser/DefaultColorSelectionModel.java,
1238 javax/swing/colorchooser/DefaultHSBChooserPanel.java,
1239 javax/swing/colorchooser/DefaultPreviewPanel.java,
1240 javax/swing/colorchooser/DefaultRGBChooserPanel.java,
1241 javax/swing/colorchooser/DefaultSwatchChooserPanel.java,
1242 javax/swing/event/AncestorEvent.java,
1243 javax/swing/event/HyperlinkEvent.java,
1244 javax/swing/event/InternalFrameEvent.java,
1245 javax/swing/event/MenuDragMouseEvent.java,
1246 javax/swing/event/TableColumnModelEvent.java,
1247 javax/swing/event/TableModelEvent.java,
1248 javax/swing/event/TreeExpansionEvent.java,
1249 javax/swing/event/TreeModelEvent.java,
1250 javax/swing/event/TreeSelectionEvent.java,
1251 javax/swing/event/TreeWillExpandListener.java,
1252 javax/swing/event/UndoableEditEvent.java,
1253 javax/swing/filechooser/FileView.java,
1254 javax/swing/plaf/BorderUIResource.java,
1255 javax/swing/plaf/ComponentUI.java,
1256 javax/swing/plaf/FileChooserUI.java,
1257 javax/swing/plaf/IconUIResource.java,
1258 javax/swing/plaf/ListUI.java,
1259 javax/swing/plaf/PopupMenuUI.java,
1260 javax/swing/plaf/SplitPaneUI.java,
1261 javax/swing/plaf/TabbedPaneUI.java,
1262 javax/swing/plaf/TextUI.java,
1263 javax/swing/plaf/TreeUI.java,
1264 javax/swing/plaf/basic/BasicArrowButton.java,
1265 javax/swing/plaf/basic/BasicBorders.java,
1266 javax/swing/plaf/basic/BasicButtonUI.java,
1267 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
1268 javax/swing/plaf/basic/BasicColorChooserUI.java,
1269 javax/swing/plaf/basic/BasicComboBoxEditor.java,
1270 javax/swing/plaf/basic/BasicComboBoxRenderer.java,
1271 javax/swing/plaf/basic/BasicComboBoxUI.java,
1272 javax/swing/plaf/basic/BasicComboPopup.java,
1273 javax/swing/plaf/basic/BasicDesktopIconUI.java,
1274 javax/swing/plaf/basic/BasicDesktopPaneUI.java,
1275 javax/swing/plaf/basic/BasicIconFactory.java,
1276 javax/swing/plaf/basic/BasicInternalFrameTitlePane.java,
1277 javax/swing/plaf/basic/BasicInternalFrameUI.java,
1278 javax/swing/plaf/basic/BasicListUI.java,
1279 javax/swing/plaf/basic/BasicLookAndFeel.java,
1280 javax/swing/plaf/basic/BasicMenuBarUI.java,
1281 javax/swing/plaf/basic/BasicMenuItemUI.java,
1282 javax/swing/plaf/basic/BasicMenuUI.java,
1283 javax/swing/plaf/basic/BasicOptionPaneUI.java,
1284 javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java,
1285 javax/swing/plaf/basic/BasicPopupMenuUI.java,
1286 javax/swing/plaf/basic/BasicProgressBarUI.java,
1287 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
1288 javax/swing/plaf/basic/BasicRootPaneUI.java,
1289 javax/swing/plaf/basic/BasicScrollBarUI.java,
1290 javax/swing/plaf/basic/BasicSeparatorUI.java,
1291 javax/swing/plaf/basic/BasicSliderUI.java,
1292 javax/swing/plaf/basic/BasicSpinnerUI.java,
1293 javax/swing/plaf/basic/BasicSplitPaneDivider.java,
1294 javax/swing/plaf/basic/BasicSplitPaneUI.java,
1295 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
1296 javax/swing/plaf/basic/BasicTableHeaderUI.java,
1297 javax/swing/plaf/basic/BasicTableUI.java,
1298 javax/swing/plaf/basic/BasicTextAreaUI.java,
1299 javax/swing/plaf/basic/BasicTextFieldUI.java,
1300 javax/swing/plaf/basic/BasicTextUI.java,
1301 javax/swing/plaf/basic/BasicToolBarSeparatorUI.java,
1302 javax/swing/plaf/basic/BasicToolBarUI.java,
1303 javax/swing/plaf/basic/BasicToolTipUI.java,
1304 javax/swing/plaf/basic/BasicTreeUI.java,
1305 javax/swing/plaf/basic/BasicViewportUI.java,
1306 javax/swing/plaf/basic/ComboPopup.java,
1307 javax/swing/table/AbstractTableModel.java,
1308 javax/swing/table/DefaultTableCellRenderer.java,
1309 javax/swing/table/DefaultTableColumnModel.java,
1310 javax/swing/table/DefaultTableModel.java,
1311 javax/swing/table/JTableHeader.java,
1312 javax/swing/table/TableCellEditor.java,
1313 javax/swing/table/TableCellRenderer.java,
1314 javax/swing/table/TableColumn.java,
1315 javax/swing/table/TableColumnModel.java,
1316 javax/swing/text/AbstractDocument.java,
1317 javax/swing/text/Caret.java,
1318 javax/swing/text/DefaultCaret.java,
1319 javax/swing/text/DefaultEditorKit.java,
1320 javax/swing/text/DefaultHighlighter.java,
1321 javax/swing/text/EditorKit.java,
1322 javax/swing/text/JTextComponent.java,
1323 javax/swing/text/LayeredHighlighter.java,
1324 javax/swing/text/PasswordView.java,
1325 javax/swing/text/SimpleAttributeSet.java,
1326 javax/swing/text/StyleConstants.java,
1327 javax/swing/text/StyleContext.java,
1328 javax/swing/text/StyledEditorKit.java,
1329 javax/swing/text/TextAction.java,
1330 javax/swing/text/View.java,
1331 javax/swing/tree/AbstractLayoutCache.java,
1332 javax/swing/tree/DefaultTreeCellRenderer.java,
1333 javax/swing/tree/DefaultTreeModel.java,
1334 javax/swing/tree/DefaultTreeSelectionModel.java,
1335 javax/swing/tree/FixedHeightLayoutCache.java,
1336 javax/swing/tree/TreeCellRenderer.java,
1337 javax/swing/tree/TreeSelectionModel.java,
1338 javax/swing/tree/VariableHeightLayoutCache.java,
1339 javax/swing/undo/AbstractUndoableEdit.java,
1340 javax/swing/undo/UndoableEditSupport.java:
1343 2004-10-22 Michael Koch <konqueror@gmx.de>
1345 * java/awt/Container.java,
1347 java/awt/font/TextLayout.java:
1350 2004-10-22 Michael Koch <konqueror@gmx.de>
1352 * javax/swing/AbstractButton.java
1353 (getLabel): Added @deprecated tag.
1354 (setLabel): Likewise.
1355 * javax/swing/FocusManager.java
1356 (disableSwingFocusManager): Likewise.
1357 (isFocusManagerEnabled): Likewise.
1358 * javax/swing/JComponent.java
1359 (isManagingFocus): Added version to @deprecated tag.
1360 (getNextFocusableComponent): Moved @deprecated tag to bottom of
1362 (getConditionForKeyStroke): Likewise.
1363 (getActionForKeyStroke): Likewise.
1364 * javax/swing/JDesktopPane.java
1365 (LIVE_DRAG_MODE): Added @specnote tag.
1366 (OUTLINE_DRAG_MODE): Likewise.
1367 * javax/swing/JInternalFrame.java
1368 (MENU_BAR_PROPERTY): Fixed value.
1369 (getMenuBar): Added @deprecated tag.
1370 (setMenuBar): Likewise.
1371 * javax/swing/JViewport.java
1372 (isBackingStoreEnabled): Likewise.
1373 (setBackingStoreEnabled): Likewise.
1374 * javax/swing/plaf/basic/BasicDesktopPaneUI.java
1375 (closeKey): Likewise.
1376 (maximizeKey): Likewise.
1377 (minimizeKey): Likewise.
1378 (navigateKey): Likewise.
1379 (navigateKey2): Likewise.
1380 * javax/swing/plaf/basic/BasicInternalFrameUI.java
1381 (openMenuKey): Likewise.
1382 * javax/swing/plaf/basic/BasicSplitPaneUI.java
1383 (keyboardDownRightListener): Likewise.
1384 (keyboardEndListener): Likewise.
1385 (keyboardHomeListener): Likewise.
1386 (keyboardResizeToggleListener): Likewise.
1387 (keyboardUpLeftListener): Likewise.
1388 (dividerResizeToggleKey): Likewise.
1389 (downKey): Likewise.
1391 (homeKey): Likewise.
1392 (leftKey): Likewise.
1393 (rightKey): Likewise.
1395 (createKeyboardUpLeftListener): Likewise.
1396 (createKeyboardDownRightListener): Likewise.
1397 (createKeyboardHomeListener): Likewise.
1398 (createKeyboardEndListener): Likewise.
1399 (createKeyboardResizeToggleListener): Likewise.
1400 (getDividerBorderSize): Likewise.
1401 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1402 (downKey): Likewise.
1403 (leftKey): Likewise.
1404 (rightKey): Likewise.
1407 2004-10-21 Andreas Tobler <a.tobler@schweiz.ch>
1409 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1410 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Use the
1411 GTK_TEXT_VIEW macro.
1413 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1414 (connect_awt_hook_cb): Mark unused variable unused.
1416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c (selection_get):
1419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1420 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_create): According to
1421 the gtk API gtk_combo_box_new_text actually returns a GtkWidget.
1422 Remove unused var menu.
1423 (selection_changed): Remove unused value.
1425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1426 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_setNativeBounds): Fix pointer
1427 warning with using an intermediate variable.
1429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
1430 (area_updated): Fix unused var warning for BE archs.
1432 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1433 (Java_gnu_java_awt_peer_gtk_GdkGraphics_connectSignals): Remove unused
1435 (realize_cb): Mark unused variable unused.
1437 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1438 (seek_glyphstring_idx): Fix a C90 warning.
1440 * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c
1441 (Java_gnu_java_awt_peer_gtk_GThreadNativeMethodRunner_nativeRun):
1442 Mark unused arguments unused.
1444 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1445 (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_initState),
1446 (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setGlyphCodes),
1447 (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_glyphCharIndex),
1448 (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_glyphIsHorizontal):
1451 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
1452 (Java_gnu_java_awt_peer_gtk_GdkFontMetrics_getPeerFontMetrics),
1453 (Java_gnu_java_awt_peer_gtk_GdkFontMetrics_getPeerTextMetrics):
1456 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1457 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFilenameFilter):
1459 (filenameFilterCallback): Remove unused var.
1460 (handle_response): Declare str_fileName and remove last else statement.
1462 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c:
1464 (nativeGetNumFontsFamilies) New function.
1465 (nativeGetFontFamilies) Likewise.
1466 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
1467 (getAvailableFontFamilyNames): Implement.
1468 * Makefile.am (gtk_c_source_files): Add GdkGraphicsEnvironment.c.
1469 * Makefile.in: Regenerate.
1471 2004-10-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1473 * gnu/java/awt/peer/ClasspathFontPeer.java
1474 (setStandardAttributes(String,Map)): If size attribute doesn't
1475 exist, default to size 12. Clamp size value to a minimum of 1.
1477 2004-10-16 Jeroen Frijters <jeroen@frijters.net>
1479 * javax/swing/JDialog.java
1480 (decorated): Likewise.
1481 * javax/swing/JFrame.java
1482 (defaultLookAndFeelDecorated): Likewise.
1484 2004-10-16 Jeroen Frijters <jeroen@frijters.net>
1486 * javax/swing/plaf/basic/BasicToolBarUI.java
1487 (offset, regular): Made final.
1488 * javax/swing/plaf/basic/BasicScrollBarUI.java
1489 (DECREASE_HIGHLIGHT, INCREASE_HIGHLIGHT, NO_HIGHLIGHT,
1490 POSITIVE_SCROLL, NEGATIVE_SCROLL): Made final.
1492 2004-10-16 Michael Koch <konqueror@gmx.de>
1494 * gnu/java/awt/BitwiseXORComposite.java,
1495 gnu/java/awt/ClasspathToolkit.java,
1496 gnu/java/awt/image/XBMDecoder.java,
1497 gnu/java/awt/peer/GLightweightPeer.java,
1498 gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1499 Reorganized import statements.
1501 2004-10-16 Jeroen Frijters <jeroen@frijters.net>
1503 * java/awt/Button.java
1504 (next_button_number): Removed useless initializer.
1505 * java/awt/Frame.java
1506 (next_frame_number): Likewise.
1507 * java/awt/Panel.java
1508 (next_panel_number): Likewise,
1509 * java/awt/Scrollbar.java
1510 (next_scrollbar_number): Likewise.
1511 * java/awt/TextArea.java
1512 (next_text_number): Likewise.
1514 2004-10-16 Michael Koch <konqueror@gmx.de>
1516 * java/awt/image/ByteLookupTable.java
1517 (ByteLookupTable) :Fixed HTML entities in javadocs.
1518 (lookupPixel): Fix case when dst is null.
1519 * java/awt/image/ShortLookupTable.java
1520 (ShortLookupTable) :Fixed HTML entities in javadocs.
1521 (lookupPixel): Fix case when dst is null.
1522 * java/awt/image/DataBufferByte.java,
1523 java/awt/image/DataBufferDouble.java,
1524 java/awt/image/DataBufferFloat.java,
1525 java/awt/image/DataBufferInt.java,
1526 java/awt/image/DataBufferShort.java,
1527 java/awt/image/DataBufferUShort.java:
1528 Fix initialization of bankData in constructors.
1530 2004-10-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1532 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1533 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1534 (setNativeBounds): Set GtkEventBox, GtkButton and GtkLabel size
1536 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1537 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1538 (setNativeBounds): Make package private. Set size request even
1539 if GTK parent is NULL.
1540 * gnu/java/awt/peer/gtk/GtkLabelPeer.java,
1541 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
1542 (setNativeBounds): Set GtkEventBox and GtkLabel size requests.
1544 2004-10-12 Mark Wielaard <mark@klomp.org>
1546 Workaround for bug #17952.
1547 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1548 (request_frame_extents): Check window->window != NULL.
1550 2004-10-10 Mark Wielaard <mark@klomp.org>
1552 * jni/gtk-peer/gdkfont.h: Include gtkpeer.h not gtkcairopeer.h.
1554 2004-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1556 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c: Use
1557 native_text_layout_state_table here.
1559 * jni/gtk-peer/gdkfont.h: Mark native_text_layout_state_table extern.
1561 2004-10-09 Mark Wielaard <mark@klomp.org>
1563 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1564 (setChars): Only call pango_itemize() when vec->glyphitems != NULL.
1565 Only call pango_shape() when gi->glyphs->num_glyphs > 0.
1567 2004-10-09 Michael Koch <konqueror@gmx.de>
1569 * gnu/java/awt/peer/gtk/GtkToolkit.java:
1570 Merged import statements.
1572 2004-10-09 Michael Koch <konqueror@gmx.de>
1574 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1575 (isBufferedImageGraphics): Simplified.
1577 2004-10-09 Paul Jenner <psj.home@ntlworld.com>
1579 * javax/swing/JTree.java
1580 (isRootVisible): Fixed typo in method name.
1581 * javax/swing/JScrollBar.java
1582 (setValues): Likewise.
1583 * javax/swing/JScrollPane.java
1584 (createScrollListener): Call JScrollBar.setValues.
1586 2004-10-08 Thomas Fitzsimmons <fitzsim@redhat.com>
1588 * gnu/java/awt/peer/gtk/GtkContainerPeer.java (endValidate):
1589 Don't call setParentAndBounds on GtkWindowPeers.
1591 * java/awt/Component.java (static): Don't set default keyboard
1593 * java/awt/KeyboardFocusManager.java
1594 (getCurrentKeyboardFocusManager): If current keyboard focus
1595 manager is null set a default.
1597 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1598 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1599 (gtkWidgetSetBackground): New method.
1600 (block_expose_events_cb): New function.
1601 (connectSignals): Block the AWT's expose event processing on
1602 button press and release.
1603 (gtkSetLabel): Set text on proper widget.
1604 (gtkWidgetModifyFont): Modify font on proper widget.
1605 (gtkWidgetSetBackground): Set normal, active and prelight
1607 (gtkWidgetSetForeground): Set forground colour of proper widget.
1608 (gtkActivate): Activate the correct widget.
1609 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (clearRect):
1610 Only clear rectangle if the backing component is not an event
1612 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1613 (beginNativeRepaintID): New variable.
1614 (endNativeRepaintID): Likewise.
1615 (gtkInit): Initialize new fields with method IDs.
1616 * jni/gtk-peer/gtkpeer.h (beginNativeRepaintID): Declare extern.
1617 (endNativeRepaintID): Likewise.
1619 2004-10-07 Thomas Fitzsimmons <fitzsim@redhat.com>
1621 * javax/swing/JList.java (init): Revert accidental commit.
1623 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1624 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (GdkGraphics):
1625 Call initComponentGraphics or connectSignals depending on
1626 component's realization status.
1627 (realize_cb): New function.
1628 (initComponentGraphics): New method.
1629 (connectSignals): New method.
1630 (clipRect): Return immediately if component is not realized.
1631 (setClip): Likewise.
1632 (translate): Likewise.
1633 (drawImage variants): Return false immediately if component is
1635 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1636 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1637 (connectSignals): New method.
1638 (GdkGraphics2D): Call initComponentGraphics2D or connectSignals
1639 depending on component's realization status. Move other
1640 initialization calls to ...
1641 (initComponentGraphics2D): New method.
1642 (realize_cb): New function.
1643 (cairoSetMatrix): Return immediately if gr is NULL.
1644 (cairoNewPath): Likewise.
1645 (cairoRectangle): Likewise.
1646 (cairoClip): Likewise.
1647 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1648 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1649 (gtkWidgetRepaintArea): Remove method.
1650 (isRealized): New method.
1651 (GtkComponentPeer): Move setParent, connectJObject and setCursor
1652 calls to setParentAndBounds. Call setParentAndBounds.
1653 (setParentAndBounds): New method.
1654 (setComponentBounds): Return immediately if bounds are all zero.
1655 (repaint): Remove call to gtkWidgetRepaintArea. Return
1656 immediately if requested paint region is 0x0.
1657 (setCursor): New method.
1658 (gtkWidgetSetParent): Only set widget's parent if its parent is
1660 (setNativeBounds): Only set widget's bounds if it has a parent.
1661 (connectSignals): Don't call gtk_widget_realize. Connect
1662 "realize" signal to connect_awt_hook_cb handler.
1663 * gnu/java/awt/peer/gtk/GtkContainerPeer.java (isValidating):
1665 (beginValidate): Set isValidating true.
1666 (endValidate): Set parents and bounds for children first, then
1667 for this. Set isValidating false.
1668 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
1669 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1670 (connectJObject): Remove method.
1671 (connectSignals): Don't call gtk_widget_realize.
1672 * gnu/java/awt/peer/gtk/GtkListPeer.java,
1673 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
1674 (connectJObject): Remove method.
1675 (connectSignals): Don't call gtk_widget_realize.
1676 * gnu/java/awt/peer/gtk/GtkPanelPeer.java,
1677 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c
1678 (connectJObject): Remove method.
1679 * gnu/java/awt/peer/gtk/GtkScrollbarPeer.java,
1680 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
1681 (connectJObject): Remove method.
1682 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1683 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1684 (create): Don't call gtk_widget_realize.
1685 (connectJObject): Remove method.
1686 (connectSignals): Don't call gtk_widget_realize. Connect
1687 "realize" signal to connect_awt_hook_cb handler.
1688 (nativeSetBounds): Don't attempt to move GDK window if it is
1690 * java/awt/Container.java (addImpl): Don't call comp.addNotify
1691 if peer is not null.
1692 (validateTree): Create peers for all children before calling
1694 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1695 (connectSignals): Don't call gtk_widget_realize.
1696 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1697 (connect_awt_hook_cb): New function.
1698 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1699 (initComponentGraphicsID): New variable.
1700 (initComponentGraphics2DID): Likewise.
1701 (setCursorID): Likewise.
1702 (gtkInit): Initialize new fields with method IDs.
1703 * jni/gtk-peer/gtkpeer.h (initComponentGraphicsID): Declare
1705 (initComponentGraphics2DID): Declare extern.
1706 (setCursorID): Likewise.
1707 (connect_awt_hook_cb): Declare function.
1709 2004-10-07 Michael Koch <konqueror@gmx.de>
1711 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
1712 gnu/java/awt/peer/gtk/GdkGlyphVector.java,
1713 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1714 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
1715 gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
1716 gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1717 gnu/java/awt/peer/gtk/GtkClipboard.java,
1718 gnu/java/awt/peer/gtk/GtkDialogPeer.java,
1719 gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
1720 gnu/java/awt/peer/gtk/GtkFontPeer.java,
1721 gnu/java/awt/peer/gtk/GtkListPeer.java,
1722 gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
1723 gnu/java/awt/peer/gtk/GtkToolkit.java,
1724 gnu/java/awt/peer/gtk/GtkWindowPeer.java:
1725 Import statements reworked. Some little reformattings.
1727 2004-10-07 Michael Koch <konqueror@gmx.de>
1729 * java/awt/image/AffineTransformOp.java
1730 (TYPE_BILINEAR): Initialize with 2.
1731 * java/awt/print/Printable.java: Jalopied.
1732 (PAGE_EXISTS): Initialize with 0;
1733 (NO_SUCH_PAGE): Initialized with 1.
1735 2004-10-06 Jerry Quinn <jlquinn@optonline.net>
1737 * Makefile.am: Add BufferedImageFilter.java.
1738 * Makefile.in: Regenerate.
1740 2004-10-06 Graydon Hoare <graydon@redhat.com>
1742 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1743 (install_font_peer): Minor bug fixes to track cairo font semantics.
1745 2004-10-04 Jerry Quinn <jlquinn@optonline.net>
1747 * java/awt/image/BufferedImageFilter.java: Implement.
1749 2004-09-30 Graydon Hoare <graydon@redhat.com>
1752 (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c)
1753 (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c)
1754 (gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java)
1755 (gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java): Remove.
1756 (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c)
1757 (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c)
1758 (gnu/java/awt/peer/gtk/GdkTextLayout.java)
1759 (gnu/java/awt/peer/gtk/GdkFontPeer.java)
1760 (gnu/java/awt/peer/ClasspathTextLayoutPeer.java): Add
1761 * Makefile.in: Regenerate.
1762 * gnu/awt/xlib/XToolkit.java
1763 (getClasspathTextLayoutPeer): Add stub.
1764 * gnu/java/awt/ClasspathToolkit.java
1765 (getClasspathTextLayoutPeer) Add.
1766 * gnu/java/awt/peer/ClasspathFontPeer.java
1768 (copySizeToAttrs): Make public.
1769 * gnu/java/awt/peer/ClasspathTextLayoutPeer.java: New file.
1770 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: Remove.
1771 * gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java: Remove.
1772 * gnu/java/awt/peer/gtk/GdkFontMetrics.java: Rewrite.
1773 * gnu/java/awt/peer/gtk/GdkFontPeer.java: New file.
1774 * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Adjust type names.
1775 * gnu/java/awt/peer/gtk/GdkGraphics.java
1776 (getFontPeer): New function.
1777 (drawString): Pass font peer to native side.
1778 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1781 (PainterThread): Remove.
1782 (GdkGraphics2D): Set hints during construction.
1787 (setRenderingHints): Reimplement normalization logic.
1789 (updateBufferedImage)
1790 (isBufferedImageGraphics)
1792 (drawImage): Make final.
1793 (drawImage): Always paint synchronously.
1795 (drawGlyphVector): Rewrite.
1796 (releasePeerGraphicResource)
1797 (getPeerTextMetrics)
1798 (getPeerFontMetrics)
1799 (drawGdkGlyphVector)
1801 (cairoDrawGdkGlyphVector)
1802 (cairoDrawGdkTextLayout)
1804 (getFontPeer): New functions.
1805 * gnu/java/awt/peer/gtk/GdkTextLayout.java: New file.
1806 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1807 (getFontMetrics): Get metrics via toolkit, to hit cache.
1808 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Use getFontMetrics.
1809 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1810 * gnu/java/awt/peer/gtk/GtkToolkit.java (LRUCache): New class.
1813 (imageCache): New members.
1816 (getClasspathFontPeer): Use caches.
1817 (getFontPeer): Route through getClasspathFontPeer.
1818 * java/awt/Font.java (attrsToMap): Remove, adjust ctors.
1819 * java/awt/font/TextLayout.java: Implement in terms of peer.
1820 * javax/swing/plaf/basic/BasicSliderUI.java
1821 (paintThumb): Use polyline rather than polygon.
1822 * javax/swing/plaf/basic/BasicGraphicsUtils.java:
1823 Update comment but, alas, still do not switch to using TextLayouts.
1824 * javax/swing/text/Utilities.java (drawTabbedText):
1825 Draw text run-at-a-time, not char-at-a-time.
1826 * jni/gtk-peer/gdkfont.h: Publicize some of the font interface, add
1828 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
1829 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1831 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Rewrite to
1832 incorporate brains of old GdkClasspathFontPeerMetrics.
1833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c: Rewrite to
1834 incorporate brains of old GdkClasspathFontPeer.
1835 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c: New file.
1836 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1837 (drawString): Rewrite to use persistent layout in peer font.
1838 Comment out extraneous gdk_flush calls.
1839 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1841 (metrics_surface): New static variables.
1843 (install_font_peer): New helper functions.
1844 (releasePeerGraphicResource)
1845 (getPeerTextMetrics)
1846 (getPeerFontMetrics)
1847 (cairoDrawGdkTextLayout)
1848 (cairoDrawGdkGlyphVector): New native methods.
1849 (cairoDrawString): Rewrite, leaving layout-based version
1850 commented out for the time being.
1851 * jni/gtk-peer/gtkpeer.h (graphics): Add fields for pango stuff.
1853 2004-10-01 David Gilbert <david.gilbert@object-refinery.com>
1855 * java/awt/geom/AffineTransform.java:
1856 Fixed javadocs overall.
1858 2004-10-01 Jerry Quinn <jlquinn@optonline.net>
1860 * java/awt/image/ComponentColorModel.java: Remove FIXME comment since
1863 2004-10-01 Jerry Quinn <jlquinn@optonline.net>
1865 * java/awt/image/IndexColorModel.java: Fix use of immutable
1868 2004-09-29 Tom Tromey <tromey@redhat.com>
1870 * javax/swing/plaf/basic/BasicOptionPaneUI.java (MessageIcon):
1871 Renamed from 'messageIcon'.
1872 (errorIcon, infoIcon, warningIcon, questionIcon): Updated.
1874 2004-09-28 Jerry Quinn <jlquinn@optonline.net>
1876 * java/awt/image/RescaleOp.java: Fix formatting.
1878 2004-09-28 Olga Rodimina <rodimina@redhat.com>
1880 * javax/swing/plaf/basic/BasicComboPopup.java
1881 (SCROLL_DOWN): made final.
1882 (SCROLL_UP): made final.
1884 2004-09-28 Olga Rodimina <rodimina@redhat.com>
1886 * javax/swing/plaf/basic/BasicComboPopup.java:
1887 Added javadocs for undocumented fields.
1888 (show): scroll down to the selected item and
1889 highlight selected item.
1890 (startAutoScrolling): Implemented.
1891 (stopAutoScrolling): Implemented.
1892 (autoScrollUp): Implemented.
1893 (autoScrollDown): Implemented.
1894 (InvocationMouseHandler.mouseReleased): Implemented.
1895 (InvocationMouseMotionHandler.mouseDragged): Implemented.
1897 2004-09-28 Jerry Quinn <jlquinn@optonline.net>
1899 * java/awt/image/RescaleOp.java: Implement.
1901 2004-09-27 Jerry Quinn <jlquinn@optonline.net>
1903 * java/awt/image/IndexColorModel.java (getRGBs,
1904 convertToIntDiscrete): Implement.
1906 2004-09-27 Jerry Quinn <jlquinn@optonline.net>
1908 * java/awt/image/IndexColorModel.java: Add class docs.
1910 2004-09-27 Jerry Quinn <jlquinn@optonline.net>
1912 * java/awt/image/IndexColorModel.java (isValid, getValidPixels):
1915 2004-09-27 Michael Koch <konqueror@gmx.de>
1917 * java/awt/MenuBar.java,
1918 java/awt/peer/MenuBarPeer.java:
1919 Revert accidentally commited changes.
1921 2004-09-27 Michael Koch <konqueror@gmx.de>
1923 * java/awt/AWTKeyStroke.java,
1924 java/awt/Canvas.java,
1925 java/awt/CardLayout.java,
1926 java/awt/CheckboxMenuItem.java,
1927 java/awt/Component.java,
1928 java/awt/Container.java,
1929 java/awt/DefaultKeyboardFocusManager.java,
1930 java/awt/EventDispatchThread.java,
1931 java/awt/FileDialog.java,
1932 java/awt/FlowLayout.java,
1934 java/awt/Frame.java,
1935 java/awt/Graphics2D.java,
1936 java/awt/GraphicsEnvironment.java,
1937 java/awt/GridBagConstraints.java,
1938 java/awt/GridBagLayout.java,
1939 java/awt/GridLayout.java,
1940 java/awt/Image.java,
1941 java/awt/KeyboardFocusManager.java,
1942 java/awt/Label.java,
1944 java/awt/MediaTracker.java,
1946 java/awt/MenuBar.java,
1947 java/awt/MenuComponent.java,
1948 java/awt/Panel.java,
1949 java/awt/PopupMenu.java,
1950 java/awt/ScrollPane.java,
1951 java/awt/Scrollbar.java,
1952 java/awt/SystemColor.java,
1953 java/awt/TextArea.java,
1954 java/awt/TextField.java,
1955 java/awt/Toolkit.java,
1956 java/awt/Window.java,
1957 java/awt/color/ICC_Profile.java,
1958 java/awt/datatransfer/DataFlavor.java,
1959 java/awt/datatransfer/StringSelection.java,
1960 java/awt/datatransfer/SystemFlavorMap.java,
1961 java/awt/dnd/Autoscroll.java,
1962 java/awt/dnd/DropTarget.java,
1963 java/awt/dnd/DropTargetContext.java,
1964 java/awt/dnd/DropTargetDragEvent.java,
1965 java/awt/dnd/peer/DropTargetContextPeer.java,
1966 java/awt/event/AdjustmentEvent.java,
1967 java/awt/event/InputEvent.java,
1968 java/awt/event/InvocationEvent.java,
1969 java/awt/event/KeyEvent.java,
1970 java/awt/event/MouseEvent.java,
1971 java/awt/font/TextLayout.java,
1972 java/awt/geom/GeneralPath.java,
1973 java/awt/geom/Point2D.java,
1974 java/awt/im/InputContext.java,
1975 java/awt/im/spi/InputMethodContext.java,
1976 java/awt/image/AffineTransformOp.java,
1977 java/awt/image/BufferedImage.java,
1978 java/awt/image/ColorModel.java,
1979 java/awt/image/ComponentColorModel.java,
1980 java/awt/image/CropImageFilter.java,
1981 java/awt/image/DirectColorModel.java,
1982 java/awt/image/MemoryImageSource.java,
1983 java/awt/image/PackedColorModel.java,
1984 java/awt/image/PixelGrabber.java,
1985 java/awt/image/RasterOp.java,
1986 java/awt/peer/MenuBarPeer.java:
1987 Some fixes for checkstyle. Import statement and modifier order
1990 2004-09-27 Michael Koch <konqueror@gmx.de>
1992 * javax/swing/JTable.java
1993 (setModel): Reimplemented.
1995 2004-09-27 Michael Koch <konqueror@gmx.de>
1997 * javax/swing/JTextArea.java
1998 (append): Re-implemented.
2001 2004-09-27 Michael Koch <konqueror@gmx.de>
2003 * javax/swing/JSpinner.java
2004 (serialVersionUID): New static field.
2005 * javax/swing/JToggleButton.java
2006 (JToggleButton): Fixed email addresses.
2007 * javax/swing/SpinnerNumberModel.java
2008 (serialVersionUID): Added javadoc.
2010 2004-09-27 Michael Koch <konqueror@gmx.de>
2012 * javax/swing/JTextArea.java:
2013 Don't use JTextComponent.doc directly. GCJ from java-gui-branch has a
2014 bug here which is fixed in HEAD ...
2016 2004-09-27 Andrew John Hughes <address@hidden>
2018 * javax/swing/JTextArea.java: Added additional
2021 2004-09-27 Andrew John Hughes <address@hidden>
2023 * javax/swing/JRadioButton.java:
2024 Implemented additional constructors and accessibility
2025 classes. Added documentation and fixed a typo in
2028 2004-09-26 Jerry Quinn <jlquinn@optonline.net>
2030 * java/awt/image/IndexColorModel.java (IndexColorModel): Implement
2031 missing constructor.
2033 2004-09-26 Jerry Quinn <jlquinn@optonline.net>
2035 * java/awt/image/ComponentColorModel.java (ComponentColorModel):
2036 Implement missing 1.4 constructor.
2038 2004-09-26 Andrew John Hughes <address@hidden>
2040 * javax/swing/JToggleButton.java:
2041 Implemented additional constructors and accessibility
2042 classes. Added documentation and fixed a typo in
2045 2004-09-26 Jerry Quinn <jlquinn@optonline.net>
2047 * java/awt/image/ColorModel.java (getDataElement,
2048 getDataElements): Document since 1.4.
2050 2004-09-26 Jerry Quinn <jlquinn@optonline.net>
2052 * java/awt/image/BandedSampleModel.java: Implement.
2053 * Makefile.am: Add java/awt/image/BandedSampleModel.java.
2054 * Makefile.in: Regenerated.
2056 2004-09-25 Michael Koch <konqueror@gmx.de>
2058 * java/awt/Window.java: Fixed whitespace difference with GNU
2061 2004-09-23 Mark Wielaard <mark@klomp.org>
2063 * Makefile.am: Add javax/swing/SpinnerListModel.java.
2064 * Makefile.in: Regenerated.
2066 2004-09-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
2068 * javax/swing/SpinnerListModel.java, javax/swing/SpinnerModel.java
2069 Implemented SpinnerListModel. Added documentation to
2072 2004-09-23 Andreas Tobler <a.tobler@schweiz.ch>
2074 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2075 (init_dpi_conversion_factor): Apply the patch from main correctly.
2076 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2078 2004-09-23 Tom Tromey <tromey@redhat.com>
2081 * javax/swing/JDesktopPane.java (LIVE_DRAG_MODE): Now final.
2082 (OUTLINE_DRAG_MODE): LIVE_DRAG_MODE.
2083 * javax/swing/plaf/basic/BasicSplitPaneUI.java
2084 (NON_CONTINUOUS_DIVIDER): Now final. Initialize.
2086 2004-09-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
2088 * java/awt/Canvas.java
2089 (AccessibleAWTCanvas): added serialization UID
2090 * java/awt/Label.java
2091 (AccessibleAWTLabel): added serialization UID
2092 * javax/swing/JRootPane.java
2093 (AccessibleJRootPane): added comment to existing UID
2094 * javax/swing/JSpinner.java
2095 (DefaultEditor): added serialization UID
2096 (NumberEditor): added serialization UID
2097 * javax/swing/text/html/HTML.java
2098 (UnknownTag): added serialization UID
2100 2004-09-23 Jeroen Frijters <jeroen@frijters.net>
2102 * javax/swing/JInternalFrame.java
2103 (CONTENT_PANE_PROPERTY,FRAME_ICON_PROPERTY,GLASS_PANE_PROPERTY,
2104 IS_CLOSED_PROPERTY,IS_ICON_PROPERTY,IS_MAXIMUM_PROPERTY,
2105 IS_SELECTED_PROPERTY,LAYERED_PANE_PROPERTY,MENU_BAR_PROPERTY,
2106 ROOT_PANE_PROPERTY,TITLE_PROPERTY): Made final as per API spec.
2107 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
2108 (CLOSE_CMD,ICONIFY_CMD,MAXIMIZE_CMD,MOVE_CMD,RESTORE_CMD,SIZE_CMD):
2109 Made final as per API spec.
2111 2004-09-23 Andreas Tobler <a.tobler@schweiz.ch>
2113 * jni/gtk-peer/gtkpeer.h: Remove duplicated copyright string.
2115 2004-09-23 Sven de Marothy <sven@physto.se>
2117 * java/awt/geom/Arc2D.java: Reformatted.
2118 (setArc): Correct documentation to say 'upper left corner'.
2119 (setArcByTangent,contains,intersects): Implemented.
2120 (containsAngle): Corrected to handle negative extents.
2121 (ArcIterator): Set to private.
2122 (ArcIterator): Corrected for CHORD-type arcs, negative extents.
2123 (intersects): Fix: Now checks the arc segment.
2124 (contains): Cleaned up.
2125 * java/awt/geom/CubicCurve2a.javaD: Fix insideness-test. Reindent.
2126 (contains): Implemented.
2127 (intersects): Implemented.
2128 * java/awt/geom/QuadCurve2D.java: Fix insideness-test. Reindent.
2129 * java/awt/geom/GeneralPath: Fix insideness-test. Reindent and
2130 document. Fully (re)implemented using separate xpoints and ypoints
2133 2004-09-23 Andreas Tobler <a.tobler@schweiz.ch>
2135 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
2136 * configure: Regenerate.
2137 * include/config.h.in: Likewise.
2138 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
2139 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
2141 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
2142 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
2143 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
2145 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
2148 2004-09-23 David Gilbert <david.gilbert@object-refinery.com>
2150 * java/awt/SystemColor.java: Fix @link doc entries.
2152 2004-09-23 David Gilbert <david.gilbert@object-refinery.com>
2154 * java/awt/RenderingHints.java: Documented.
2155 (RenderingHints): Accept null init Map.
2156 (putAll): Preprocess map to generate appropriate exceptions.
2157 (remove): Cast object to Key and remove from hintMap.
2159 2004-09-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
2161 * java/awt/MenuComponent.java, java/awt/MenuBar.java:
2162 Implementation of accessibility classes and methods
2163 for these two components.
2165 2004-09-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
2167 * java/awt/KeyboardFocusManager.java:
2168 Added missing documentation.
2170 2004-09-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
2172 * java/awt/Label.java, java/awt/Canvas.java:
2173 Added accessibility classes to AWT Label and Canvas,
2174 as well as additional documentation for Canvas.
2176 2004-09-23 David Gilbert <address@bogus.example.com>
2178 * java/awt/image/DataBuffer.java: Update API documentation.
2179 * java/awt/image/DataBufferByte.java: Likewise.
2180 * java/awt/image/DataBufferDouble.java: Likewise.
2181 * java/awt/image/DataBufferFloat.java: Likewise.
2182 * java/awt/image/DataBufferInt.java: Likewise.
2183 * java/awt/image/DataBufferShort.java: Likewise.
2184 * java/awt/image/DataBufferUShort.java: Likewise.
2186 2004-09-22 Dalibor Topic <robilad@kaffe.org>
2188 * java/awt/Component.java (postEvent):
2189 Only delegate to parent if a parent exists.
2190 Reported by: Stephane Meslin-Weber <steph@tangency.co.uk>
2192 2004-09-22 Sven de Marothy <sven@physto.se>
2194 *java/awt/AWTEventMulticaster.java,
2195 java/awt/Adjustable.java,
2196 java/awt/Point.java,
2197 java/awt/Polygon.java,
2198 java/awt/Rectangle.java,
2199 java/awt/Shape.java,
2200 java/awt/geom/Area.java,
2201 java/awt/geom/Ellipse2D.java,
2202 java/awt/geom/PathIterator.java,
2203 java/awt/geom/Point2D.java,
2204 java/awt/geom/Rectangle2D.java,
2205 java/lang/Comparable.java,
2206 java/util/Arrays.java:
2207 Fixed documentation errors
2209 2004-09-21 Jerry Quinn <jlquinn@optonline.net>
2211 * java/awt/image/ComponentSampleModel.java: Add documentation.
2214 2004-09-21 Jerry Quinn <jlquinn@optonline.net>
2216 * java/awt/image/ComponentSampleModel.java (constructor):
2217 Initialize numBanks when figuring out the max bank index.
2219 2004-09-21 Jerry Quinn <jlquinn@optonline.net>
2221 * java/awt/image/Raster.java (createPackedRaster): Implement
2222 MultiPixelPackedSampleModel codepath.
2224 2004-09-21 Jerry Quinn <jlquinn@optonline.net>
2226 * java/awt/image/MultiPixelPackedSampleModel.java: Implement.
2227 * Makefile.am: Add MultiPixelPackedSampleModel.java.
2228 * Makefile.in: Regenerate.
2230 2004-09-16 Jerry Quinn <jlquinn@optonline.net>
2232 * java/awt/image/Raster.java (getNumBands): Implement.
2234 2004-09-16 Jerry Quinn <jlquinn@optonline.net>
2236 * java/awt/image/Raster.java
2237 (createPackedRaster(int,int,int,int,int,Point)): Implement for
2240 2004-09-16 Jerry Quinn <jlquinn@optonline.net>
2242 * java/awt/image/SinglePixelPackedSampleModel.java
2243 (SinglePixelPackedSampleModel): Throw exception for unsupported
2246 2004-09-16 Jerry Quinn <jlquinn@optonline.net>
2248 * java/awt/image/ColorModel.java (getDataElement): Implemented.
2250 (getDataElements): Add missing version. Remove bogus version.
2253 2004-09-14 Olga Rodimina <rodimina@redhat.com>
2255 * javax/swing/plaf/basic/BasicComboBoxUI.java:
2256 (paintCurrentValue): Pass correct parameters to
2257 getListCellRendererComponent().
2258 (ListDataHandler.intervalRemoved): Implemented.
2259 (PropertyChangeHandler.propertyChange): Handle changes in
2260 MODEL_CHANGED_PROPERTY of the JComboBox
2261 * javax/swing/plaf/basic/BasicComboPopup.java:
2262 (BasicComboPopup): Moved code that configures popup to
2263 configurePopup() and call it instead.
2264 (firePopupMenuWillBecomeVisible): Implemented.
2265 (firePopupMenuWillBecomeInvisible): Likewise.
2266 (firePopupMenuCanceled): Likewise.
2267 (configureList): Set list's visibleRowCount same as
2268 comboBox's visibleRowCount.
2269 (configurePopup): Implemented.
2270 (getPopupHeightForRowCount): Get item's from JComboBox's model and
2271 not from model of the JList.
2272 (ListMouseMotionHandler.mouseMoved): Implemented.
2273 (PropertyChangeHandler.propertyChange): Handles change in the
2276 2004-09-13 Michael Koch <konqueror@gmx.de>
2278 * javax/swing/JComponent.java
2279 (isMaximumSizeSet): New method.
2280 (isMinimumSizeSet): Likewise.
2281 (isPreferredSizeSet): Likewise.
2283 2004-09-13 Michael Koch <konqueror@gmx.de>
2285 * javax/swing/JSpinner.java:
2287 (spinner): New field.
2288 (DefaultEditor): New method.
2289 (getSpinner): Likewise.
2290 (NumberEdito): Likewise.
2291 (getModel): Likewise
2293 2004-09-13 Michael Koch <konqueror@gmx.de>
2295 * javax/swing/InputVerifier.java:
2297 * javax/swing/JComponent.java
2298 (inputVerifier): New property field.
2299 (getInputVerifier): New method.
2300 (setInputVerifier): Likewise.
2302 2004-09-13 Michael Koch <konqueror@gmx.de>
2304 * javax/swing/JComponent.java
2305 (JComponent): Added javadoc comment.
2306 (setBorder): Fire property change eventr.
2307 (setEnabled): Likewise.
2308 (setMaximumSize): Likewise.
2309 (setMinimumSize): Likewise.
2310 (setPreferredSize): Likewise.
2311 (setOpaque): Likewise.
2313 2004-09-13 Michael Koch <konqueror@gmx.de>
2315 * javax/swing/JTextField.java
2316 (action): New field.
2317 (actionCommand): Likewise.
2318 (actionPropertyChangeListener): Likewise.
2319 (setHorizontalAlignment): Abort soon if new value == old value. Fire
2320 event before repainting.
2321 (postActionEvent): New method.
2322 (getAction): Likewise.
2323 (setAction): Likewise.
2324 (getActionCommand): Likewise.
2325 (setActionCommand): Likewise.
2326 (createActionPropertyChangeListener): Likewise.
2327 (configurePropertiesFromAction): Likewise.
2329 2004-09-13 Michael Koch <konqueror@gmx.de>
2331 * javax/swing/DebugGraphics.java:
2332 Re-formatted. Fixed some javadocs.
2333 * javax/swing/JApplet.java
2334 (rootPaneCheckingEnabled): Renamed from checking.
2335 * javax/swing/JCheckBox.java
2336 (BORDER_PAINTED_FLAT_CHANGED_PROPERTY): New statif field.
2337 * javax/swing/JFrame.java:
2338 Re-formatted a bit and reordered some methods.
2339 (rootPaneCheckingEnabled): Renamed from checking.
2340 (getPreferredSize): Simplified.
2341 * javax/swing/JTextArea.java
2342 (getColumnWidth): New method.
2343 (getLineCount): Likewise.
2344 (getLineStartOffset): Likewise.
2345 (getLineEndOffset): Likewise.
2346 (getLineOfOffset): Likewise.
2347 (getRowHeight): Likewise.
2349 (replaceRange): Likewise.
2350 * javax/swing/JTextField.java
2351 (scrollOffset): new field.
2352 (getScrollOffset): New method.
2353 (setScrollOffset): Likewise.
2354 (getColumnWidth): Likewise.
2355 * javax/swing/JTree.java
2356 (ANCHOR_SELECTION_PATH_PROPERTY): New static field.
2357 (CELL_EDITOR_PROPERTY): Likewise.
2358 (CELL_RENDERER_PROPERTY): Likewise.
2359 (EDITABLE_PROPERTY): Likewise.
2360 (EXPANDS_SELECTED_PATHS_PROPERTY): Likewise.
2361 (INVOKES_STOP_CELL_EDITING_PROPERTY): Likewise.
2362 (LARGE_MODEL_PROPERTY): Likewise.
2363 (LEAD_SELECTION_PATH_PROPERTY): Likewise.
2364 (ROOT_VISIBLE_PROPERTY): Likewise.
2365 (ROW_HEIGHT_PROPERTY): Likewise.
2366 (SCROLLS_ON_EXPAND_PROPERTY): Likewise.
2367 (SELECTION_MODEL_PROPERTY): Likewise.
2368 (SHOWS_ROOT_HANDLES_PROPERTY): Likewise.
2369 (TOGGLE_CLICK_COUNT_PROPERTY): Likewise.
2370 (TREE_MODEL_PROPERTY): Likewise.
2371 (VISIBLE_ROW_COUNT_PROPERTY): Likewise.
2372 (cellEditor): New field.
2373 (invokesStopCellEditing): Likewise.
2374 (largeModel): Likewise.
2375 (rowHeight): Likewise.
2376 (scrollsOnExpand): Likewise.
2377 (selectionModel): Likewise.
2378 (toggleClickCount): Likewise.
2379 (visibleRowCount): Likewise.
2380 (setShowsRootHandles): Fixed typo in method name.
2381 (getCellEditor): New method.
2382 (setCellEditor): Likewise.
2383 (getSelectionModel): Likewise.
2384 (setSelectionModel): Likewise.
2385 (getVisibleRowCount): Likewise.
2386 (setVisibleRowCount): Likewise.
2387 (isLargeModel): Likewise.
2388 (setLargeModel): Likewise.
2389 (getRowHeight): Likewise.
2390 (setRowHeight): Likewise.
2391 (getInvokesStopCellEditing): Likewise.
2392 (setInvokesStopCellEditing): Likewise.
2393 (getToggleClickCount): Likewise.
2394 (setToggleClickCount): Likewise.
2395 (getScrollsOnExpand): Likewise.
2396 (setScrollsOnExpand): Likewise.
2397 * javax/swing/table/DefaultTableColumnModel.java
2398 (addColumnModelListener): Fixed javadoc.
2399 (removeColumnModelListener): Implemented. Fixed javadoc.
2400 (getColumnModelListeners): New method.
2401 * javax/swing/table/JTableHeader.java
2402 (columnModel): Made protected.
2403 (draggedColumn): Likewise.
2404 (draggedDistance): Likewise.
2405 (reorderingAllowed): Likewise.
2406 (resizingAllowed): Likewise.
2407 (resizingColumn): Likewise.
2409 (updateTableInRealTime): Likewise.
2410 (createDefaultColumnModel): Renamed from
2411 createDefaultTableColumnModel.
2412 (setDefaultRenderer): New method.
2413 * javax/swing/table/TableColumn.java
2414 (getPropertyChangeListeners): New method.
2415 * javax/swing/text/DefaultHighlighter.java
2416 (drawsLayeredHighlights): New field.
2417 (getDrawsLayeredHighlights): New method.
2418 (setDrawsLayeredHighlights): Likewise.
2419 * javax/swing/text/DocumentFilter.java
2420 (FilterBypass): New inner class.
2421 (insertString): New method.
2423 (replace): Likewise.
2424 * javax/swing/text/JTextComponent.java
2425 (dragEnabled): New field.
2426 (getSelectedText): New method.
2427 (getDragEnabled): Likewise.
2428 (setDragEnabled): Likewise.
2429 (replaceSelection): Reimplemented.
2430 * javax/swing/text/NavigationFilter.java
2431 (FilterBypass): New inner class.
2432 (NavigationFilter): New method.
2433 (moveDot): Likewise.
2435 * javax/swing/text/SimpleAttributeSet.java
2436 (EMPTY): Made public final.
2438 2004-09-13 Michael Koch <konqueror@gmx.de>
2440 * javax/swing/SpinnerNumberModel.java
2441 (getMinimum): New method.
2442 (setMinimum): Likewise.
2443 (getMaximum): Likewise.
2444 (setMaximum): Likewise.
2445 (getStepSize): Likewise.
2446 (setStepSize): Likewise.
2448 2004-09-12 Michael Koch <konqueror@gmx.de>
2450 * javax/swing/JMenu.java
2451 (getMenuListeners): New method.
2452 (fireMenuSelected): Simplified.
2453 * javax/swing/JRootPane.java
2454 (NONE): New static field.
2456 (PLAIN_DIALOG): Likewise.
2457 (INFORMATION_DIALOG): Likewise.
2458 (ERROR_DIALOG): Likewise.
2459 (COLOR_CHOOSER_DIALOG): Likewise.
2460 (FILE_CHOOSER_DIALOG): Likewise.
2461 (QUESTION_DIALOG): Likewise.
2462 (WARNING_DIALOG): Likewise.
2463 (defaultButton): New field.
2464 (getDefaultButton): New method.
2465 (setDefaultButton): Likewise.
2466 * javax/swing/JScrollPane.java
2467 (getUI): New method.
2469 * javax/swing/JTable.java
2470 (getUI): Javadoc added.
2471 (setUI): New method.
2472 * javax/swing/JViewport.java
2473 (getUI): New method.
2475 * javax/swing/UIDefaults.java
2476 (removePropertyChangeListener): Made public.
2478 2004-09-12 Michael Koch <konqueror@gmx.de>
2480 * javax/swing/JApplet.java, javax/swing/JFrame.java:
2483 2004-09-12 Michael Koch <konqueror@gmx.de>
2485 * javax/swing/AbstractButton.java:
2486 Little re-formatting.
2487 (changeEvent): Made protected.
2488 (fireStateChanged): Removed argument.
2489 (setHorizontalAlignment): Abort method when old value is equal too new
2491 (setHorizontalTextPosition): Likewise.
2492 (setVerticalAlignment): Likewise.
2493 (setVerticalTextPosition): Likewise.
2494 (setBorderPainted): Likewise.
2495 (setIcon): Likewise.
2496 (setText): Likewise.
2497 (setIconTextGap): Likewise.
2498 (setMargin): Likewise.
2499 (setPressedIcon): Likewise.
2500 (setFocusPainted): Likewise.
2501 (setDisabledSelectedIcon): Likewise.
2502 (setRolloverIcon): Likewise.
2503 (setRolloverSelectedIcon): Likewise.
2504 (setSelectedIcon): Likewise.
2505 (setContentAreaFilled): Likewise.
2507 2004-09-11 Kim Ho <kho@redhat.com>
2509 * javax/swing/plaf/basic/BasicArrowButton.java:
2510 Jalopy. Reimplement.
2511 * javax/swing/plaf/basic/BasicScrollBarUI.java:
2513 (arrowIcon, upIcon, downIcon, leftIcon,
2514 rightIcon): Removed.
2515 (createIncreaseButton): Use BasicArrowButton.
2516 (createDecreaseButton): Ditto.
2517 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2518 (createRightOneTouchButton): Remove button border.
2519 (createLeftOneTouchButton): Ditto.
2521 2004-09-11 Michael Koch <konqueror@gmx.de>
2523 * javax/swing/JSpinner.java
2524 (setModel): New method.
2525 * javax/swing/SpringLayout.java
2526 (Constraints): May not be final.
2528 2004-09-11 Michael Koch <konqueror@gmx.de>
2530 * gnu/java/awt/peer/gtk/GtkClipboard.java,
2531 java/awt/datatransfer/Clipboard.java,
2532 java/awt/datatransfer/ClipboardOwner.java:
2533 Reformated to make it use our coding standard.
2535 2004-09-11 Michael Koch <konqueror@gmx.de>
2537 * javax/swing/SpinnerNumberModel.java
2538 (SpinnerNumberModel): Implements java.io.Serializable.
2539 (serialVersionUID): New field.
2540 (SpinnerNumberModel): Added missing @throws tags to javadocs.
2541 * javax/swing/UIManager.java
2543 (getBoolean): Likewise.
2544 (getBorder): Likewise.
2545 (getColor): Likewise.
2546 (getDimension): Likewise.
2547 (getFont): Likewise.
2548 (getIcon): Likewise.
2549 (getInsets): Likewise.
2551 (getString): Likewise.
2553 2004-09-10 Michael Koch <konqueror@gmx.de>
2555 * javax/swing/JPasswordField.java:
2556 Reformated. Implemented construtors.
2557 * javax/swing/plaf/basic/BasicPasswordFieldUI.java
2558 (create): New method.
2559 * javax/swing/text/PlainView.java
2560 (selectedColor): Made package-private to allow access from sub-classes
2561 in same package too.
2562 (unselectedColor): Likewise.
2564 (drawSelectedText): Make protected.
2565 (drawUnselectedText): Likewise.
2566 * javax/swing/text/PasswordView.java: New file.
2567 * Makefile.am: Added javax/swing/text/PasswordView.java.
2568 * Makefile.in: Regenerated.
2570 2004-09-09 Thomas Fitzsimmons <fitzsim@redhat.com>
2572 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Set menu
2574 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (nativeSetHelpMenu):
2576 (addHelpMenu): Elide call to nativeSetHelpMenu.
2577 * java/awt/Menu.java (isTearOff): Rename to tearOff.
2578 (menuSerializedDataVersion): Initialize to 1.
2579 (separatorLabel): Mark transient.
2580 (insert(MenuItem,int)): Implement.
2581 * java/awt/MenuBar.java (setHelpMenu): Call getPeer to retrieve
2583 (countMenus): Count help menu.
2584 * java/awt/MenuComponent.java (nameExplicitlySet, newEventsOnly,
2585 accessibleContext): Add fields.
2586 * java/awt/MenuItem.java: Remove event mask FIXME.
2587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
2588 (gtkWidgetModifyFont): Only set font if label is non-NULL.
2589 (setLabel): Don't treat "-" specially.
2591 2004-09-08 Kim Ho <kho@redhat.com>
2593 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
2594 (stateChanged): Only update the image and the track if
2595 the values are not being adjusted.
2596 (updateChooser): Grab the new mouse point from the
2597 spinner values. Update the image and track only if
2598 the values are not being adjusted.
2599 (getHSBValues): New method.
2600 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
2601 (SliderHandler::stateChanged): Changed internalChange
2602 to updateChange. Set sliderChange.
2603 (SpinnerHandler::stateChanged): Ditto. Set spinnerChange.
2604 (spinnerChange): New variable.
2605 (sliderChange): Ditto.
2606 (updateChange): Renamed from internalChange.
2607 (updateChooser): Do not update sliders if the sliders
2608 were the original source of the change. Ditto for spinners.
2609 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
2610 (mousePress): Don't scroll the JViewport if there will
2611 be extra space at the end of the run. Change layout() to
2613 (calculateSize): Use the component's width/height unless
2614 it is smaller than the max tab width/height.
2615 (calculateTabRects): Subtract the tab run overlay.
2616 (rotateTabRuns): Don't rotate if there's only one run.
2617 (layoutContainer): Reuse the viewport point.
2618 (createLayoutManager): Set the viewport to use no layout.
2619 (paintTabArea): Don't paint the tabs that are not visible
2621 (paintContentBorderTopEdge): Check for scroll tab layout before
2623 (paintContentBorderLeftEdge): Ditto.
2624 (paintContentBorderBottomEdge): Ditto.
2625 (paintContentBorderRightEdge): Ditto.
2627 2004-09-07 Thomas Fitzsimmons <fitzsim@redhat.com>
2629 * gnu/java/awt/peer/gtk/GtkButtonPeer.java (gtkWidgetSetFont):
2631 (gtkWidgetModifyFont): New method.
2632 * gnu/java/awt/peer/gtk/GtkFramePeer.java,
2633 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
2634 (setMenuBarWidth): New method.
2635 (setBounds): Set the menu bar width.
2636 (postConfigureEvent): Set the menu bar width if the window's
2638 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (GtkMenuBarPeer):
2640 (setFont): New method.
2641 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (create): New
2643 (setFont): Likewise.
2644 (GtkMenuComponentPeer): Call create and setFont.
2645 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
2646 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
2647 (connectSignals): Make package private.
2648 (gtkWidgetModifyFont): New method.
2650 (GtkMenuItemPeer): Don't call create.
2651 (setFont): New method.
2652 * java/awt/CheckboxMenuItem.java (addNotify): Fix peer == null
2654 * java/awt/Container.java (validateTree): Fix comment typos.
2655 * java/awt/MenuComponent.java (getFont): Return parent's font if
2657 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
2658 (create): Remove call to deprecated
2659 gtk_check_menu_item_set_show_toggle function.
2661 2004-09-07 Hans Boehm <Hans.Boehm@hp.com>
2663 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2664 (Almost everywhere): add LOG calls, fix, add comments.
2665 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2666 Add explicit check for LOCKED bit in slow case (PR 16662).
2667 (_Jv_MonitorExit): Add casts in debug-only code.
2668 Always release LOCKED bit before throwing exception.
2669 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2670 isn't. Handle easy cases without lock acquisition.
2671 (Object::wait): Use NotifyAll for lock inflation.
2673 2004-09-07 Thomas Fitzsimmons <fitzsim@redhat.com>
2675 * gnu/java/awt/peer/gtk/GtkFramePeer.java,
2676 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
2677 (gtkFixedMove): Remove method.
2679 2004-09-03 Sven de Marothy <sven@physto.se>
2681 * java/awt/geom/Area.java: Implemented.
2683 2004-09-03 Mark Wielaard <mark@klomp.org>
2685 * java/awt/geom/Arc2D.java (ArcIterator): Make package private.
2687 2004-09-03 Sven de Marothy <sven@physto.se>
2689 * java/awt/geom/Arc2D.java
2691 (setArc): Correct documentation to say 'upper left corner'.
2692 (setArcByTangent,contains,intersects): Implemented.
2693 (containsAngle): Corrected to handle negative extents.
2694 (ArcIterator): Set to private.
2695 (ArcIterator): Corrected for CHORD-type arcs, negative extents.
2696 * java/awt/geom/Ellipse2D.java
2698 (contains,intersects): Implemented.
2699 * java/awt/geom/Line2D.java
2700 (linesIntersect): Correct handling of special cases.
2702 2004-09-03 Mark Wielaard <mark@klomp.org>
2704 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Use
2705 Color.BLACK if c == null, don't create new Color object each time.
2706 * gnu/java/awt/peer/gtk/GdkGraphics2D.java (comp): New private
2708 (setColor): Use Color.BLACK when argument null.
2709 (setComposite): Set this.comp field.
2710 (getComposite): Return this.comp, or AlphaComposite.SrcOver when null.
2711 (DrawState.comp): New private field.
2712 (DrawState.save): Save Composite.
2713 (DrawState.restore): Restore comp field.
2714 * java/awt/FontMetrics.java (gRC): New static final private field.
2715 (getLineMetrics(String, Graphics)): New method.
2716 (getLineMetrics(String, int, int, Graphics)): Likewise.
2717 (getLineMetrics(char[], int, int, Graphics)): Likewise.
2718 (getLineMetrics(CharacterIterator, int, int, Graphics)): Likewise.
2719 * javax/swing/JMenu.java (JMenu(String, boolean)): Ignore tearoff
2720 argument. PR SWING/17294.
2721 * javax/swing/plaf/basic/BasicGraphicsUtils.java (): Always use
2722 the fall-back code since none of the TextArea methods are really
2723 implemented now. PR SWING/17296.
2724 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
2725 (GdkGlyphVector_setChars): Replace assert() with if block when
2726 pango_itemize() returns null. PR AWT/17295.
2727 (GdkGlyphVector_allInkExtents): Likewise when vec->glyphitems is null.
2729 2004-09-02 Thomas Fitzsimmons <fitzsim@redhat.com>
2731 * Makefile.am (gtk_c_source_files): Add
2732 gnu_java_awt_peer_gtk_GtkFramePeer.c.
2733 * Makefile.in: Regenerate.
2734 * gnu/java/awt/peer/gtk/GdkGraphics.java (getClipBounds): Remove
2736 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
2737 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2738 (create): Pack GtkButton in GtkEventBox.
2739 (connectJObject): Remove.
2740 (focus_in_cb): New function.
2741 (focus_out_cb): Likewise.
2742 (connectSignals): Connect focus-in-event and focus-out-event
2744 (gtkSetFont): Rename to ...
2745 (gtkWidgetModifyFont): New method.
2746 (gtkWidgetRequestFocus): New method.
2747 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
2748 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
2749 (gtkSetFont): Rename to ...
2750 (gtkWidgetModifyFont): New method.
2751 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2752 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2753 (isInRepaint): New field.
2754 (gtkSetFont): Remove method.
2755 (addExposeFilter): Likewise.
2756 (removeExposeFilter): Likewise.
2757 (gtkWidgetQueueDrawArea): Rename to ...
2758 (gtkWidgetRepaintArea): New method.
2759 (beginNativeRepaint): New method.
2760 (endNativeRepaint): New method.
2761 (setComponentBounds): Move implementation here from
2763 (paint): Remove implementation.
2764 (repaint): Wrap call to gtkWidgetRepaintArea with calls to
2765 beginNativeRepaint and endNativeRepaint.
2766 (setBounds): Use menu bar height in bounds calculation.
2767 (postExposeEvent): Only post paint event if we're not doing a
2769 (gtkWidgetSetParent): Replace gtk_layout_put with gtk_fixed_put.
2770 (setNativeBounds): Replace gtk_layout_move with gtk_fixed_move.
2771 (find_gtk_layout): Remove function.
2772 (filter_expose_event_handler): Likewise.
2773 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (postExposeEvent):
2775 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2776 (setComponentBounds): Call GtkComponentPeer's
2778 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight):
2780 (moveLayout): Rename to ...
2781 (gtkFixedMove): New method.
2782 (gtkLayoutSetVisible): Rename to ...
2783 (gtkFixedSetVisible): New method.
2784 (setMenuBar): Rearrange, to make the three separate cases
2786 (postExposeEvent): Only post paint event if we're not doing a
2788 * gnu/java/awt/peer/gtk/GtkGenericPeer.java,
2789 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c
2790 (gtkWidgetModifyFont): New method.
2791 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2792 (GtkImagePainter(GtkImage,GdkGraphics,int,int,int,int,Color)):
2793 Call run directly, rather than spawning a new thread.
2794 (GtkImagePainter(GtkImage,GdkGraphics,int,int,int,int,int,int,int,int,Color)):
2796 * gnu/java/awt/peer/gtk/GtkLabelPeer.java,
2797 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (gtkSetFont):
2799 (gtkWidgetModifyFont): New method.
2800 (create): Rename ebox to eventbox.
2801 * gnu/java/awt/peer/gtk/GtkListPeer.java,
2802 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
2804 (gtkWidgetModifyFont): New method.
2805 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
2806 (GtkMenuComponentPeer): Set the default font.
2807 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
2808 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2809 (gtkSetFont): Rename to ...
2810 (gtkWidgetModifyFont): New method.
2811 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2812 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
2813 * java/awt/Component.java (locale): Initialize to default
2815 * java/awt/Container.java (invalidateTree): Make
2817 (paint): Paint self first.
2818 (setMenuBar): Call invalidateTree.
2819 * java/awt/Panel.java (dispatchEventImpl): Remove method.
2820 * java/awt/Window.java (show): Call no-parameter variant of
2821 requestFocusInWindow.
2822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (initState):
2823 Remove special case for window widget.
2824 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
2825 (grab_current_drawable): Likewise.
2826 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c
2827 (create): Replace GtkLayout with GtkFixed.
2828 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2829 (pre_event_handler): Remove special cases for GDK_EXPOSE events.
2830 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c: New file.
2831 Move all GtkFramePeer native method implementations here from
2832 gnu_java_awt_peer_gtk_GtkWindowPeer.c.
2833 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2834 Replace GtkLayout with GtkFixed.
2835 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2836 (find_layout): Remove function.
2837 (create): Replace GtkLayout with GtkFixed.
2838 (connectSignals): Remove find_layout call.
2839 (toBack): Replace XFlush with gdk_flush.
2840 (toFront): Replace XFlush with gdk_flush.
2841 Move GtkFramePeer native method implementations to
2842 gnu_java_awt_peer_gtk_GtkFramePeer.c.
2843 * jni/gtk-peer/gtkpeer.h: Remove declaration of find_gtk_layout.
2845 2004-09-02 Michael Koch <konqueror@gmx.de>
2847 * javax/swing/JTextArea.java
2848 (lineWrap): Renamed from "wrapping".
2849 (wrapStyleWord): NEw field.
2850 (getLineWrap): Re-edited javadoc comment.
2851 (setLineWrap): Likewise.
2852 (getWrapStyleWord): New method.
2853 (setWrapStyleWord): Likewise.
2855 2004-08-30 Michael Koch <konqueror@gmx.de>
2857 * javax/swing/plaf/basic/BasicTextAreaUI.java
2858 (create): New method.
2859 * javax/swing/text/DefaultHighlighter.java
2860 (DefaultHighlightPainter.debugRect): Removed.
2861 * javax/swing/text/StyleContext.java
2862 (DEFAULT_STYLE): New field.
2864 2004-08-30 Michael Koch <konqueror@gmx.de>
2866 * javax/swing/plaf/basic/BasicLookAndFeel.java
2867 (initComponentDefaults): Add keybindings for selection.backward and
2868 selection-forward for text components.
2869 * javax/swing/plaf/basic/BasicTextUI.java
2870 (paintSafely): Paint highlight only when something is actually
2872 * javax/swing/text/DefaultCaret.java
2873 (handleHighlight): New method.
2874 (setSelectionVisible): Don't do anything when nothing changes.
2876 (moveDot): Reimplemented. Handle highlight.
2877 (setDot): Set mark too. Handle highlight.
2878 (getSelectionPainter): New method.
2879 * javax/swing/text/DefaultEditorKit.java
2880 (defaultActions): Added new actions for text selection.
2881 * javax/swing/text/DefaultHighlighter.java
2882 (DefaultHighlightPainter): New inner class.
2883 (DefaultPainter): New field.
2884 (paint): Implemented.
2885 * javax/swing/text/PlainView.java
2886 (paint): Don't draw background here again.
2887 * javax/swing/text/Utilities.java
2888 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
2889 (drawTabbedText): Likewise.
2891 2004-08-27 Graydon Hoare <graydon@redhat.com>
2893 * javax/swing/JComponent.java
2894 (resetKeyboardActions): Add null checks.
2896 2004-08-27 Graydon Hoare <graydon@redhat.com>
2898 * javax/swing/DefaultButtonModel.java:
2899 Skip group notification when no group is set.
2901 2004-08-26 Graydon Hoare <graydon@redhat.com>
2903 * javax/swing/JColorChooser.java:
2904 Make a couple inner classes static, for jikes.
2906 2004-08-26 Michael Koch <konqueror@gmx.de>
2908 * javax/swing/plaf/basic/BasicTextUI.java
2909 (RottView.modelToView): New method.
2910 (UpdateHandler): Renamed from EventHandler.
2911 (updateHandler): Renamed from eventHandler.
2912 (modelToView): Implemented.
2913 * javax/swing/text/AbstractDocument.java
2914 (BranchElement.getElement): Return null for non-existing indeces.
2915 (BranchElement.getElementIndex): Return 0 in some corner cases.
2916 * javax/swing/text/FieldView.java
2917 (modelToView): New method.
2918 * javax/swing/text/PlainView.java
2919 (modelToView): Made public.
2921 2004-08-25 Kim Ho <kho@redhat.com>
2923 * Makefile.am: New files.
2924 * Makefile.in: Regenerate.
2925 * gcj/Makefile.in: Regenerate.
2926 * include/Makefile.in: Regenerate.
2927 * java/awt/Color.java: Fix documentation.
2928 (RGBtoHSB): Use floats for conversions.
2929 * javax/swing/ButtonGroup.java: Run Jalopy.
2930 (setSelected): Reimplement.
2931 * javax/swing/DefaultButtonModel.java: Run Jalopy.
2932 (changeState): Let ButtonGroup know that the button
2934 * javax/swing/JColorChooser.java: Implement.
2935 * javax/swing/JLabel.java: Run Jalopy.
2936 * javax/swing/JSpinner.java: Run Jalopy.
2937 (setValue): New method.
2938 * javax/swing/JTabbedPane.java: Run Jalopy.
2939 (removeTabAt): Call correct remove method.
2940 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
2941 (getPreviousValue): Compare minimum value.
2942 * javax/swing/Timer.java: Run Jalopy.
2943 (run): Comment out println.
2944 * javax/swing/ToolTipManager.java:
2945 (mouseMoved): Get new tooltip text for location.
2946 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
2948 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
2950 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
2952 (setSelectedColor): Fire ChangeEvent.
2953 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
2954 New file. Implement.
2955 * javax/swing/colorchooser/DefaultPreviewPanel.java:
2957 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
2959 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
2961 * javax/swing/plaf/basic/BasicArrowButton.java:
2962 (getArrow): Fix size of upward pointing button.
2963 * javax/swing/plaf/basic/BasicColorChooserUI.java:
2965 * javax/swing/plaf/basic/BasicSliderUI.java:
2966 (getWidthOfWidestLabel): Use preferred dimensions.
2967 (getHeightOfTallestLabel): Ditto.
2968 * javax/swing/plaf/basic/BasicSpinnerUI.java:
2970 (mousePressed): Disable changes to spinner if it is not enabled.
2971 * testsuite/Makefile.in: Regenerate.
2974 2004-08-25 Michael Koch <konqueror@gmx.de>
2976 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
2977 javax/swing/plaf/basic/BasicTableUI.java:
2978 Added copyright notice.
2980 2004-08-25 Olga Rodimina <rodimina@redhat.com>
2982 * Makefile.am: Added new files.
2983 * Makefile.in: Regenerate.
2984 * javax/swing/ComboBoxEditor.java: Added javadocs.
2985 * javax/swing/ComboBoxModel.java: Likewise.
2986 * javax/swing/DefaultComboBoxModel.java: Implemented.
2987 * javax/swing/DefaultListCellRenderer.java: Added javadocs
2988 and ran through jalopy to fix formatting style.
2989 (getListCellRendererComponent): Use appropriate border
2990 if renderer has focus and use noFocusBorder when it doesn't.
2991 * javax/swing/JComboBox.java: Implemented.
2992 * javax/swing/JList.java:
2993 (locationToIndex): New Method. Implemented.
2994 (indexToLocation): New Method.
2995 * javax/swing/JPopupMenu.java:
2996 (visible): New field.
2997 (isVisible): Changed to use new field above.
2998 (setVisible): Likewise.
2999 * javax/swing/MutableComboBoxModel.java: Added javadocs.
3000 * javax/swing/plaf/basic/BasicArrowButton.java:
3001 (shadow): Changed default color to Color.gray.
3002 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
3003 UI delegate for JComboBox.
3004 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
3005 Popup menu containing list of JComboBox's items.
3006 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
3007 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
3008 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
3009 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
3010 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3011 (popupMenuWillBecomeVisible): Set selected path to the first
3012 element only if it is of type MenuElement. Also fix formatting
3014 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
3017 2004-08-25 Michael Koch <konqueror@gmx.de>
3019 * javax/swing/text/AbstractDocument.java
3020 (createBranchElement): Use new constructor of BranchElement.
3021 (createLeafElement): Renamed arguments.
3022 (getRootElements): Implemented.
3023 (BranchElement.start): Removed.
3024 (BranchElement.end): Likewise.
3025 (BranchElement.BranchElement): Fixed arguments.
3026 (BranchElement.getEndOffset): Reimplemented.
3027 (BranchElement.getStartOffset): Likewis.
3028 * javax/swing/text/DefaultCaret.java
3029 (paint): Draw simple vertical line as caret instead of a rectangle.
3030 * javax/swing/text/JTextComponent.java
3031 (setText): Use doc directly.
3032 * javax/swing/text/PlainView.java
3033 (nextTabStop): Implemented.
3034 * javax/swing/text/Utilities.java
3035 (drawTabbedText): nextTabStop() returns an absolute x position.
3036 (getTabbedTextWidth): Likewise.
3038 2004-08-24 Graydon Hoare <graydon@redhat.com>
3040 * java/awt/Component.java
3041 (isFocusTraversable): Predicate on isLightweight()
3042 (setFocusable): Set isFocusTraversableOverridden.
3043 (requestFocus): Predicate peer dispatch on !isLightweight()
3044 (requestFocusInWindow): Likewise.
3045 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
3046 * java/awt/Container.java
3047 (dispatchEventImpl): Predicate on event mask.
3048 (LightweightDispatcher): Remove focus machinery.
3049 * java/awt/DefaultFocusTraversalPolicy.java
3050 (accept): Expand predicate to include isFocusable().
3051 * java/awt/DefaultKeyboardFocusManager.java:
3052 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
3053 * java/awt/KeyboardFocusManager.java
3054 (redispatchEvent): Synchronize on event to prevent feedback.
3055 * javax/swing/AbstractButton.java
3056 (ButtonFocusListener): Remove class.
3057 (init): Set focusPainted, focusable.
3058 * javax/swing/ActionMap.java (get): Check parent for null.
3059 * javax/swing/InputMap.java (get): Likewise.
3060 * javax/swing/JComponent.java
3061 (inputMap_whenFocused): New InputMap.
3062 (inputMap_whenAncestorOfFocused): Likewise.
3063 (inputMap_whenInFocusedWindow): Likewise.
3064 (getActionForKeyStroke): Rewrite.
3065 (getConditionForKeystroke): Likewise.
3066 (ActionListenerProxy): New private class.
3067 (setInputMap): Implement.
3068 (getInputMap): Likewise.
3069 (setActionMap): Likewise.
3070 (getActionMap): Likewise.
3071 (processComponentKeyEvent): New empty method.
3072 (processKeyEvent): Implement.
3073 (processKeyBinding): Likewise.
3074 (resetKeyboardActions): Rewrite.
3075 * javax/swing/KeyStroke.java: Rewrite.
3076 * javax/swing/SwingUtilities.java
3077 (notifyAction): Implement.
3078 (replaceUIActionMap): Likewise.
3079 (replaceUIInputMap): Likewise.
3080 * javax/swing/plaf/basic/BasicButtonListener.java
3081 (focusGained): Implement.
3082 (focusLost): Repaint if focusPainted().
3083 (installKeyboardActions): Install pressed / released actions.
3084 (uninstallKeyboardActions): Implement.
3085 * javax/swing/plaf/basic/BasicButtonUI.java
3086 (focusColor): New field.
3087 (installDefaults): Load focus color, install input map.
3088 (installKeyboardActions): Implement.
3089 (uninstallKeyboardActions): Likewise.
3090 (paintFocus): Rewrite.
3091 * javax/swing/plaf/basic/BasicLookAndFeel.java
3092 (Button.focus): New default, midPurple.
3093 * javax/swing/plaf/basic/BasicTextUI.java
3095 (installUI): Get doc from kit, load defaults.
3096 (getKeymapName): Implement.
3097 (createKeymap): Likewise.
3098 (installKeyboardActions): Likewise.
3099 (getInputMap): Likewise.
3100 (getActionMap): Likewise.
3101 (createActionMap): Likewise.
3102 * javax/swing/text/AbstractDocument.java
3103 (getStartPosition): Implement.
3104 (getEndPosition): Likewise.
3105 * javax/swing/text/DefaultEditorKit.java
3106 (CopyAction): New class.
3107 (CutAction): Likewise.
3108 (DefaultKeyTypedAction): Likewise.
3109 (InsertBreakAction): Likewise.
3110 (InsertContentAction): Likewise.
3111 (InsertTabAction): Likewise.
3112 (PasteAction): Likewise.
3113 (defaultActions): New static table.
3114 (createCaret): Implement.
3115 (getActions): Likewise.
3116 * javax/swing/text/JTextComponent.java
3117 (KeymapWrapper): New private class.
3118 (KeymapActionMap): Likewise.
3119 (DefaultKeymap): New class.
3120 (keymaps): New static table.
3121 (keymap): New field.
3122 (getKeymap): Implement.
3123 (removeKeymap): Likewise.
3124 (addKeymap): Likewise.
3125 (setKeymap): Likewise.
3126 (loadKeymap): Likewise.
3127 (getActions): Likewise.
3128 (margin): New field.
3129 (JTextComponent): Build and install default keymap.
3130 * javax/swing/text/TextAction.java
3131 (textAction): Call super properly.
3132 (getTextComponent): Implement.
3133 * javax/swing/text/Utilities.java
3134 (drawTabbedText): Adjust position by ascent.
3136 2004-08-24 David Jee <djee@redhat.com>
3140 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
3141 (setEnabled): Make it a native method.
3142 * java/awt/DefaultKeyboardFocusManager.java
3143 (postProcessKeyEvent): Only post event if the menu item
3145 * java/awt/MenuItem.java:
3146 Private field 'enabled' should be true by default.
3147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
3148 (setEnabled): New function.
3150 2004-08-23 David Jee <djee@redhat.com>
3154 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
3155 (nativeSetHelpMenu): New native method declaration.
3156 (addHelpMenu): Call nativeSetHelpMenu().
3158 * java/awt/MenuBar.java
3159 (setHelpMenu): Call addNotify() on the new help menu.
3160 (add): Call addNotify() on the new menu.
3161 (addNotify): Set the help menu if one exists.
3162 * java/awt/peer/MenuBarPeer.java
3164 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
3165 (nativeSetHelpMenu): New method.
3167 2004-08-17 Graydon Hoare <graydon@redhat.com>
3169 * Makefile.am: Add new files.
3170 * Makefile.in: Regenerate.
3171 * javax/swing/Box.java: Fix setting of layout in ctor.
3172 * javax/swing/JScrollPane.java: Scroll headers as well.
3173 * javax/swing/JTable.java: Reimplement.
3174 * javax/swing/JViewPort.java: Only add non-null children.
3175 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
3176 * javax/swing/Timer.java: Fix stopping null waker.
3177 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
3178 * javax/swing/plaf/basic/BasicTableUI.java: New file.
3179 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
3180 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
3181 * javax/swing/table/DefaultTableModel.java: Clean up.
3182 * javax/swing/table/JTableHeader.java: Implement.
3184 2004-08-14 Mark Wielaard <mark@klomp.org>
3186 * javax/swing/JSpinner.java (getChangeListeners): Remove double
3189 2004-08-14 Mark Wielaard <mark@klomp.org>
3191 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
3192 Declare variables at top of functions/block.
3193 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
3195 2004-08-14 Mark Wielaard <mark@klomp.org>
3197 * java/lang/Rectangle.java (intersects): Check r.width and r.height
3200 2004-08-14 Michael Koch <konqueror@gmx.de>
3202 * javax/swing/text/PlainView.java
3203 (selectedColor): New field.
3204 (unselectedColor): Likewise.
3206 (updateMetrics): New method.
3207 (lineToRect): Likewise.
3208 (modelToView): Likewise.
3209 (drawSelectedText): Use color from JTextComponent ad draw with
3211 (drawUnselectedText): Likewise.
3212 (paint): Initialize helper fields.
3213 * javax/swing/text/View.java
3214 (getChildAllocation): New method.
3215 (getViewIndex): Likewise.
3216 (getToolTipText): Likewise.
3218 2004-08-13 Michael Koch <konqueror@gmx.de>
3220 * javax/swing/text/Utilities.java
3221 (drawTabbedText): Reimplemented.
3222 (getTabbedTextWidth): Likewise.
3224 2004-08-13 Michael Koch <konqueror@gmx.de>
3226 * javax/swing/plaf/basic/BasicTextUI.java
3227 (installDefaults): Install caret and highlighter.
3228 (modelToView): Use Bias.Forward when calling sibling.
3229 * javax/swing/text/AbstractDocument.java
3230 (ElementEdit): Implements DocumentEvent.ElementChange.
3231 (ElementEdit.ElementEdit): New method.
3232 (ElementEdit.getChildrenAdded): Likewise.
3233 (ElementEdit.getChildrenRemoved): Likewise.
3234 (ElementEdit.getElement): Likewise.
3235 (ElementEdit.getIndex): Likewise.
3236 * javax/swing/text/DefaultCaret.java
3238 (textComponent): Renamed from parent, made private.
3239 (selectionVisible): Renamed from vis_sel, made private.
3240 (blinkRate): Renamed from blink, made private.
3241 (magicCaretPosition): Renamed from magic, made private.
3242 (visible): Renamed from vis, made private.
3243 (dot): Made private.
3245 (deinstall): Remove as MouseMotionListener.
3246 (install): Initialize textComponent first. Add as MouseMotionListener.
3247 (paint): Reimplemented.
3248 * javax/swing/text/JTextComponent.java
3249 (setCaret): Deinstall old caret, install new one and fire property
3250 change after setting property.
3251 (setHighlighter): Deinstall old highlighter, install new one and fire
3252 property change after setting property.
3253 (setCaretColor): Fire property change after setting property.
3254 (setDisabledTextColor): Likewise.
3255 (setSelectedTextColor): Likewise.
3256 (setSelectionColor): Likewise.
3257 (modelToView): New method.
3259 2004-08-12 Michael Koch <konqueror@gmx.de>
3261 * javax/swing/text/AbstractDocument.java
3262 (getText): Simplified.
3263 * javax/swing/text/Segment.java
3264 (current): New field.
3265 (current): Reimplemented.
3267 (getIndex): Likewise.
3270 (previous): Likewise.
3271 (setIndex): Likewise.
3273 2004-08-12 Michael Koch <konqueror@gmx.de>
3275 * javax/swing/plaf/basic/BasicButtonUI.java
3276 (defaultTextIconGap): Made protected.
3277 (defaultTextShiftOffset): Likewise.
3278 (textShiftOffset): New field.
3279 (clearTextShiftOffset): New method.
3280 (getTextShiftOffset): Likewise.
3281 (setTextShiftOffset): Likewise.
3283 2004-08-12 Michael Koch <konqueror@gmx.de>
3285 * javax/swing/plaf/basic/BasicTextUI.java
3286 (installUI): Add eventHandler as property listener.
3287 (uninstallUI): remove eventHandler as propert listener.
3288 (installDefaults): Added comment.
3289 (installListeners): Likewise.
3290 (installKeyboardActions): Likewise.
3291 (uninstallDefaults): Likewise.
3292 (uninstallListeners): Likewise.
3293 (uninstallKeyboardActions): Likewise.
3295 2004-08-12 Michael Koch <konqueror@gmx.de>
3297 * javax/swing/text/AbstractDocument.java:
3298 Fixed some typos in comments.
3299 (insertString): Reimplemented.
3301 (replace): New method.
3302 (children): Dont use fully qualified class name.
3303 (DefaultDocumentEvent.offset): Renamed from off.
3304 (DefaultDocumentEvent.length): Renamed from len.
3305 (DefaultDocumentEvent.type): New field.
3306 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
3307 (DefaultDocumentEvent.getType): Implemented.
3309 2004-08-12 Michael Koch <konqueror@gmx.de>
3311 * javax/swing/plaf/basic/BasicTextUI.java
3312 (RootView.textComponent): Removed.
3313 (RootView.RootView): Don't initialize textComponent.
3314 (RootView.getViewFactory): New method.
3315 (EventHandler): New inner class.
3316 (rootView): Initialize at instance creation.
3317 (eventHandler): New field.
3318 (installUI): Don't create view hierarchy directly,
3319 call modelChanged() instead.
3320 (modelChanged): New method.
3321 * javax/swing/text/JTextComponent.java
3322 (setDocument): Fire property change event.
3324 2004-08-12 Michael Koch <konqueror@gmx.de>
3326 * javax/swing/plaf/basic/BasicTextUI.java
3327 (RootView.paint): Removed debug output.
3328 (paintSafely): Draw highlighter before text.
3329 (paintBackground): Use background color of text component.
3330 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
3333 2004-08-12 Michael Koch <konqueror@gmx.de>
3335 * javax/swing/plaf/basic/BasicToolBarUI.java
3336 (BasicToolBarUI): Fixed arguments for constructor.
3337 (createUI): Fixed creation of object.
3339 2004-08-12 Michael Koch <konqueror@gmx.de>
3341 * javax/swing/DefaultListSelectionModel.java
3342 (fireValueChanged): Renamed from fireSelectionValueChanged,
3345 2004-08-11 Michael Koch <konqueror@gmx.de>
3347 * javax/swing/text/TabSet.java
3348 (TabSet): Implements java.io.Serializable.
3349 * javax/swing/text/TabStop.java
3350 (TabStop): Implements java.io.Serializable.
3351 (TabStop): Made public.
3353 2004-08-11 Michael Koch <konqueror@gmx.de>
3355 * javax/swing/JComponent.java
3356 (setUI): Fire PropertyChange.
3357 * javax/swing/JLabel.java
3358 (text): Renamed from labelText.
3359 (horizontalAlignment): New default vlaue.
3360 (icon): Renamed from activeIcon.
3361 (displayedMnemonic): Renamed from mnemonicKey, added default value.
3362 (displayedMnemonicIndex): Renamed from underlineChar.
3363 (setDisplayedMnemonic): Reimplemented.
3364 * javax/swing/JRadioButton.java
3365 (JRadioButton): New constructors.
3366 * javax/swing/JTextField.java
3367 (JTextField): Throw exception if colums < 0, initialitialz
3368 this.columns directly and initialize document with text conditionally.
3370 2004-08-11 Michael Koch <konqueror@gmx.de>
3372 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
3373 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
3374 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
3375 * javax/swing/text/FieldView.java
3376 (paint): Just call super method for now.
3377 * Makefile.am: Added new files.
3378 * Makefile.in: Regenerated.
3380 2004-08-11 Ka-Hing Cheung <kahing@javabsp.org>
3382 * javax/swing/AbstractSpinnerModel.java,
3383 javax/swing/JSpinner.java,
3384 javax/swing/SpinnerNumberModel.java,
3385 javax/swing/plaf/basic/BasicSpinnerUI.java:
3387 * javax/swing/plaf/basic/BasicLookAndFeel.java
3388 (initClassDefaults): Added defaults for BasicSpinnerUI.
3390 2004-08-11 Michael Koch <konqueror@gmx.de>
3392 * Makefile.am: Added new files.
3393 * Makefile.in: Regenerated.
3395 2004-08-11 Michael Koch <konqueror@gmx.de>
3397 * javax/swing/TransferHandler.java,
3398 javax/swing/plaf/basic/ComboPopup.java: New files
3399 * Makefile.am: Added javax/swing/TransferHandler.java and
3400 javax/swing/plaf/basic/ComboPopup.java
3401 * Makefile.in: Regenerated.
3403 2004-08-11 Roman Kennke <roman@ontographics.com>
3405 * javax/swing/text/Utilities.java: New file.
3407 2004-08-11 Michael Koch <konqueror@gmx.de>
3409 * Makefile.am: Added javax/swing/text/Utilities.java.
3410 * Makefile.in: Regenerated.
3412 2004-08-10 Graydon Hoare <graydon@redhat.com>
3414 * javax/swing/text/SimpleAttributeSet.java: New file.
3415 * javax/swing/text/StyleConstants.java: New file.
3416 * javax/swing/text/StyleContext.java: New file.
3417 * javax/swing/text/TabSet.java: New file.
3418 * javax/swing/text/TabStop.java: New file.
3419 * javax/swing/text/AbstactDocument.java:
3420 (AbstractElement): Implement attribute support.
3421 * javax/swing/text/AttributeSet.java
3422 (NameAttribute): New static field.
3423 (ResolveAttribute): New static field.
3424 * Makefile.am: Update for new files.
3425 * Makefile.in: Regenerate.
3427 2004-08-09 Craig Black <craig.black@aonix.com>
3429 * gnu/java/awt/peer/gtk/GdkGraphics.java
3430 (drawImage): Add support for scaling pixmaps.
3431 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
3432 (copyAndScalePixmap): New native method.
3434 2004-08-08 Thomas Fitzsimmons <fitzsim@redhat.com>
3437 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
3438 type-punning compiler warnings using unions.
3439 (throw): Replace bzero with memset.
3441 2004-08-08 Andreas Tobler <a.tobler@schweiz.ch>
3442 Thomas Fitzsimmons <fitzsim@redhat.com>
3444 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
3445 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
3446 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
3447 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3448 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
3450 2004-08-08 Mark Wielaard <mark@klomp.org>
3452 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
3453 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
3454 and stdlib.h, not gtkpeer.h.
3455 (*vm): New static variable.
3456 (areaPreparedID): Make static.
3457 (areaUpdatedID): Likewise.
3458 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
3459 (area_prepared): Likewise.
3460 (area_updated): Likewise.
3462 (initStaticState): Initialize *vm javaVM.
3463 (pumpBytes): Use given env, not global gdk_env.
3465 2004-08-08 Mark Wielaard <mark@klomp.org>
3467 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
3470 2004-08-01 Sven de Marothy <sven@physto.se>
3472 * java/awt/geom/CubicCurve2D.java: Reindent.
3473 (contains): Implemented.
3474 (intersects): Implemented.
3475 * java/awt/geom/QuadCurve2D.java: Likewise.
3476 * java/awt/geom/GeneralPath.java: Reindent and document.
3477 Fully (re)implemented using separate xpoints and ypoints
3479 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
3481 2004-08-08 Michael Koch <konqueror@gmx.de>
3483 * javax/swing/JMenuItem.java
3484 (getMenuDragMouseListeners): New method.
3485 (getMenuKeyListeners): Likewise.
3487 2004-08-08 Michael Koch <konqueror@gmx.de>
3489 * javax/swing/AbstractButton.java
3490 (model): Made protected.
3491 (actionListener): Likewise.
3492 (changeListener): Likewise.
3493 (itemListener): Likewise.
3494 (multiClickThreshhold): New field.
3495 (getActionListeners): New method.
3496 (getChangeListeners): Likewise.
3497 (getItemListeners): Likewise.
3498 (fireItemStateChanged): Simplified implementation.
3499 (fireActionPerformed): Likewise.
3500 (fireStateChanged): Likewise.
3501 (getMultiClickThreshhold): New method.
3502 (setMultiClickThreshhold): Likewise.
3504 2004-08-08 Tom Tromey <tromey@redhat.com>
3506 * java/awt/image/Kernel.java (clone): Use super.clone().
3508 2004-08-05 David Jee <djee@redhat.com>
3511 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3512 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
3513 (nativeSetIconImageFromData): New native method declaration.
3514 (setIconImage): Handle images not produced from GdkPixbufDecoder.
3515 * gnu/java/awt/peer/gtk/GtkImage.java
3516 (getPixelCache): New method.
3517 (getColorModel): New method.
3518 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3519 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
3520 (free_pixbuf_data): New helper function.
3521 (nativeSetIconImageFromData): New function.
3523 2004-08-03 Graydon Hoare <graydon@redhat.com>
3526 * javax/swing/JLayeredPane.java
3527 (setLayer): Permit changing layer after addition.
3528 (setPosition): Permit over-length positions.
3529 (layerToRange): Compare intValue()s.
3530 * javax/swing/Box.java (createHorizontalBox): Implement.
3531 (createRigidArea): Likewise.
3532 (createVerticalBox): Likewise.
3534 2004-08-03 Kim Ho <kho@redhat.com>
3536 * java/awt/Component.java:
3537 (processMouseEvent): Consume event after
3538 listeners process it.
3539 (processMouseMotionEvent): ditto.
3540 (processMouseWheelEvent): ditto.
3541 * java/awt/Container.java:
3542 (acquireComponentForMouseEvent):
3543 Do not dispatch to events that have been
3544 removed from the Container.
3545 (handleEvent): Consume the MouseEvents.
3546 * javax/swing/RepaintManager.java:
3547 (paintDirtyRegions): Do not add to list of
3548 damaged areas if the component has no root.
3550 2004-07-31 Michael Koch <konqueror@gmx.de>
3552 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
3554 2004-07-31 Mark Wielaard <mark@klomp.org>
3556 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
3557 null when a MissingResourceException is thrown. Should never happen.
3559 2004-07-31 Mark Wielaard <mark@klomp.org>
3561 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
3562 when argument is null.
3564 2004-07-31 Mark Wielaard <mark@klomp.org>
3566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3567 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
3568 Define hid at start of function.
3569 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
3572 2004-07-31 Mark Wielaard <mark@klomp.org>
3574 * gnu/java/awt/EmbeddedWindow.java: Reindent.
3575 * javax/swing/JButton.java: Reindent.
3576 * javax/swing/JCheckBox.java: Reindent.
3578 2004-07-31 Mark Wielaard <mark@klomp.org>
3580 * Makefile.am (gtk_c_source_files): Added
3581 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
3582 (gtk_awt_peer_sources): Added
3583 gnu/java/awt/peer/gtk/GThreadMutex.java and
3584 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
3585 * Makefile.in: Regenerated.
3587 2004-07-31 Archie Cobbs <archie@dellroad.org>
3589 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
3591 2004-07-31 Steven Augart <augart@watson.ibm.com>
3593 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
3594 Added jfieldID, jmethodID.
3596 2004-07-31 Mark Wielaard <mark@klomp.org>
3598 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3599 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
3600 gdk_env before calling any gdk or gtk function.
3602 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
3603 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
3604 (run): Set gtkInitCalled.
3606 2004-07-31 Steven Augart <augart@watson.ibm.com>
3608 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
3609 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
3611 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3612 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
3613 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
3615 (init_glib_threads): New function.
3617 2004-07-31 Mark Wielaard <mark@klomp.org>
3619 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
3620 PRIORITY when not already defined in header file.
3622 2004-07-31 Mark Wielaard <mark@klomp.org>
3624 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
3625 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
3627 2004-07-31 Steven Augart <augart@watson.ibm.com>
3629 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
3630 Implemented missing functions for GTK2.
3631 Added error handling.
3632 Renamed static functions out of the g_ namespace.
3633 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
3634 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
3635 Rewrote global-reference code.
3636 Eliminated cascading errors.
3637 (mutex_trylock_jni_impl) Fully implemented.
3638 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
3640 (setup_cache) New function.
3641 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
3642 bug where they were not unlocking the GMutex associated with the
3643 condition variable during the wait on that condition variable.
3645 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
3646 native/jni/gtk-peer/gthread-jni.c,
3647 native/jni/gtk-peer/gthread-jni.h
3648 (g_thread_jni_functions): Renamed to ...
3649 (portable_native_sync_jni_functions): this name.
3650 (gdk_vm): Renamed to...
3651 (the_vm): this name.
3653 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3654 (gdk_vm): Removed duplicate definition.
3655 (gtkInit): Removed stray message to stdout.
3656 (gtkInit): Use g_malloc and g_free instead of malloc and free.
3657 (gtkInit): Fix a const assignment bug.
3658 (gtkInit): Simplified code.
3660 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
3661 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
3662 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
3663 gnu/java/awt/peer/gtk/GThreadMutex.java:
3666 2004-07-30 Mark Wielaard <mark@klomp.org>
3668 * javax/swing/Box.java: Put FIXME comment above class declaration.
3669 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3670 * javax/swing/JCheckBox.java: Likewise.
3671 * javax/swing/JDialog.java: Likewise.
3672 * javax/swing/JRadioButton.java: Likewise.
3673 * javax/swing/JToggleButton.java: Likewise.
3674 * javax/swing/UIManager.java: Likewise.
3675 * javax/swing/border/TitledBorder.java: Likewise.
3676 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3677 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3678 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3679 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3680 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3681 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3682 * javax/swing/text/JTextComponent.java: Likewise.
3684 2004-07-30 David Jee <djee@redhat.com>
3687 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3688 (setIconImage): Add a FIXME for unhandled cases.
3690 2004-07-30 Thomas Fitzsimmons <fitzsim@redhat.com>
3693 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
3694 getModifiers. Replace old button masks with new ones.
3695 * gnu/awt/xlib/XEventLoop.java: Likewise.
3696 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
3697 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3698 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3699 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
3700 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
3701 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
3702 * java/awt/Component.java: Replace old modifier masks with new
3704 * java/awt/Container.java: Call getModifiersEx, not
3706 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
3708 * javax/swing/JMenuItem.java: Replace old button masks with new
3710 * javax/swing/KeyStroke.java: Call getModifiersEx, not
3712 * javax/swing/SwingUtilities.java: Likewise.
3713 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
3714 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
3715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
3716 mask macros with new ones.
3717 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
3718 macros with new ones representing new masks.
3720 2004-07-30 Craig Black <craig.black@aonix.com>
3722 * gnu/java/awt/peer/gtk/GdkGraphics.java
3723 (drawRoundRect): Implemented.
3724 (fillRoundRect): Implemented.
3725 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3726 (drawRoundRect): Reimplemented to match GdkGraphics.
3727 (fillRoundRect): Reimplemented to match GdkGraphics.
3729 2004-07-30 Mark Wielaard <mark@klomp.org>
3731 * Makefile.in: Regenerated.
3733 2004-07-30 Michael Koch <konqueror@gmx.de>
3735 * gnu/java/awt/EmbeddedWindow.java
3736 (addNotify): Use AccessController to allow execution of privileged
3739 2004-07-30 Michael Koch <konqueror@gmx.de>
3741 * gnu/java/awt/EmbeddedWindow.java
3743 (addNotify): Set peer via reflection.
3744 (setWindowPeer): Removed.
3745 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3746 * Makefile.am (nat_source_files):
3747 Removed gnu/java/awt/natEmbeddedWindow.cc.
3749 2004-07-30 Bryce McKinlay <mckinlay@redhat.com>
3751 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
3752 and gnu/java/security/action/SetAccessibleAction.java.
3754 2004-07-30 Bryce McKinlay <mckinlay@redhat.com>
3756 * gnu/java/security/action/GetPropertyAction.java (setParameters):
3757 Renamed from 'setName'. New 2-argument form with default value.
3758 (run): Pass default 'value' parameter to System.getProperty().
3759 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
3762 2004-07-30 Bryce McKinlay <mckinlay@redhat.com>
3764 * gnu/java/security/action/GetPropertyAction.java: New class.
3765 * gnu/java/security/action/SetAccessibleAction.java: New class.
3767 2004-07-30 David Jee <djee@redhat.com>
3769 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3770 (setIconImage): Check if image is null.
3772 2004-07-30 David Jee <djee@redhat.com>
3774 * gnu/java/awt/peer/gtk/GtkFramePeer.java
3775 (create): Set the icon image.
3776 (nativeSetIconImage): New native method declaration.
3777 (setIconImage): Implement.
3778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3779 (nativeSetIconImage): New function.
3781 2004-07-30 Dalibor Topic <robilad@kaffe.org>
3783 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3784 (filenameFilterCallback): Declare local variable accepted before use.
3786 2004-07-30 Dalibor Topic <robilad@kaffe.org>
3788 * gnu/java/awt/ComponentDataBlitOp.java:
3791 2004-07-30 Tom Tromey <tromey@redhat.com>
3793 * gnu/java/awt/peer/GLightweightPeer.java,
3794 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
3795 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3796 javax/swing/JScrollPane.java: Removed
3799 2004-07-30 David Jee <djee@redhat.com>
3801 * java/awt/DefaultKeyboardFocusManager.java
3802 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
3803 event. Fix shift modifier checking.
3804 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
3805 (accel_attach): Remove.
3806 (setupAccelGroup): Remove calls to accel_attach.
3808 2004-07-30 Thomas Fitzsimmons <fitzsim@redhat.com>
3810 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
3811 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
3813 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
3815 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
3816 * Makefile.in: Regenerate.
3817 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3818 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3819 (create(String)): New method.
3820 (create): Call new create method.
3821 (getArgs): Remove method.
3822 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
3823 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
3824 (nativeCreate): Rename to create.
3825 (gtkSetLabel): Rename to gtkButtonSetLabel.
3826 (gtkToggleButtonSetActive): New method.
3827 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
3828 (setState): Replace set call with gtkToggleButtonSetActive.
3829 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
3830 (getArgs): Remove method.
3831 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3832 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3833 (gtkWidgetSetSensitive): New method.
3834 (gtkWidgetSetParent): Likewise.
3835 (GtkComponentPeer): Call setParent, setComponentBounds and
3836 setVisibleAndEnabled.
3837 (setParent): New method.
3838 (setComponentBounds): New method.
3839 (setVisibleAndEnabled): New method.
3840 (setEnabled): Call gtkWidgetSetSensitive.
3841 (getArgs): Remove method.
3842 Remove all set methods.
3843 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
3844 gtkWindowSetModal, setTitle and setResizable.
3845 (getArgs): Remove method.
3846 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3847 (setComponentBounds): New method.
3848 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
3849 Replace set call with gtkWindowSetResizable.
3850 (getArgs): Remove method.
3851 (create): Call setTitle and setResizable.
3852 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
3853 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3854 (gtkWindowSetTitle): New method.
3855 (gtkWindowSetResizable): New method.
3856 (gtkWindowSetModal): New method.
3857 (setParent): New method.
3858 (setVisibleAndEnabled): New method.
3859 (getArgs): Remove method.
3860 (setTitle): Call gtkWindowSetTitle.
3861 (setResizable): Call gtkWindowSetResizable.
3862 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
3863 and off locking instrumentation.
3865 2004-07-29 Kim Ho <kho@redhat.com>
3867 * Makefile.am: Add new file.
3868 * Makefile.in: Regenerate.
3869 * gcj/Makefile.in: Regenerate
3870 * include/Makefile.in:
3871 * java/awt/Container.java:
3872 (acquireComponentForMouseEvent): Respect
3873 the event mask when looking for candidate.
3874 * javax/swing/JComponent.java:
3875 Remove toolTip field.
3876 (createToolTip): Create a tooltip on demand.
3877 (setToolTipText): Register with the ToolTipManager.
3878 (getToolTipText(MouseEvent)): Return getToolTipText().
3879 * javax/swing/JToolTip.java: Implement.
3880 * javax/swing/Timer.java: Jalopy.
3881 (restart): Call stop, then start.
3882 (stop): Interrupt the timer rather than wait for
3883 the timer to come to a stop naturally.
3884 * javax/swing/ToolTipManager.java: Implement.
3885 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3886 Change ToolTip.background color.
3887 * javax/swing/plaf/basic/BasicToolTipUI.java:
3889 * testsuite/Makefile.in: Regenerate
3891 2004-07-29 Jerry Quinn <jlquinn@optonline.net>
3893 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
3894 constructor param comments.
3896 2004-07-28 Thomas Fitzsimmons <fitzsim@redhat.com>
3898 * java/awt/Component.java: Document AWT 1.0 event handler
3901 2004-07-22 Roman Kennke <roman@ontographics.com>
3903 * javax/swing/Box.java:
3904 (createGlue): Implemented
3905 (createHorizontalGlue): Implemented
3906 (createHorizontalStrut): Implemented
3907 (createVerticalGlue): Implemented
3908 (createVerticalStrut): Implemented
3910 2004-07-26 David Jee <djee@redhat.com>
3912 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
3913 (GtkChoicePeer): Do not automatically select first item.
3914 (getHistory): Remove.
3915 (nativeGetSelected): New method.
3916 (nativeRemoveAll): New method.
3917 (add): Use nativeGetSelected() instead of getHistory().
3919 (removeAll): Call nativeRemoveAll().
3920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
3921 (create): Migrate to GtkComboBox.
3923 (nativeAdd): Likewise.
3924 (nativeRemove): Likewise.
3926 (nativeRemoveAll): New method.
3927 (nativeGetSelected): New method.
3928 (selection_changed): New method.
3929 (getHistory): Remove.
3930 (item_activate): Remove.
3931 (item_removed): Remove.
3932 (connect_choice_item_selectable_hook): Remove.
3934 2004-07-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3936 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
3937 variable in setEditable call.
3939 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
3940 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
3941 (gtkWidgetSetBackground): New method.
3942 (gtkWidgetSetForeground): Likewise.
3943 (create): Set peer's editable state based on awtComponent's.
3945 * java/awt/Button.java (Button()): Use empty string rather than
3946 null in no-label constructor.
3948 2004-07-24 Roman Kennke <roman@ontographics.com>
3950 * javax/swing/BoxLayout.java: Reimplement.
3952 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3954 * gnu/java/awt/peer/gtk/GdkGraphics.java,
3955 gnu_java_awt_peer_gtk_GdkGraphics.c
3956 (initState(GtkComponentPeer)): Don't return array of colour
3958 (GdkGraphics(int,int)): Set default font to size 12.
3959 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
3960 component's foreground colour.
3961 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
3962 gnu_java_awt_peer_gtk_GdkGraphics2D.c
3963 (initState(GtkComponentPeer)): Don't return array of colour
3965 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
3966 colours to component's colours.
3967 (current_colors_of_widget): Remove function.
3968 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
3969 Return a new graphics object.
3970 * java/awt/Font.java (toString): Fix format.
3971 * java/awt/Graphics.java (toString): Likewise.
3973 2004-07-23 Craig Black <craig.black@aonix.com>
3975 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
3976 (addTearOff): New function.
3977 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
3979 (init): Call addTearOff() when menu.isTearOff().
3981 2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
3983 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
3984 Default implementation.
3985 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
3986 Implement using GdkPixbufDecoder.
3988 2004-07-21 David Jee <djee@redhat.com>
3990 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3991 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
3992 setting the size of GtkFileDialogPeers.
3993 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3994 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
3995 use their default sizes rather than their natural requisitions.
3997 2004-07-21 Michael Koch <konqueror@gmx.de>
3999 * javax/swing/JFormattedTextField.java
4000 (JFormattedTextField): Implemented.
4001 * javax/swing/text/DefaultEditorKit.java
4002 (BeepAction): New inner class.
4003 * javax/swing/text/Segment.java
4004 (partialReturn): New field.
4005 (setPartialReturn): New method.
4006 (isPartialReturn): Likewise.
4007 * javax/swing/text/View.java
4008 (createFragment): Fixed typo.
4009 (getStartOffset): New method.
4010 (getEndOffset): Likewise.
4012 2004-07-21 Michael Koch <konqueror@gmx.de>
4014 * javax/swing/table/DefaultTableColumnModel.java
4015 (serialVersionUID): Made private.
4016 (listenerList): Initialize.
4017 (changeEvent): Initialize.
4018 * javax/swing/table/JTableHeader.java
4019 (JTableHeader): New constructors.
4020 (createDefaultColumnModel): New method.
4021 * javax/swing/table/TableColumn.java
4022 (setHeaderRenderer): Simplified code.
4023 (setCellRenderer): Likewise.
4024 (setWidth): Likewise.
4026 2004-07-20 Michael Koch <konqueror@gmx.de>
4028 * javax/swing/JFormattedTextField.java
4029 (setDocument): Implemented.
4030 * javax/swing/JRootPane.java:
4032 * javax/swing/JTable.java
4033 (getDefaultRenderer): New method.
4034 * javax/swing/JTextField.java
4035 (setFont): Likewise.
4036 (getPreferredSize): Likewise.
4037 * javax/swing/JToggleButton.java
4038 (getAccessibleContext): Fix javadoc.
4039 * javax/swing/JTree.java:
4041 * javax/swing/JViewport.java:
4044 2004-07-20 Michael Koch <konqueror@gmx.de>
4046 * javax/swing/JTable.java
4047 (autoCreateColumnsFromModel): New field.
4048 (autoResizeMode): Likewise.
4049 (cellEditor): Likewise.
4050 (cellSelectionEnabled): Likewise.
4051 (columnModel): Likewise.
4052 (dataModel): Likewise.
4053 (defaultEditorsByColumnClass): Likewise.
4054 (defaultRenderersByColumnClass): Likewise.
4055 (editingColumn): Likewise.
4056 (editingRow): Likewise.
4057 (gridColor): Likewise.
4058 (preferredViewportSize): Likewise.
4059 (rowHeight): Likewise.
4060 (rowMargin): Likewise.
4061 (rowSelectionAllowed): Likewise.
4062 (selectionBackground): Likewise.
4063 (selectionForeground): Likewise.
4064 (selectionModel): Likewise.
4065 (showHorizontalLines): Likewise.
4066 (showVerticalLines): Likewise.
4067 (tableHeader): Likewise.
4068 (JTable): Implemented.
4069 (getColumnModel): Likewise.
4070 (getSelectedRow): Likewise.
4071 (getSelectionModel): Likewise.
4072 (setModel): Likewise.
4073 (setSelectionModel): Likewise.
4074 (createScrollPaneForTable): New method.
4075 (createDefaultDataModel): Likewise.
4076 (createDefaultListSelectionModel): Likewise.
4077 (getModel): Likewise.
4078 (getTableHeader): Likewise.
4079 (setTableHeader): Likewise.
4080 (getColumnSelectionAllowed): Likewise.
4081 (setColumnSelectionAllowed): Likewise.
4082 (getRowSelectionAllowed): Likewise.
4083 (setRowSelectionAllowed): Likewise.
4084 (getAutoResizeMode): Likewise.
4085 (setAutoResizeMode): Likewise.
4086 (getColumnCount): Likewise.
4087 (getRowCount): Likewise.
4088 (getCellRenderer): Likewise.
4089 * javax/swing/JTree.java
4090 (cellRenderer): New field.
4091 (editable): Likewise.
4092 (rootVisible): Likewise.
4093 (showsRootHandles): Likewise.
4094 (getModel): New method.
4095 (setModel): Likewise.
4096 (isEditable): Likewise.
4097 (setEditable): Likewise.
4098 (isRootVisbile): Likewise.
4099 (setRootVisible): Likewise.
4100 (getShowsRootHandles): Likewise.
4101 (setShowRootHandles): Likewise.
4102 (getCellRenderer): Likewise.
4103 (setCellRenderer): Likewise.
4105 2004-07-20 David Jee <djee@redhat.com>
4107 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
4108 Collect all native method declaration at the top.
4109 (create): Set the filename filter if necessary.
4110 (setDirectory): Call nativeSetDirectory().
4111 (setFilenameFilter): Implement.
4112 (filenameFilterCallback): New method.
4113 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4114 (create): Configure dialog to show hidden files.
4115 (filenameFilterCallback): New function.
4116 (nativeSetFilenameFilter): New function.
4117 (nativeSetDirectory): New function.
4119 2004-07-20 Michael Koch <konqueror@gmx.de>
4121 * javax/swing/JTextArea.java
4122 (setLineWrap): Fire property change event after new value is set.
4123 (setTabSize): Likewise.
4125 2004-07-01 Mark Wielaard <mark@klomp.org>
4127 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
4128 on notifier object before calling notifyAll().
4130 2004-07-16 Graydon Hoare <graydon@redhat.com>
4132 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
4133 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
4134 * javax/swing/ScrollPaneLayout.java: Likewise.
4136 2004-07-16 Kim Ho <kho@redhat.com>
4138 * javax/swing/plaf/basic/BasicSliderUI.java:
4140 (paintTrack): Fill the track before painting
4143 2004-07-16 Graydon Hoare <graydon@redhat.com>
4145 patch from Roman Kennke <roman@ontographics.com>
4146 * javax/swing/Spring.java: New file.
4147 * javax/swing/SpringLayout.java: New file.
4148 * Makefile.am: Add new files.
4149 * Makefile.in: Regenerate.
4151 2004-07-15 Kim Ho <kho@redhat.com>
4153 * javax/swing/DefaultDesktopManager.java:
4154 (findMinimum): Removed.
4155 (resizeFrame): Trust the UI to pass valid
4157 * javax/swing/JOptionPane.java:
4158 Implemented showInternalXXXDialog methods.
4159 (startModal): New method.
4160 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4161 (BorderListener::mouseDragged): Verify that the new
4162 bounds are valid before passing them to the DesktopManager.
4163 (preferredLayoutSize): Delegate
4165 (minimumLayoutSize): Ditto.
4166 (getSize): New method.
4167 (GlassPaneDispatcher): Reimplemented by copying
4168 a stripped down LightweightDispatcher from Container.
4169 (getMinimumSize): Call minimumLayoutSize.
4170 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
4172 (mousePressed): Add ability to properly close
4174 * javax/swing/plaf/basic/BasicToolBarUI.java:
4175 (DragWindow): Set owner for DragWindow.
4177 2004-07-15 David Jee <djee@redhat.com>
4179 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
4180 (create(GtkContainerPeer)): New native method.
4181 (create()): Call native create(), passing in the parent frame
4182 as the paramter. Natively set the current file and directory.
4183 (setFile): Construct an absolute filename before passing it to
4185 (nativeGetDirectory): New method.
4186 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4187 (window_closed): Removed.
4188 (ok_clicked): Likewise.
4189 (cancel_clicked): Likewise.
4190 (handle_response): New method.
4191 (create): Use GtkFileChooserDialog.
4192 (connectSignals): Connect to handle_response.
4193 (nativeGetDirectory): New method.
4194 (nativeSetFile): Use GtkFileChooserDialog.
4196 2004-07-15 Jerry Quinn <jlquinn@optonline.net>
4198 * java/awt/image/ShortLookupTable.java: New file.
4199 * java/awt/image/ByteLookupTable.java: New file.
4200 * Makefile.am: Added new files.
4201 * Makefile.in: Regenerated.
4203 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4205 * java/awt/image/LookupTable.java: New file.
4206 * Makefile.am: Added new file.
4207 * Makefile.in: Regenerated.
4209 2004-07-14 Jerry Quinn <jlquinn@optonline.net>
4211 * java/awt/image/Kernel.java: New file.
4212 * Makefile.am: Added new file.
4213 * Makefile.in: Regenerated.
4215 2004-07-13 Kim Ho <kho@redhat.com>
4217 * javax/swing/JRootPane.java:
4219 (layoutContainer): Set the glasspane's size to
4220 be the same as the content pane.
4221 (createGlassPane): Set opaque property to false.
4223 2004-07-13 Olga Rodimina <rodimina@redhat.com>
4225 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
4226 * javax/swing/JMenu.java: Likewise.
4227 * javax/swing/JMenuBar.java: Likewise.
4228 (MARGIN_CHANGED_PROPERTY): New property.
4229 (setMargin): Implemented.
4230 * javax/swing/JMenuItem.java: Fixed javadocs.
4231 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
4232 (LABEL_CHANGED_PROPERTY): New property.
4233 (add): changed to use createActionComponent.
4234 (createActionComponent): Implemented.
4235 (setLabel): Fire PropertyChangeEvent if label property
4237 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
4238 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
4239 (ContainerHandler): Repaint if margin property has changed.
4240 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4241 (installUI): Call installComponents().
4242 (uninstallUI): Call uinstallComponents().
4243 * javax/swing/plaf/basic/BasicMenuUI.java:
4245 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4248 2004-07-13 Kim Ho <kho@redhat.com>
4250 * javax/swing/plaf/basic/BasicToolBarUI.java:
4251 (DragWindow): Use the right constructor.
4253 2004-07-13 Kim Ho <kho@redhat.com>
4255 * javax/swing/JToolBar.java:
4256 (layoutContainer): Use getComponents.
4257 * javax/swing/plaf/basic/BasicToolBarUI.java:
4258 (DragWindow): Don't use SwingUtilities'
4260 (ToolBarDialog): ditto.
4262 2004-07-12 Kim Ho <kho@redhat.com>
4264 * Makefile.am: Added new file.
4265 * Makefile.in: Regenerated.
4266 * gcj/Makefile.in: Regenerated.
4267 * include/Makefile.in: Regenerated.
4268 * javax/swing/AbstractButton.java:
4269 Add rollOverEnabled property.
4270 (setRolloverEnabled): Use new property.
4271 (isRolloverEnabled): Use new property.
4272 * javax/swing/JTabbedPane.java:
4273 (setComponent): Remove useless JTabbedPane.this.
4274 * javax/swing/JToolBar.java: Finish implementation.
4275 * javax/swing/plaf/basic/BasicArrowButton.java:
4276 (paint): Moved border painting to a border.
4277 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4278 Change JToolBar look and feel defaults.
4279 * javax/swing/plaf/basic/BasicOptionPaneUI.java
4280 (actionPerformed): Return Integer index instead of name.
4281 (addButtonComponents): Check to see if component is
4283 (createMessageArea): Don't use components that are not
4285 (getIconForType): Use temporary icons.
4286 * javax/swing/plaf/basic/BasicSliderUI.java:
4287 (mousePressed): Do not return if it's on thumb.
4288 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
4289 (paintMinorTickForVertSlider): ditto.
4290 (paintMajorTickForHorizSlider): ditto.
4291 (paintMajorTickForVertSlider): ditto.
4292 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4293 Add a border around the SplitPaneDivider.
4294 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
4296 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
4297 New file. Implemented.
4298 * javax/swing/plaf/basic/BasicToolBarUI.java:
4300 * testsuite/Makefile.in: Regenerated.
4302 2004-07-12 David Jee <djee@redhat.com>
4304 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4305 (imageComplete): Call image.imageComplete().
4306 * java/awt/image/MemoryImageSource.java:
4307 Reimplement consumers as a Vector instead of a Hashtable. This is
4308 because enumeration on a Hashtable is not thread-safe.
4309 (addConsumer): Adapt to Vector consumers.
4310 (isConsumer): Adapt to Vector consumers.
4311 (removeConsumer): Adapt to Vector consumers.
4312 (startProduction): Adapt to Vector consumers. Call imageComplete()
4313 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
4314 (newPixels): Adapt to Vector consumers.
4315 (sendPicture): Set the color model of the image consumer.
4316 (newPixels(IIII)): Adapt to Vector consumers.
4317 (newPixels(IIIIB)): Adapt to Vector consumers.
4319 2004-07-12 Graydon Hoare <graydon@redhat.com>
4321 * javax/swing/Timer.java (run): Queue events each time cycle.
4323 2004-07-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4325 * java/awt/Component.java (requestFocus()): Don't handle Panels
4327 (requestFocus(boolean)): Likewise.
4328 (requestFocusInWindow(boolean)): Likewise.
4329 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
4330 Set GTK_CAN_FOCUS flag.
4332 2004-07-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4334 * java/awt/Component.java (deliverEvent): Implement.
4335 (postEvent): Implement.
4336 (handleEvent): Implement.
4337 (translateEvent): New method.
4338 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
4339 * java/awt/Container.java (deliverEvent): Implement.
4340 * java/awt/Event.java (paramString): Fix formatting.
4341 * java/awt/Font.java (toString): Likewise.
4342 * java/awt/Window.java (postEvent): Implement.
4344 2004-07-10 Thomas Fitzsimmons <fitzsim@redhat.com>
4346 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
4347 Set window's focus owner upon receiving a FOCUS_LOST event.
4348 * java/awt/Window.java (Window()): Refocus the previously
4349 focused component within the window when the window regains the
4351 (setFocusOwner): New method.
4352 * java/awt/Component.java (requestFocus): Add FIXME.
4354 * libgcj.pc.in: Remove library flags.
4356 2004-07-10 Graydon Hoare <graydon@redhat.com>
4358 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
4359 Make method non-static.
4360 * javax/swing/AbstractButton.java:
4361 Rename fields to match property names where possible.
4362 (iconTextGap): New property.
4363 * javax/swing/JCheckBox.java: Match AbstractButton changes.
4364 (init) New method, call from after various constructors.
4365 * javax/swing/JComponent.java (revalidate):
4366 Invalidate before queueing repair.
4367 * javax/swing/JList.java (getPreferredScrollableViewportSize):
4368 Reimplement in terms of visibleRowCount property.
4369 * javax/swing/JMenuButton.java: Match AbstractButton changes.
4370 * javax/swing/JScrollPane.java (createScrollListener):
4371 Remove tracing chatter.
4372 * javax/swing/JToggleButton.java: Match AbstractButton changes.
4373 * javax/swing/RepaintManager.java (addInvalidComponent):
4375 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
4377 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
4378 Mimic sun behavior on top left/right positioning.
4379 * javax/swing/ViewportLayout.java (preferredLayoutSize):
4380 Remove mistaken use of preferredScrollableViewportSize here.
4381 (layoutContainer): Use view's preferred size as basis.
4382 * javax/swing/plaf/basic/BasicButtonUI.java:
4383 Set, get, and use textIconGap property.
4384 (paint) Paint text returned from layout (with ellipsis).
4385 * javax/swing/plaf/basic/BasicListUI.java:
4386 Remove tracing chatter, correct various minor calculations.
4387 (getCellBounds): Update layout state before calculating.
4388 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
4389 Use margin default similar to sun's.
4390 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
4391 (createIncreaseIcon): Center icon, minimize margins.
4392 (createDecreaseIcon): Likewise.
4393 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
4395 (installUI): Call it.
4396 (uninstallDefaults): Implement.
4397 (uninstallUI): Call it.
4398 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
4399 Call existing Window constructor.
4400 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
4401 Set clip before painting.
4403 2004-07-10 Michael Koch <konqueror@gmx.de>
4405 * javax/swing/text/Position.java
4406 (Bias): Implemented.
4408 2004-07-10 Michael Koch <konqueror@gmx.de>
4410 * javax/swing/JTextArea.java
4411 (tabSize): New field.
4412 (getTabSize): New method.
4413 (setTabSize): Likewise.
4415 2004-07-10 Michael Koch <konqueror@gmx.de>
4417 * javax/swing/ActionMap.java:
4418 Fixed javadocs all over.
4419 (serialVersionUID): Made private.
4420 (parent): Don't explicitely initialize with default value.
4422 (keys): Reimplemented.
4423 (allKeys): Likewise.
4424 (convertSet): Removed.
4425 * javax/swing/ComponentInputMap.java:
4426 Fixed javadocs all over.
4427 (ComponentInputMap): Implemented.
4431 (SetParent): Likewise.
4432 (getComponent): Likewise.
4433 * javax/swing/InputMap.java:
4434 Fixed javadocs all over.
4435 (serialVersionUID): Made private.
4436 (parent): Don't explicitely initialize with default value.
4438 (keys): Reimplemented.
4439 (allKeys): Likewise.
4440 (convertSet): Removed.
4442 2004-07-10 Michael Koch <konqueror@gmx.de>
4444 * javax/swing/ActionMap.java,
4445 javax/swing/ComponentInputMap.java,
4446 javax/swing/InputMap.java,
4447 javax/swing/table/DefaultTableColumnModel.java,
4448 javax/swing/table/TableColumn.java,
4449 javax/swing/table/TableColumnModel.java,
4450 javax/swing/table/TableModel.java,
4451 javax/swing/text/AbstractDocument.java,
4452 javax/swing/text/TextAction.java:
4455 2004-07-10 Michael Koch <konqueror@gmx.de>
4457 * javax/swing/LookAndFeel.java
4458 (provideErrorFeedback): New method.
4460 2004-07-10 Thomas Fitzsimmons <fitzsim@redhat.com>
4462 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
4463 MOUSE_PRESSED event.
4464 * java/awt/Component.java (requestFocus()): Handle Panel
4465 specially. Post FOCUS_LOST event on opposite component.
4466 (requestFocus(boolean)): Likewise.
4467 (requestFocusInWindow(boolean)): Likewise.
4468 (paramString): Reorder dimension fields.
4469 * java/awt/Container.java (paramString): Fix string format.
4470 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
4471 Handle FOCUS_LOST events. Don't handle Windows specially. Only
4472 process key events if the focus owner is non-null.
4473 (dispatchKeyEvent): Likewise.
4474 * java/awt/Frame.java (paramString): Fix formatting.
4475 (generateName): New method.
4476 (getUniqueLong): Likewise.
4477 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
4478 the temporary focus owner is null. If so, return the permanent
4480 * java/awt/Panel.java (generateName): New method.
4481 (getUniqueLong): Likewise.
4482 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
4483 signal handling to make callbacks more specific.
4485 2004-07-09 Olga Rodimina <rodimina@redhat.com>
4487 * javax/swing/JMenuItem.java:
4488 (processMouseEvent): Reimplemented to deal with
4490 (createMenuDragMouseEvent): New private helper method.
4491 Creates MenuDragMouseEvent.
4492 * javax/swing/MenuSelectionManager.java
4493 (componentForPoint): Implemented.
4494 (isComponentPartOfCurrentMenu): Made public.
4495 (processMouseEvent): Reimplemented to deal with
4497 (setSelectedPath): Corrected small mistake that caused
4498 path to be set incorrectly.
4499 (getPath): If given component is JMenu then also add this
4500 menu's popup menu to the selected path.
4501 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4503 (getPreferredSize): Call getPreferredMenuItemSize().
4504 (getPreferredItemSize): Moved code from getPreferredSize to here.
4505 (installListeners): Install MouseMotionListeners.
4506 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
4507 if mouse wasn't released in the bounds of this menu item.
4508 (MenuDragMouseHandler): Implemented.
4509 * javax/swing/plaf/basic/BasicMenuUI.java:
4510 (installListeners): Install MouseMotionListener and
4511 MenuDrageMouseListener.
4512 (MenuDragMouseHandler): Implemented.
4513 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4514 (uninstallListeners): Implemented.
4516 2004-07-07 Michael Koch <konqueror@gmx.de>
4518 * javax/swing/JCheckBox.java: Reformated.
4519 (JCheckBox): Fixed all constructors.
4520 (isBorderPaintedFlat): New method.
4521 (setBorderPaintedFlat): New method.
4522 * javax/swing/JEditorPane.java
4523 (createEditorKitForContentType): Made public.
4524 (scrollToReference): Likewise.
4525 * javax/swing/JTextArea.java
4526 (setLineWrap): Fire property change.
4527 * javax/swing/JToggleButton.java
4528 (JToggleButton): New constructor.
4529 (JToggleButton): Simplified.
4530 * javax/swing/text/AttributeSet.java
4531 (FontAttribute): Renamed from FontCharacterAttribute.
4532 * javax/swing/text/JTextComponent.java
4533 (KeyBinBinding): Added javadoc.
4534 (JTextComponent): Likewise.
4535 (getAccessibleContext): Fixed javadoc.
4536 * javax/swing/text/View.java
4537 (View): Added javadoc.
4538 * javax/swing/text/TabableView.java: New file.
4539 * Makefile.am: Added javax/swing/text/TabableView.java.
4540 * Makefile.in: Regenerated.
4542 2004-07-07 Graydon Hoare <graydon@redhat.com>
4544 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
4545 * gnu/java/awt/peer/gtk/GtkToolkit.java
4546 (GtkErrorImage): New helper class.
4547 (bufferedImageOrError): New helper method.
4548 (createImage): Use it.
4550 2004-07-06 David Jee <djee@redhat.com>
4552 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
4553 (setCaretPosition): Scroll the text view so the new caret position
4554 is visible on screen.
4556 2004-07-06 David Jee <djee@redhat.com>
4558 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
4559 (setBounds): Do not validate awtComponent here.
4560 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
4561 (getPreferredSize): New method.
4562 * java/awt/ScrollPane.java
4563 (ScrollPane): Set default size to 100x100.
4564 (addNotify): If child is not a Panel, wrap it with a new Panel.
4565 (paramString): Implement.
4567 2004-07-05 Olga Rodimina <rodimina@redhat.com>
4569 * javax/swing/JMenu.java:
4570 (setSelected): Display popup menu only if this menu
4571 is showing on the screen.
4572 * javax/swing/JPopupMenu.java:
4573 (processMouseEvent): Added comment.
4574 (processKeyEvent): Likewise.
4575 * javax/swing/MenuSelectionManager.java:
4576 (clearSelectedPath): Only fireStateChanged() after
4577 selected path was changed, not before.
4578 (setSelectedPath): Likewise.
4579 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4580 (paintMenuItem): Corrected position of menu item's
4582 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4583 (installUI): Correct setDefaultLightWeightPopupEnabled call.
4584 (popupMenuCanceled): Reimplemented.
4585 (popupMenuWillBecomeVisible): Select first menu item by default
4586 when displaying free floating popup menus.
4587 (TopWindowListener): Reimplemented.
4589 2004-07-02 Olga Rodimina <rodimina@redhat.com>
4591 * java/awt/Window.java: Reverted changes from my
4592 previous patch for creating window without an owner.
4593 * javax/swing/SwingUtilities.java:
4594 (SwingUtilities.OwnerFrame): made static.
4595 (OwnerFrame.setVisible): New method. Overridden with
4596 empty implementation.
4597 (OwnerFrame.isShowing): New method. Ovverridden
4598 to return always true.
4600 2004-07-02 Thomas Fitzsimmons <fitzsim@redhat.com>
4602 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
4603 Panel from being painted twice when it is first shown.
4605 2004-07-01 Thomas Fitzsimmons <fitzsim@redhat.com>
4607 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4608 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4609 (GtkComponentPeer): Remove temporary try/catch block.
4610 (setVisible): Call show and hide.
4611 (show): Make native.
4613 (getArgs): Don't add "visible" argument.
4614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4615 (property_notify_predicate): Return Bool instead of int.
4616 (find_layout): New function.
4617 (connectJObject): Call find_layout.
4618 (connectSignals): Likewise.
4619 (moveLayout): Likewise.
4620 (gtkLayoutSetVisible): Likewise.
4622 2004-06-30 David Jee <djee@redhat.com>
4624 * java/awt/GridBagLayout.java
4625 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
4626 * javax/swing/AbstractButton.java
4627 (setText): Reindent.
4628 * javax/swing/RepaintManager.java
4629 (addInvalidComponent): Find the first ancestor that isValidateRoot().
4631 2004-06-30 Olga Rodimina <rodimina@redhat.com>
4633 * java/awt/Window.java: Changed constructors to use new
4634 method that is described below. Constructors call this
4635 methods only if newly created window should have an owner.
4636 (setWindowOwner): New method. Implementation for
4637 this method is moved from this(owner,configuration).
4638 * javax/swing/JWindow.java:
4639 (JWindow): Reimplement to use SwingUtilities.ownerFrame
4641 * javax/swing/SwingUtilities.java:
4642 (ownerFrame): Change type of this field to OwnerFrame.
4643 (getOwnerFrame): Changed to return object of type OwnerFrame.
4644 (SwingUtilities.OwnerFrame): New class. Represents owner
4645 of a Window that is not provided with one.
4647 2004-06-30 Michael Koch <konqueror@gmx.de>
4649 * javax/swing/plaf/basic/BasicButtonUI.java
4650 (paintFocus): Fixed method signature.
4651 (paintButtonPressed): Likewise.
4652 (paintButtonNormal): Likewise.
4653 (paintText): New method.
4654 * javax/swing/plaf/basic/BasicLabelUI.java
4655 (paint): Re-indented.
4656 * javax/swing/plaf/basic/BasicTextUI.java
4657 (installUI): Set parent textComponent to opaque.
4658 * javax/swing/text/DefaultHighlighter.java
4659 (checkPositions): New helper method.
4660 (addHighlight): Throws BadLocationException, check positions.
4661 (changeHighlight): Likewise.
4662 * javax/swing/text/EditorKit.java
4663 (EditorKit): Implements Serializable.
4664 * javax/swing/text/JTextComponent.java
4665 (getUI): Added javadoc.
4667 (upadteUI): Added javadoc, don't revalidate and repaint.
4669 2004-06-30 Olga Rodimina <rodimina@redhat.com>
4671 * javax/swing/AbstractButton.java:
4672 (configurePropertiesFromAction): Set action command
4673 to button's text by default if action command is not
4674 explicitely specified.
4675 * javax/swing/JMenu.java: Remove unnecessary listener
4676 and methods relevant to it.
4677 (setSelected): Reimplemented.
4678 (menuSelectionChanged): Moved most part of implementation to
4679 setSelected() and call it instead.
4680 * javax/swing/JMenuItem.java:
4681 (init): Comment out statement that sets paint_border to false.
4682 (configurePropertiesFromAction): Do not set accelerator
4684 (menuSelectionChanged): Change selected index in the selection
4685 model of menu item's parent.
4686 * javax/swing/JPopupMenu.java:
4687 (remove): Set constraints.fill field to GridBagConstraints.BOTH
4688 instead of GridBagConstraints.HORIZONTAL.
4690 (createActionChangeListener): Implemented.
4691 (setVisible): Correct location of HeavyWeightMenu and
4692 don't firePopupMenuCanceled().
4693 (menuSelectionChanged): Implemented.
4694 (ActionChangeListener): New Listener. Implemented.
4695 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4696 (BasicMenuBarUI.ContainerHandler): Implemented.
4697 * javax/swing/plaf/basic/BasicMenuItemUI.java:
4698 (paintMenuItem): Uncommented out code that paints
4699 icon, now that icons are working properly.
4700 (PropertyChangeListener): Implemented.
4701 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
4703 (topWindowListener): New field.
4704 (Constructor): initialize topWindowListener.
4705 (BasicPopupMenuUI.TopWindowListener): Implemented.
4706 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
4707 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
4712 2004-06-29 Michael Koch <konqueror@gmx.de>
4714 * javax/swing/JFormattedTextField.java
4716 (JFormattedTextField): Implemented.
4717 (getValue): Likewise.
4718 (setValue): Likewise.
4719 * javax/swing/LookAndFeel.java
4720 (getSupportsWindowDecorations): New method.
4721 * javax/swing/UIDefaults.java:
4722 Use java.beans.PropertyChangeSupport instead of doing all ourself.
4723 (addPropertyChangeListener): Made public.
4724 (addResourceBundle): Likewise.
4725 (removeResourceBundle): Likewise.
4726 (setDefaultLocale): Likewise.
4727 * javax/swing/plaf/basic/BasicRootPaneUI.java
4728 (BasicRootPaneUI): Implements PropertyChangeListener.
4729 (propertyChange): New method.
4730 * javax/swing/plaf/basic/BasicTextUI.java
4731 (BasicHighlighter): New inner class.
4732 (createHighlighter): New method.
4733 * javax/swing/plaf/basic/BasicToolBarUI.java
4734 (DragWindow): Extends java.awt.Window.
4735 * javax/swing/text/JTextComponent.java
4736 (getDocument): Removed debug output.
4737 * javax/swing/plaf/basic/BasicTextFieldUI.java,
4738 javax/swing/text/DefaultHighlighter.java,
4739 javax/swing/text/FieldView.java,
4740 javax/swing/text/PlainView.java: New files.
4741 * Makefile.am: Added new files.
4742 * Makefile.in: Regenerated.
4744 2004-06-29 Michael Koch <konqueror@gmx.de>
4746 * javax/swing/ImageIcon.java
4748 (description): Renamed from descr.
4749 (ImageIcon): Added missing constructors.
4750 (setParent): Removed.
4751 (setImageObserver): New method.
4752 (getImageObserver): New method.
4753 (paintIcon): Handle observer = null.
4754 * javax/swing/JButton.java
4755 (removeNotify): Fixed javadoc.
4756 (updateUI): Simplified.
4757 * javax/swing/JRootPane.java
4758 (serialVersionUID): New constant field.
4759 * javax/swing/UIManager.java:
4760 Fixed javadocs all over.
4761 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
4762 * javax/swing/text/AbstractDocument.java
4763 (createPosition): Throws BadLocationException.
4764 (getText): Likewise.
4766 * javax/swing/text/ComponentView.java
4767 (modelToView): Likewise.
4768 * javax/swing/text/DefaultEditorKit.java:
4769 Made all public methods public.
4770 (read): Throws BadLocationException and IOException.
4772 * javax/swing/text/EditorKit.java:
4773 Made all public methods public.
4774 (serialVersionUID): New constant field.
4775 (clone): New method.
4776 (read): Throws BadLocationException and IOException.
4778 * javax/swing/text/Segment.java
4779 (array): Made public.
4782 (Segment): New constructors.
4783 (clone): Reimplemented.
4784 * javax/swing/text/StyledEditorKit.java
4785 (serialVersionUID): New constant field.
4787 2004-06-29 Michael Koch <konqueror@gmx.de>
4789 * javax/swing/JButton.java,
4790 javax/swing/text/DefaultEditorKit.java,
4791 javax/swing/text/EditorKit.java,
4792 javax/swing/text/Segment.java,
4793 javax/swing/text/StyledEditorKit.java:
4796 2004-06-29 Michael Koch <konqueror@gmx.de>
4798 * javax/swing/JEditorPane.java
4799 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
4800 (createEditorKitForContentType): Likewise.
4801 * javax/swing/text/DefaultEditorKit.java
4802 (serialVersionUID): Added constant field.
4803 (EndOfLineStringPropery): Fixed typo.
4804 (DefaultEditorKit): New constructor.
4805 * javax/swing/text/Segment.java:
4806 Import java.text.CharacterIterator.
4807 * javax/swing/text/CharacterIterator.java,
4808 javax/swing/text/PlainEditorKit.java: Removed.
4809 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
4810 javax/swing/text/PlainEditorKit.java.
4811 * Makefile.in: Regenerated.
4813 2004-06-29 Graydon Hoare <graydon@redhat.com>
4815 * java/awt/image/BufferedImage.java
4816 (getSource): Implement.
4817 * javax/swing/ImageIcon.java
4818 (ImageIcon): Implement ctor.
4819 * javax/swing/ScrollPaneLayout.java
4820 (preferredLayoutSize): Be more careful about nulls.
4822 2004-06-28 Michael Koch <konqueror@gmx.de>
4824 * javax/swing/UIDefaults.java
4825 (ActiveValue): Made public.
4826 (LazyValue): Likewise.
4827 * javax/swing/plaf/basic/BasicTextUI.java
4828 (RootView): Reintroduced.
4830 (rootView): New field.
4831 (installUI): Create document if needed, initialize rootView.
4832 (uninstallUI): Hanle rootView.
4834 (getRootView): Likewise.
4835 (setView): Likewise.
4836 * javax/swing/text/DefaultCaret.java:
4837 Renamed all "evt" variables to "event".
4839 2004-06-28 Michael Koch <konqueror@gmx.de>
4841 * javax/swing/plaf/basic/BasicRootPaneUI.java:
4842 Import javax.swing.UIManager explicitely.
4843 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4844 (ScrollingButton): Made it static.
4846 2004-06-28 Michael Koch <konqueror@gmx.de>
4848 * javax/swing/text/AttributeSet.java
4849 (CharacterAttribute): New interface
4850 (ColorAttribute): Likewise.
4851 (FontCharacterAttribute): Likewise.
4852 (ParagraphAttribute): Likewise.
4853 * javax/swing/text/DefaultCaret.java
4854 (moveCaret): New method.
4855 (positionCaret): Likewise.
4856 (repaint): Made protected.
4857 * javax/swing/text/JTextComponent.java
4858 (KeyBinding): Made it static.
4859 * javax/swing/text/View.java
4860 (getContainer): Honor parent == null.
4862 2004-06-28 Michael Koch <konqueror@gmx.de>
4864 * javax/swing/text/AbstractDocument.java:
4867 2004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4869 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4870 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
4871 gtk-xft-dpi can no calculate the right value.
4872 (dpi_changed_cb): Mark *pspec as unsused.
4874 2004-06-26 Thomas Fitzsimmons <fitzsim@redhat.com>
4876 * libgcj.spec.in: Add -l-java-util-logging.
4878 2004-06-25 David Jee <djee@redhat.com>
4880 * java/awt/Component.java
4881 (move): Delegate to setBounds().
4883 (reshape): Fix so it repaints parent and self only when necessary.
4885 2004-06-25 David Jee <djee@redhat.com>
4887 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4888 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4889 (GtkComponentPeer): Revert previous patch from 2004-06-22.
4890 (setVisible): Likewise.
4893 (getArgs): Likewise.
4894 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4895 (property_notify_predicate): Likewise.
4896 (find_layout): Likewise.
4897 (connectJObject): Likewise.
4898 (connectSignals): Likewise.
4899 (moveLayout): Likewise.
4900 (gtkLayoutSetVisible): Likewise.
4902 2004-06-24 Graydon Hoare <graydon@redhat.com>
4908 (rmiregistry_LDADD): Add lib-java-util-logging.la
4909 * Makefile.in: Regenerate.
4911 2004-06-23 Michael Koch <konqueror@gmx.de>
4913 * javax/swing/plaf/basic/BasicTextUI.java
4914 (BasicTextUI): Made abstract.
4915 (BasicCaret): New inner class.
4916 (view): Don't explicitely initialize with "null".
4917 (textComponent): New field.
4918 (textColor): Removed.
4919 (disabledTextColor): Removed.
4920 (normalBackgroundColor): Removed.
4921 (RootView): Removed commented out inner class.
4922 (createUI): Removed.
4923 (createCaret): New method.
4924 (getComponent): Likewise.
4925 (installUI): Initialize textComponent only.
4926 (getPreferredSize): Use installed JTextComponent.
4927 (setView): New method.
4929 * javax/swing/text/JTextComponent.java
4930 (highlighter): New field.
4931 (caretColor): Likewise.
4932 (disabledTextColor): Likewise.
4933 (seletedTextColor): Likewise.
4934 (selectionColor): Likewise.
4935 (setUI): New method.
4936 (getCaretColor): Likewise.
4937 (setCaretColor): Likewise.
4938 (getDisabledColor): Likewise.
4939 (setDisabledColor): Likewise.
4940 (getSelectedTextColor): Likewise.
4941 (setSelectedTextColor): Likewise.
4942 (getSelectionColor): Likewise.
4943 (setSelectionColor): Likewise.
4944 (getHighlighter): Likewise.
4945 (setHighlighter): Likewise.
4946 (replaceSelection): Likewise.
4948 2004-06-23 Michael Koch <konqueror@gmx.de>
4950 * javax/swing/plaf/basic/BasicScrollPaneUI.java
4951 (BasicScrollPaneUI): Implements ScrollPaneConstants.
4952 * javax/swing/plaf/basic/BasicToolBarUI.java
4953 (BasicToolBarUI): Implements SwingConstants.
4955 2004-06-23 Michael Koch <konqueror@gmx.de>
4957 * javax/swing/plaf/basic/BasicTextUI.java
4958 (installUI): Call specialized install methods.
4959 (installDefaults): New method.
4960 (installListeners): Likewise.
4961 (installKeyboardActions): Likewise.
4962 (uninstallUI): Likewise.
4963 (uninstallDefaults): New method.
4964 (uninstallListeners): Likewise.
4965 (uninstallKeyboardActions): Likewise.
4966 (getPropertyPrefix): New abstract method.
4967 (paint): Made final, just call paintSafely().
4968 (paintSavely): New method.
4969 (paintBackground): Likewise.
4970 (getVisibleEditorRect): Likewise.
4971 * javax/swing/text/LayeredHighlighter.java,
4972 javax/swing/text/TabExpander.java: New files.
4973 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
4974 and javax/swing/text/TabExpander.java.
4975 * Makefile.in: Regenerated.
4977 2004-06-23 Michael Koch <konqueror@gmx.de>
4979 * javax/swing/JPopupMenu.java: Removed CVS tags.
4980 * javax/swing/UIDefaults.java: Reformatted.
4981 * javax/swing/plaf/basic/BasicRootPaneUI.java:
4982 Explicitely import used classes.
4984 2004-06-23 Michael Koch <konqueror@gmx.de>
4986 * javax/swing/text/AbstractDocument.java
4987 (replace): Dont use protected method of java.util.Vector directly.
4989 2004-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>
4991 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
4992 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4993 (GtkComponentPeer): Remove temporary try/catch block.
4994 (setVisible): Call show and hide.
4995 (show): Make native.
4997 (getArgs): Don't add "visible" argument.
4998 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4999 (property_notify_predicate): Return Bool instead of int.
5000 (find_layout): New function.
5001 (connectJObject): Call find_layout.
5002 (connectSignals): Likewise.
5003 (moveLayout): Likewise.
5004 (gtkLayoutSetVisible): Likewise.
5006 2004-06-22 Olga Rodimina <rodimina@redhat.com>
5008 * javax/swing/AbstractButton.java:
5009 (setDisplayedMnemonicIndex): Check if button
5010 text is not null before checking its length.
5011 * javax/swing/JMenuItem.java:
5012 (processMouseEvent): Disarm menu item if mouse has
5014 * javax/swing/plaf/basic/BasicMenuUI.java:
5015 (MouseInputHandler.mouseEntered): Do not raise
5016 popup menu if this menu is already selected.
5017 (MouseInputHandler.mousePressed): Do not fire
5019 (MenuHandler): Implemented.
5021 2004-06-21 Olga Rodimina <rodimina@redhat.com>
5023 * javax/swing/AbstractButton.java:
5024 (init): Set display mnemonic index to -1.
5025 (setMnemonic(char)): Use setMnemonic(int).
5026 (setMnemonic(int)): Set display mnemonic index.
5027 (getDisplayedMnemonicIndex): Change method signature
5028 by removing 'index' parameter.
5029 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5030 Added default for Menu.selectionBackground.
5031 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5032 (paintMenuItem): Change background color of the selected
5034 (paintText): Paint differently when menu item is disabled.
5035 Also paint mnemonic if it appears in the menu item's label.
5036 (paintAccelerator): Paint accelerator differently
5037 if menu item is disabled.
5038 * javax/swing/plaf/basic/BasicMenuUI.java:
5039 (installDefaults): Install defaults for
5040 selectionForeground and selectionBackground.
5041 (uninstallDefaults): Uninstall defauls for
5042 selectionForeground and selectionBackground.
5044 2004-06-21 Olga Rodimina <rodimina@redhat.com>
5046 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
5047 (getSelectedObjects): Implemented.
5048 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
5049 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
5050 Added javadoc for few methods.
5051 (processMouseEvent): Made public.
5052 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
5053 (processMouseEvent): Likewise.
5055 2004-06-20 Michael Koch <konqueror@gmx.de>
5057 * javax/swing/text/AbstractDocument.java
5058 (BranchElement): Implemented.
5059 (LeafElement): Implemented.
5060 * javax/swing/text/DefaultCaret.java:
5061 Import used classes.
5062 (serialVersionUID): New constant.
5063 * javax/swing/text/JTextComponent.java
5064 (AccessibleJTextComponent): Removed dead declaration.
5065 (caretPos): Removed.
5066 (setCaret): New method.
5067 * javax/swing/text/PlainDocument.java
5068 (rootElement): New field.
5069 (PlainDocument): Initialize rootElement.
5070 (createDefaultRoot): New method.
5071 (getDefaultRootElement): Implemented.
5072 * javax/swing/text/View.java: Reformatted.
5073 * javax/swing/text/ViewFactory.java
5074 (create): Added javadoc.
5076 2004-06-20 Michael Koch <konqueror@gmx.de>
5078 * javax/swing/ToolTipManager.java: Reformatted.
5080 2004-06-18 Rodimina Olga <rodimina@redhat.com>
5082 * javax/swing/AbstractButton.java
5083 (changeEvent): New field.
5084 (fireItemStateChanged): Change source of the event
5085 to 'this' before firing it to button listeners.
5086 (fireActionPerformed): Likewise.
5087 (fireStateChanged): Likewise.
5088 (createActionListener): Do not set source
5089 of the event to AbstractButton.
5090 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5091 (ContainerHandler.componentAdded): Removed
5092 print out statement.
5093 (ContainerHandler.componentRemoved): Likewise.
5095 2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
5097 * javax/swing/text/AbstractDocument.java: Adding missing import
5098 for javax.swing.event.EventListenerList.
5099 * javax/swing/text/DefaultCaret.java: Likewise.
5101 2004-06-18 Michael Koch <konqueror@gmx.de>
5103 * javax/swing/ToolTipManager.java
5104 (stillInsideTimerAction): Fixed constructor arguments.
5105 (outsideTimerAction): Likewise.
5106 (insideTimerAction): Likewise.
5108 2004-06-18 Michael Koch <konqueror@gmx.de>
5110 * javax/swing/JButton.java: Reformatted.
5111 * javax/swing/JFormattedTextField.java
5112 (getUIClassID): Implemented.
5113 * javax/swing/JRootPane.java
5114 (serialVersionUID): New constant.
5115 * javax/swing/JTextField.java
5117 (JTextField): Simplified.
5118 (getUIClassID): New method.
5119 (getActionListeners): Added @since tag.
5120 (setColumns): Invalidate layout and repaint.
5121 (getHorizontalAlignment): New method.
5122 (setHorizontalAlignment): New method.
5123 (selectAll): Removed.
5124 * javax/swing/SwingUtilities.java
5125 (getAncestorOfClass): Removed redundant @see tag.
5126 (isLeftMouseButton): Fixed implementation.
5127 (isMiddleMouseButton): Likewise.
5128 (isRightMouseButton): Likewise.
5129 * javax/swing/text/AbstractDocument.java
5130 (AttributeContext.addAttribute): New method.
5131 (AttributeContext.addAttributes): New method.
5132 (AttributeContext.getEmptySet): New method.
5133 (AttributeContext.reclaim): New method.
5134 (AttributeContext.removeAttribute): New method.
5135 (AttributeContext.removeAttributes): New method.
5136 * javax/swing/text/Document.java
5137 (createPosition): Throws BadLocationException.
5138 (getText): Likewise.
5140 * javax/swing/text/JTextComponent.java
5141 (getText): Return null if no document is set. Catch
5142 BadLocationException.
5144 (updateUI): Simplified.
5146 2004-06-18 Michael Koch <konqueror@gmx.de>
5148 * javax/swing/JButton.java
5149 (removeNotify): Fixed javadoc.
5150 (updateUI): Simplified.
5152 2004-06-18 Michael Koch <konqueror@gmx.de>
5154 * javax/swing/text/Highlighter.java: New file.
5155 * Makefile.am: Added javax/swing/text/Highlighter.java.
5156 * Makefile.in: Regenerated.
5158 2004-06-18 Graydon Hoare <graydon@redhat.com>
5160 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5161 Fix up non-ansi comments.
5163 2004-06-18 David Jee <djee@redhat.com>
5165 * gnu/java/awt/image/ImageDecoder.java
5166 (startProduction): Only add consumer if it's not added yet.
5167 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
5168 (GdkPixbufDecoder): Don't call initState() here.
5169 (produce): Call initState() here, to ensure area_prepared and
5170 area_updated signals are properly connected.
5171 * gnu/java/awt/peer/gtk/GtkImage.java
5172 (setColorModel): Use equals() to compare ColorModel objects.
5173 (setPixels): Likewise.
5174 * java/awt/image/ColorModel.java
5175 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
5176 * java/awt/image/RGBImageFilter.java
5177 (setColorModel): Set consumer's color model.
5178 (setPixels): Use equals() to compare ColorModel objects.
5180 2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
5182 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
5185 2004-06-17 Olga Rodimina <rodimina@redhat.coom>
5187 * Makefile.am: Added new file.
5188 * Makefile.in: Re-generate.
5189 * javax/swing/JMenu.java:
5190 (insertSeparator): Implemented.
5191 * javax/swing/JPopupMenu.java:
5192 (JPopupMenu.Separator): Implemented.
5193 * javax/swing/MenuSelectionManager.java:
5194 (processMouseEvent): Use java.awt.Component
5195 for event source instead of javax.swing.JComponent.
5196 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
5197 New File. Implemented.
5199 2004-06-17 Michael Koch <konqueror@gmx.de>
5201 * javax/swing/JToolBar.java
5203 (JToolBar): Use Component.setName(String) instead of doing it all
5205 * javax/swing/Timer.java
5206 (queueEvent): Added missing modifier.
5208 2004-06-17 Anthony Green <green@redhat.com>
5210 * java/util/zip/ZipFile.java (getInputStream): Return null if
5213 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5214 directory contents to the class path.
5216 2004-06-16 Michael Koch <konqueror@gmx.de>
5218 * javax/swing/JTextArea.java: New file.
5219 * javax/swing/JTextField.java
5221 (notifyAction): New constant.
5222 (columns): New field.
5223 (JTextField): New constructors.
5224 (createDefaultModel): New method.
5225 (addActionListener): Reimplmemented.
5226 (removeActionListener): Reimplemented.
5227 (getActionListeners): New method.
5228 (fireActionPerformed): New method.
5229 (getColumns): New method.
5230 (setColumne): New method.
5231 * javax/swing/text/JTextComponent.java
5232 (AccessibleJTextComponent.serialVersionUID): New field.
5233 (serialVersionUID): Likewise.
5234 (DEFAULT_KEYMAP): Likewise.
5235 (FOCUS_ACCELERATOR_KEY): Likewise.
5236 (doc): Made private.
5237 (icon_gap): Likewise.
5240 (JTextComponent): Some constructors removed.
5241 (getScrollableTracksViewportHeight): New method.
5242 (getScrollableTracksViewportWidth): Likewise.
5243 * Makefile.am: Added javax/swing/JTextArea.java.
5244 * Makefile.in: Regenerated.
5246 2004-06-16 Michael Koch <konqueror@gmx.de>
5248 * javax/swing/JTree.java: Reformatted.
5250 2004-06-16 Michael Koch <konqueror@gmx.de>
5252 * javax/swing/text/AbstractDocument.java
5253 (AbstracElement): Made public, implements java.io.Serializable.
5254 (AttributeContext): Made public.
5255 (BranchElement): Likewise.
5256 (Content): Likewise.
5257 (DefaultDocumentEvent): Made public, extends
5258 javax.swing.undo.CompoundEdit.
5259 (ElementEdit): Made public, extends
5260 javax.swing.undo.AbstractUndoableEdit.
5261 (LeafElement): Made public.
5262 (LeafElement.LeafElement): Made public.
5264 2004-06-16 Michael Koch <konqueror@gmx.de>
5266 * javax/swing/text/PlainDocument.java
5267 (serialVersionUID): New constant.
5268 (lineLimitAttribute): Likewise.
5269 (tabSizeAttribute): Likewise.
5270 (tabSize): New field.
5271 (PlainDocument): Made public.
5272 (PlainDocument): New constructor.
5274 2004-06-16 Michael Koch <konqueror@gmx.de>
5276 * javax/swing/JTree.java
5277 (treeModel): New field.
5278 (JTree): New constructors, one existing one made public.
5279 (createTreeModel): New method.
5280 (addTreeExpansionListener): Likewise.
5281 (removeTreeExpansionListener): Likewise.
5282 (getTreeExpansionListeners): Likewise.
5283 (fireTreeCollapsed): Likewise.
5284 (fireTreeExpanded): Likewise.
5285 (addTreeSelectionListener): Likewise.
5286 (removeTreeSelectionListener): Likewise.
5287 (getTreeSelectionListeners): Likewise.
5288 (fireValueChanged): Likewise.
5289 (addTreeWillExpandListener): Likewise.
5290 (removeTreeWillExpandListener): Likewise.
5291 (getTreeWillExpandListeners): Likewise.
5292 (fireTreeWillCollapse): Likewise.
5293 (fireTreeWillExpand): Likewise.
5295 2004-06-16 Michael Koch <konqueror@gmx.de>
5297 * javax/swing/text/AbstractDocument.java
5298 (insertString): Throws BadLocationException.
5299 * javax/swing/text/Document.java
5300 (insertString): Likewise.
5301 * javax/swing/text/JTextComponent.java:
5302 Javadocs and comments cleaned up.
5304 2004-06-16 Michael Koch <konqueror@gmx.de>
5306 * javax/swing/event/UndoableEditListener.java: Reformatted.
5307 * javax/swing/text/AbstractDocument.java
5308 (AbstractDocument): Implements java.io.Serializable.
5309 (doc_list): Removed.
5310 (undo_list): Removed.
5311 (AbstractElement.serialVerionUID): New field.
5312 (BranchElement.serialVerionUID): Likewise.
5313 (DefaultDocumentEvent.serialVerionUID): Likewise.
5314 (ElementEdit.serialVerionUID): Likewise.
5315 (LeafElement.serialVerionUID): Likewise.
5316 (serialVerionUID): Likewise.
5317 (BAD_LOCATION): New constant.
5318 (BidiElementName): Likewise.
5319 (ContentElementName): Likewise.
5320 (ParagraphElementName): Likewise.
5321 (SectionElementName): Likewise.
5322 (ElementNameAttribute): Likewise.
5323 (AbstractDocument): Made protected.
5324 (AbstractDocument): New construtor.
5325 (listenerList): New field.
5326 (fireChangedUpdate): Implemented.
5327 (fireInsertUpdate): Likewise.
5328 (fireRemoveUpdate): Likewise.
5329 (fireUndoableEditUpdate): Likewise.
5330 (getListeners): Likewise.
5331 (addDocumentListener): Likewise.
5332 (removeDocumentListener): Likewise.
5333 (addUndoableEditListener): Likewise.
5334 (removeUndoableEditListener): Likewise.
5335 (getDocumentListeners): New method.
5336 (getUndoableEditListeners): Likewise.
5337 (getAsynchronousLoadPriority): Made public.
5338 (getBidiRootElement): Likewise.
5339 (setAsynchronousLoadPriority): Likewise.
5340 (setDocumentProperties): Likewise.
5341 * javax/swing/text/BadLocationException.java
5342 (serialVerionUID): New field.
5343 * javax/swing/text/DefaultCaret.java
5344 (changeEvent): New field.
5345 (listenerList): Likewise.
5347 (addChangeListener): Reimplemented.
5348 (removeChangeListener): Likewise.
5349 (getListeners): New method.
5350 (getChangeListeners): Likwise.
5351 (getComponent): Likewise.
5352 * javax/swing/text/GapContent.java
5353 (GapContent): Implements java.io.Serializable.
5354 (serialVerionUID): New field.
5356 2004-06-16 Michael Koch <konqueror@gmx.de>
5358 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
5359 methods (that were obviously never be intended to get included hi this
5360 class. Added some methods too.
5362 2004-06-16 Graydon Hoare <graydon@redhat.com>
5364 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5365 (setComposite): Accept AlphaComposite arguments.
5366 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
5367 (createBufferedImage): Add new overloads.
5368 * gnu/java/awt/peer/gtk/GtkToolkit.java
5369 (createImage): Use GdkPixbufDecoder.createBufferedImage
5370 when useGraphics2D() is true.
5371 (getImage): Delegate to createImage.
5372 * javax/swing/JList.java
5374 (getFirstVisibleIndex):
5375 (getLastVisibleIndex):
5377 (ensureIndexIsVisible): New methods.
5378 * javax/swing/Timer.java: Reimplement.
5380 2004-06-16 David Jee <djee@redhat.com>
5382 * java/awt/GridBagLayout.java
5383 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
5384 Make sure pos_x and pos_y are never negative.
5386 2004-06-15 Kim Ho <kho@redhat.com>
5388 * javax/swing/JTabbedPane.java
5389 (setComponent): Remove old component and
5391 (setSelectedIndex): Don't operate on the
5392 components if they're null. Don't set index
5393 on the model if the index is the same.
5394 (insertTab): Don't add or hide the component
5395 if it's null. Repaint the container.
5396 * javax/swing/plaf/basic/BasicLookAndFeel.java
5397 Change colors for TabbedPane.
5398 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5399 (mousePressed): Re-layout and paint the component.
5400 (layoutContainer): Don't set location on the view.
5401 (ScrollingViewport::paint): Remove.
5403 2004-06-15 Graydon Hoare <graydon@redhat.com>
5405 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
5406 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
5407 * javax/swing/JViewport.java
5408 (getExtentSize): Return size rather than preferred size.
5409 (toViewCoordinates): New methods.
5410 (getViewSize): Return size rather than preferred size.
5411 (setViewSize): Note view size as set.
5412 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
5413 * javax/swing/plaf/basic/BasicScrollBarUI.java
5414 (getPreferredSize): Don't redo layout.
5415 * javax/swing/plaf/basic/BasicViewportUI.java
5416 (paint): Translate image properly and eat exceptions.
5418 2004-06-15 Andrew Haley <aph@redhat.com>
5420 * java/lang/natSystem.cc (getenv0): Don't assume environment
5421 variable is Latin 1 coded.
5423 2004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5426 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
5428 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5429 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
5430 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
5432 (drawLine): Call gdk_flush before leaving GDK critical region.
5433 (fillRect): Likewise.
5434 (drawRect): Likewise.
5435 (copyArea): Likewise.
5436 (copyPixmap): Likewise.
5437 (clearRect): Likewise.
5438 (drawArc): Likewise.
5439 (drawPolyline): Likewise.
5440 (drawPolygon): Likewise.
5441 (fillPolygon): Likewise.
5442 (fillArc): Likewise.
5443 (drawOval): Likewise.
5444 (fillOval): Likewise.
5446 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
5448 (GdkFontMetrics): Add style argument to initState call.
5449 (stringWidth(String,int,int,String)): Add style parameter.
5450 (stringWidth(String)): Add style argument to stringWidth call.
5451 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
5452 (initState): Set pango font style and weight based on AWT style
5453 parameter. Pass default GTK language to
5454 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
5455 simply dividing by PANGO_SCALE.
5456 (stringWidth): Set pango font style and weight based on AWT style
5459 * java/awt/Button.java (next_button_number): New field.
5460 (paramString): Change output.
5461 (generateName): New method.
5462 (getUniqueLong): New method.
5464 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5466 * javax/swing/MenuSelectionManager.java:
5467 Ran through jalopy to fix formatting style.
5469 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5471 * javax/swing/JPopupMenu.java:
5472 (setVisible): Corrected location of a
5473 heavyweight popup menu.
5475 2004-06-14 Olga Rodimina <rodimina@redhat.com>
5477 * javax/swing/JLayeredPane.java:
5478 (remove): Revalidate and repaint layered pane after
5479 the component was removed.
5480 javax/swing/JMenu.java:
5481 (setVisible): Display popup menu at the user location,
5482 if one was set by the user.
5483 (setMenuLocation): Reimplemented. Fixed javadoc.
5484 * javax/swing/JMenuBar.java: Added javadoc.
5485 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
5486 (MODEL_CHANGED_PROPERTY): New Property.
5487 (isSelected): Implemented.
5488 (setBorderPainted): Fire PropertyChangeEvent
5489 if paintBorder property changes.
5490 (setSelected): Implemented.
5491 (setSelectionModel): Implemented.
5492 * javax/swing/JPopupMenu.java: Added Javadoc
5493 (pack): Implemented.
5494 (setVisible): Reimplemented.
5495 (show): Fixed location.
5496 (JPopupMenu.LigthWeightPopup): Reimplemented to use
5497 Container instead of JPanel.
5498 * javax/swing/MenuSelectionManager.java: Added Javadocs.
5499 (clearSelectedPath): Reimplemented to clear selectedPath
5501 (processMouseEvent): Reimplemented.
5502 (setSelectedPath): Fire stateChange event indicating that
5503 selected menu path has changed.
5504 (getPath): Change to use ArrayList instead of Vector.
5505 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5506 (installUI): call installKeyboardActions().
5507 (uninstallUI): call uninstallKeyboardActions().
5509 2004-06-14 Kim Ho <kho@redhat.com>
5511 * javax/swing/JTabbedPane.java:
5512 (setComponentAt): Set the component, not
5514 * javax/swing/plaf/basic/BasicDesktopIconUI.java
5515 (actionPerformed): Let deiconize catch exception.
5517 2004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5519 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5520 to pass ClassLoader argument.
5521 * java/util/GregorianCalendar.java: Likewise.
5522 * java/util/Currency.java: Likewise.
5523 * java/text/BreakIterator.java: Likewise.
5524 * java/text/Collator.java: Likewise.
5525 * java/text/DateFormat.java: Likewise.
5526 * java/text/DateFormatSymbols.java: Likewise.
5527 * java/text/DecimalFormatSymbols.java: Likewise.
5528 * java/text/NumberFormat.java: Likewise.
5529 * java/awt/Window.java: Likewise.
5531 2004-06-14 Andrew Haley <aph@redhat.com>
5533 * java/lang/System.java: (getenv0): New method.
5534 (getenv): Add security check. Do the right thing.
5535 * java/lang/natSystem.cc (getenv0): New method.
5537 2004-06-14 Andreas Jaeger <aj@suse.de>
5539 * configure.in: Support --enable-version-specific-runtime-libs.
5540 * configure: Regenerated.
5542 2004-06-13 Michael Koch <konqueror@gmx.de>
5544 * javax/swing/text/DefaultCaret.java,
5545 javax/swing/text/BadLocationException.java:
5548 2004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5550 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
5551 DEFAULT_COLS): New variables.
5552 (create): Don't allow 0 rows or 0 columns. Instead, set the
5553 values to DEFAULT_ROWS or DEFAULT_COLS.
5554 (getMinimumSize): Likewise.
5555 (getPreferredSize): Likewise.
5556 (minimumSize): Likewise.
5557 (preferredSize): Likewise.
5558 (create): Set peer's editable state.
5559 * java/awt/TextArea.java (TextArea()): Set rows and columns to
5560 zero. Update javadocs.
5561 (TextArea(String)): Likewise.
5562 (TextArea(int,int)): Fix javadocs.
5563 (TextArea(String,int,int,int)): Only throw exception if one of
5564 rows or columns is zero. Fix javadocs.
5566 2004-06-12 Mark Wielaard <mark@klomp.org>
5568 * javax/swing/RepaintManager.java
5569 (paintDirtyRegions): Use entrySet(), not values().
5571 2004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
5573 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
5574 addition to Components.
5576 * java/awt/MenuItem.java (dispatchEventImpl): If the event
5577 wasn't consumed by normal processing, send it to the parent
5580 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5581 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
5584 2004-06-11 Michael Koch <konqueror@gmx.de>
5586 * javax/swing/JRootPane.java
5587 (AccessibleJRootPane.serialVersionUID): New field.
5588 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
5589 (AccessibleJRootPane.getAccessibleRole): New method.
5590 (RootLayout): Implements Serializable.
5591 (RootLayout.serialVersionUID): New field.
5592 (RootLayout.RootLayout): New constructor.
5593 (setJMenuBar): Made public.
5594 (getJMenuBar): Likewise.
5595 (JRootPane): Likewise.
5596 (createContentPane): Likewise.
5597 (createGlassPane): Likewise.
5598 (createLayeredPane): Likewise.
5600 2004-06-11 Michael Koch <konqueror@gmx.de>
5602 * javax/swing/SwingUtilities.java
5603 (isLeftMouseButton): Fixed javadoc.
5604 (isMiddleMouseButton): Likewise.
5605 (isRightMouseButton): Likewise.
5607 2004-06-11 Michael Koch <konqueror@gmx.de>
5609 * javax/swing/JEditorPane.java: Fixed javadocs.
5610 (JEditorPane): Removed redundant call to to this().
5611 (fireHyperlinkUpdate): Implemented.
5613 2004-06-11 Michael Koch <konqueror@gmx.de>
5615 * javax/swing/text/AbstractDocument.java,
5616 javax/swing/text/Document.java,
5617 javax/swing/text/GapContent.java,
5618 javax/swing/text/JTextComponent.java,
5619 javax/swing/text/PlainDocument.java:
5622 2004-06-11 Michael Koch <konqueror@gmx.de>
5624 * javax/swing/JScrollPane.java
5625 (serialVersionUID): New field.
5626 (columnHeader): Made protected.
5627 (rowHeader): Likewise.
5628 (lowerLeft): Likewise.
5629 (lowerRight): Likewise.
5630 (upperLeft): Likewise.
5631 (upperRight): Likewise.
5632 (horizontalScrollBar): Likewise.
5633 (horizontalScrollBarPolicy): Likewise.
5634 (verticalScrollBar): Likewise.
5635 (verticalScrollBarPolicy): Likewise.
5636 (viewport): Likewise.
5638 2004-06-11 Michael Koch <konqueror@gmx.de>
5640 * javax/swing/LookAndFeel.java: Fixed javadocs.
5642 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
5644 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5645 when we already know the answer.
5646 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5647 (setStartRule,setEndRule): Don't take abs of day number.
5648 (getOffset): Clarify docs. Add argument checks.
5649 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5650 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5653 2004-06-11 David Jee <djee@redhat.com>
5655 * java/awt/MediaTracker.java
5656 (addImage(Image,int)): Call imageUpdate() to udpate image status.
5657 (addImage(Image,int,int,int)): Likewise.
5659 2004-06-10 Tom Tromey <tromey@redhat.com>
5661 * interpret.cc (run): Handle wide fload.
5663 2004-06-10 Sascha Brawer <brawer@dandelis.ch>
5665 * javax/swing/undo/UndoManager.java: Re-written from scratch.
5667 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5669 * javax/swing/JMenu.java: Added javadoc.
5670 (JMenu): Added MenuChangeListener to listen to
5671 ChangeEvents occuring in menu's model.
5672 (insert): Throw IllegalArgumentException if
5673 index is less than 0
5674 (setSelected): Reimplement.
5675 (setPopupMenuVisible): Call menu's model isEnabled()
5676 (setDelay): Throw IllegalArgumentException if
5677 given amount of delay is less than 0.
5678 (createActionComponent): Implemented.
5679 (createActionChangeListener): Implemented.
5680 (addSeparator): Implemented.
5681 (getItem): Throw IllegalArgumentException if index is
5683 (getItemCount): Implemented.
5684 (fireMenuSelected): Changed to use menuEvent.
5685 (fireMenuDeselected): Likewise.
5686 (fireMenuCanceled): Likewise.
5687 (setAccelerator): Changed to throw an error if this
5689 (doClick): Implemented.
5690 (JMenu.ActionChangedListener): New inner class to handle
5691 PropertyChangeEvents occuring in the actions associated with menu.
5692 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
5693 (BasicMenuUI): Added PropertyChangeListener to the menu.
5694 (createChangeListener): Implemented.
5695 (createMenuDragMouseListener): Likewise.
5696 (createMenuKeyListener): Likewise.
5697 (createPropertyChangeListener): Likewise.
5698 (uninstallListeners): Likewise.
5699 (BasicMenuUI.MouseInputHandler): Reimplemented.
5700 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
5701 (BasicMenuUI.ChangeHandler): Likewise.
5702 (BasicMenuUI.MenuDragMouseHandler): Likewise.
5703 (BasicMenuUI.MenuKeyHandler): Likewise.
5705 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5707 * javax/swing/JApplet.java:
5708 (getJMenuBar): Made public.
5709 (setJMenuBar): Likewise.
5710 * javax/swing/JFrame.java:
5711 (getJMenuBar): Made public.
5712 (setJMenuBar): Likewise.
5713 * javax/swing/JWindow.java:
5714 (getJMenuBar): Removed.
5715 (setJMenuBar): Removed.
5717 2004-06-10 Olga Rodimina <rodimina@redhat.com>
5719 * javax/swing/JMenu.java: Fixed file name
5720 in the file comment.
5722 2004-06-10 Michael Koch <konqueror@gmx.de>
5724 * javax/swing/plaf/BorderUIResource.java:
5725 Added serialVersionUID all over.
5727 2004-06-10 Michael Koch <konqueror@gmx.de>
5729 * javax/swing/ButtonGroup.java
5730 (serialVersionUID): Made private.
5731 (buttons): Renamed from v, added javadoc.
5732 (sel): Added javadoc.
5733 (ButtonGroup): Likewise.
5736 (getElements): Likewise.
5737 (getSelection): Likewise.
5738 (setSelected): Likewise.
5739 (isSelected): Likewise.
5740 (getButtonCount): Likewise.
5742 2004-06-10 Michael Koch <konqueror@gmx.de>
5744 * javax/swing/text/Style.java: Added javadocs.
5746 2004-06-10 Michael Koch <konqueror@gmx.de>
5748 * javax/swing/DefaultButtonModel.java
5749 (ARMED): Made public final, fixed value.
5750 (ENABLED): Likewise.
5751 (PRESSED): Likewise.
5752 (ROLLOVER): Likewise.
5753 (SELECTED): Likewise.
5754 (stateMask): Initialize directly.
5755 (listenerList): Likewise.
5756 (mnemonic): Likewise.
5757 (fireStateChanged): Removed argument, use changeEvent as event.
5758 All places where this method is called are fixed too.
5759 (getActionCommant): Fixed javadoc.
5760 (setGroup): Fixed javadoc.
5761 (getGroup): New method.
5763 2004-06-10 Michael Koch <konqueror@gmx.de>
5765 * javax/swing/JEditorPane.java
5766 (createEditorKitForContentType): Fixed visibility.
5767 (fireHyperlinkUpdate): Likewise.
5768 (getContentType): Likewise.
5769 (getEditorKit): Likewise.
5770 (getEditorKitForContentType): Likewise.
5771 (getPage): Likewise.
5773 (registerEditorKitForContentTyoe): Likewise.
5774 (replaceSelection): Likewise.
5775 (setContentType): Likewise.
5776 (setEditorKit): Likewise.
5777 (setPage): Likewise.
5779 2004-06-10 Michael Koch <konqueror@gmx.de>
5781 * javax/swing/Timer.java
5782 (Timer): New constructor.
5783 * javax/swing/plaf/basic/BasicProgressBarUI.java
5784 (animationTimer): Don't initialize at construction.
5785 (startAnimationTimer): Added since tag.
5786 (stopAnimationTimer): Likewise.
5787 (installUI): Use new Timer constructor.
5788 * javax/swing/plaf/basic/BasicScrollBarUI.java
5789 (installUI): Likewise.
5790 * javax/swing/plaf/basic/BasicSliderUI.java
5791 (installUI): Likewise.
5793 2004-06-10 Michael Koch <konqueror@gmx.de>
5795 * javax/swing/table/DefaultTableCellRenderer.java
5796 (noFocusBorder): Initialize directly.
5798 2004-06-10 Michael Koch <konqueror@gmx.de>
5800 * javax/swing/JComponent.java
5801 (fireVetoableChange): Removed redundant cast.
5802 * javax/swing/JLabel.java
5803 (getDisabledIcon): Save icon for next call.
5805 2004-06-10 Michael Koch <konqueror@gmx.de>
5807 * javax/swing/DefaultCellEditor.java,
5808 javax/swing/GrayFilter.java,
5809 javax/swing/event/DocumentEvent.java,
5810 javax/swing/text/JTextComponent.java,
5811 javax/swing/text/MutableAttributeSet.java:
5814 2004-06-10 Michael Koch <konqueror@gmx.de>
5816 * javax/swing/plaf/BorderUIResource.java,
5817 javax/swing/plaf/ComponentUI.java,
5818 javax/swing/undo/CompoundEdit.java,
5819 javax/swing/undo/StateEdit.java:
5820 Fixed javadocs all over.
5822 2004-06-10 Michael Koch <konqueror@gmx.de>
5824 * javax/swing/plaf/basic/BasicArrowButton.java
5825 (setDirection): Use method argument.
5827 2004-06-10 Michael Koch <konqueror@gmx.de>
5829 * javax/swing/KeyStroke.java
5830 (getKeyStroke(char,boolean)): Marked deprecated.
5832 2004-06-10 Michael Koch <konqueror@gmx.de>
5834 * javax/swing/ButtonGroup.java,
5835 javax/swing/ImageIcon.java,
5836 javax/swing/JEditorPane.java,
5837 javax/swing/JRootPane.java,
5838 javax/swing/JTextField.java,
5839 javax/swing/LookAndFeel.java,
5840 javax/swing/plaf/basic/BasicTextUI.java:
5843 2004-06-10 Mark Wielaard <mark@klomp.org>
5845 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5848 2004-06-10 David Jee <djee@redhat.com>
5850 * java/awt/MediaTracker.java
5851 (imageUpdate): Only do notifyAll() if the image is complete.
5853 2004-06-09 Olga Rodimina <rodimina@redhat.com>
5855 * javax/swing/AbstractButton.java
5856 (AbstractButton): Use init() to initialize the button.
5857 (init): New Method. Initializes AbstractButton.
5858 * javax/swing/JMenuItem.java: Documented.
5859 (JMenuItem): Reimplemented.
5860 (init): Implemented.
5861 (setEnabled): Changed to call super.setEnabled()
5862 (processMouseEvent): Reimplemented.
5863 (fireMenuKeyPressed): Implemented.
5864 (fireMenuKeyReleased): Implemented.
5865 (fireMenuKeyTyped): Implemented.
5866 (menuSelectionChanged): disarm the model if the menu item was
5868 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
5869 (getPath): Change to use ArrayList instead of Vector.
5870 (getPreferredSize): Renamed variable.
5871 (paintMenuItem): Paint margin area of menu item.
5872 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
5873 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
5874 menu item's bounds before clearing the selection.
5876 2004-06-09 Michael Koch <konqueror@gmx.de>
5878 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5879 (positionForMouseEvent): Removed redundant semicolon.
5880 (continueDrag): Use method arguments.
5882 2004-06-09 Michael Koch <konqueror@gmx.de>
5884 * javax/swing/ImageIcon.java
5885 (ImageIcon): Added missing constructor.
5887 2004-06-09 Michael Koch <konqueror@gmx.de>
5889 * javax/swing/border/TitledBorder.java,
5890 javax/swing/filechooser/FileSystemView.java,
5891 javax/swing/plaf/basic/BasicButtonListener.java,
5892 javax/swing/plaf/basic/BasicGraphicsUtils.java,
5893 javax/swing/plaf/basic/BasicLabelUI.java,
5894 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
5895 javax/swing/plaf/basic/BasicScrollBarUI.java,
5896 javax/swing/plaf/basic/BasicScrollPaneUI.java,
5897 javax/swing/plaf/basic/BasicSliderUI.java,
5898 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
5899 javax/swing/plaf/basic/BasicToggleButtonUI.java,
5900 javax/swing/table/JTableHeader.java,
5901 javax/swing/text/AbstractDocument.java,
5902 javax/swing/text/DefaultCaret.java,
5903 javax/swing/text/StyledEditorKit.java,
5904 javax/swing/tree/DefaultTreeCellEditor.java:
5905 Reworked import statements.
5907 2004-06-09 Michael Koch <konqueror@gmx.de>
5909 * javax/swing/tree/DefaultMutableTreeNode.java
5910 (getLeafCount): Renamed enum to e.
5912 2004-06-09 Kim Ho <kho@redhat.com>
5914 * Makefile.am: New files
5915 * Makefile.in: Regenerated
5916 * java/awt/Container.java
5917 (getComponentAt): Removed.
5918 * javax/swing/AbstractAction.java
5919 (ENABLED_PROPERTY): New property.
5920 (putValue): Fire PropertyChangeEvents.
5921 (setEnabled): ditto.
5922 (firePropertyChange): Javadoc and implement
5924 * javax/swing/AbstractButton.java
5925 (setAction): Don't create PropertyChangeListener
5926 if new Action is null.
5927 (setIcon): Don't set icon till after comparing
5929 (configurePropertiesFromAction): Check mnemonic
5930 key before calling intValue().
5931 (createActionPropertyChangeListener): Check
5932 properties rather than bulk change.
5933 * javax/swing/DefaultDesktopManager.java:
5935 * javax/swing/DesktopManager.java:
5937 * javax/swing/JComponent.java
5938 (fireVetoableChange): Implement.
5939 (paintImmediately): Use root component.
5940 * javax/swing/JDesktopPane.java: Implement
5941 * javax/swing/JInternalFrame.java: Implement
5942 * javax/swing/JLabel.java
5943 (getDisabledIcon): Return grayscaled icon if
5944 no disabled icon specified.
5945 * javax/swing/JMenuBar.java
5946 (getComponentAtIndex): Use getComponent
5947 * javax/swing/JOptionPane.java
5948 (getDesktopPaneForComponent): Use SwingUtilities'
5950 (getFrameForComponent): ditto.
5951 * javax/swing/JSplitPane.java
5952 (remove): Use getComponent.
5953 * javax/swing/SwingUtilities.java
5954 (convertPoint): Implement.
5955 * javax/swing/plaf/basic/BasicButtonUI.java
5956 (paintButtonNormal): Check opaqueness before
5958 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
5960 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
5962 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
5964 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
5966 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5967 Change InternalFrame and Desktop colors.
5969 2004-06-09 David Jee <djee@redhat.com>
5971 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
5972 (GtkTextComponentPeer): Set caret position to 0.
5973 * java/awt/TextComponent.java
5974 (setText): Set caret position to 0.
5975 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5976 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
5977 Handle GtkScrolledWindow separately. Fix signal handler blocking.
5978 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
5980 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5981 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
5984 2004-06-09 David Jee <djee@redhat.com>
5986 * java/awt/Container.java
5987 (remove): Do not set component to invisible.
5989 2004-06-08 Michael Koch <konqueror@gmx.de>
5991 * javax/swing/JToggleButton.java
5992 (JToggleButton): New constructor.
5993 (getAccessibleContext): Moved documentation into javadoc.
5994 (getUIClassID): Likewise.
5996 2004-06-08 Michael Koch <konqueror@gmx.de>
5998 * javax/swing/plaf/basic/BasicButtonUI.java
5999 (paintIcon): Simplified.
6000 (paintText): Paint disabled button correctly.
6002 2004-06-08 Michael Koch <konqueror@gmx.de>
6004 * javax/swing/JToolTip.java
6005 (JToolTip): No arguments in API.
6006 (setTipText): New method.
6008 2004-06-08 Michael Koch <konqueror@gmx.de>
6010 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
6013 2004-06-08 Michael Koch <konqueror@gmx.de>
6015 * javax/swing/AbstractButton.java,
6016 javax/swing/CellRendererPane.java,
6017 javax/swing/JCheckBoxMenuItem.java,
6018 javax/swing/JColorChooser.java,
6019 javax/swing/JComboBox.java,
6020 javax/swing/JComponent.java,
6021 javax/swing/JDesktopPane.java,
6022 javax/swing/JFileChooser.java,
6023 javax/swing/JMenu.java,
6024 javax/swing/JMenuItem.java,
6025 javax/swing/JOptionPane.java,
6026 javax/swing/JPasswordField.java,
6027 javax/swing/JPopupMenu.java,
6028 javax/swing/JProgressBar.java,
6029 javax/swing/JRadioButtonMenuItem.java,
6030 javax/swing/JScrollBar.java,
6031 javax/swing/JSeparator.java,
6032 javax/swing/JSlider.java,
6033 javax/swing/JSplitPane.java,
6034 javax/swing/JTabbedPane.java,
6035 javax/swing/JTextField.java,
6036 javax/swing/JToolBar.java,
6037 javax/swing/text/JTextComponent.java:
6038 Fixed all constructors of accessibility classes.
6040 2004-06-08 Michael Koch <konqueror@gmx.de>
6042 * javax/swing/Box.java
6043 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
6044 (AccessibleBoxFiller.serialVersionUID): New member variable.
6045 * javax/swing/DefaultButtonModel.java
6046 (stateMask): Made protected.
6047 (listenerList): Likewise.
6048 (changeEvent): Likewise.
6050 (mnemonic): Likewise.
6051 (actionCommand): Likewise.
6052 (getListeners): New method.
6053 (getActionListeners): New method.
6054 (getItemListeners): New method.
6055 (getChangeListeners): New method.
6056 (fireItemStateChanged): Simplified.
6057 (fireActionPerformed): Simplified.
6058 (fireStateChanged): Simplified.
6059 * javax/swing/JFrame.java
6060 (JFrame): Implements WindowContants.
6061 (HIDE_ON_CLOSE): Removed.
6062 (EXIT_ON_CLOSE): Removed.
6063 (DISPOSE_ON_CLOSE): Removed.
6064 (DO_NOTHING_ON_CLOSE): Removed.
6065 (processWindowEvent): Exit with code 0.
6066 (setDefaultCloseOperation): Do security check before setting value.
6067 * javax/swing/JOptionPane.java
6068 (message): Initialize only in constructor.
6069 * javax/swing/JToolTip.java: Removed unused imports.
6070 * javax/swing/JViewport.java
6071 (serialVersionUID): New member variable.
6072 (SIMPLE_SCROLL_MODE): Made final, fixed value.
6073 (BLIT_SCROLL_MODE): Likewise.
6074 (BACKINGSTORE_SCROLL_MODE): Likewise.
6075 (scrollUnderway): Made protected.
6076 (isViewSizeSet): Likewise.
6077 * javax/swing/ListModel.java: Fixed javadoc.
6078 * javax/swing/Popup.java: Likewise.
6079 * javax/swing/RepaintManager.java
6080 (paintDirtyRegions): Don't use internal classes of
6081 java.util.AbstractMap.
6082 * javax/swing/ScrollPaneConstants.java: Reindented.
6083 * javax/swing/ScrollPaneLayout.java
6084 (viewport): Made protected.
6085 (verticalScrollBar): Made protected, renamed to vsb.
6086 (horizontalScrollBar): Made protected, renamed to hsb.
6087 (rowHeader): Made protected, renamed to rowHead.
6088 (columnHeader): Made protected, renamed to colHead.
6089 (lowerLeft): Made protected.
6090 (lowerRight): Made protected.
6091 (upperLeft): Made protected.
6092 (upperRight): Made protected.
6093 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
6094 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
6096 2004-06-08 Michael Koch <konqueror@gmx.de>
6098 * javax/swing/plaf/basic/BasicLookAndFeel.java
6099 (initClassDefaults): Added FormattedTextFieldUI.
6100 (loadResourceBundle): Renamed enum to e.
6102 2004-06-08 Michael Koch <konqueror@gmx.de>
6104 * javax/swing/SwingUtilities.java
6105 (isLeftMouseButton): New method.
6106 (isMiddleMouseButton): New method.
6107 (isRightMouseButton): New method.
6109 2004-06-08 Michael Koch <konqueror@gmx.de>
6111 * javax/swing/AbstractButton.java
6112 (getDisabledIcon): Create disabled icon if none exists yet.
6114 2004-06-08 Michael Koch <konqueror@gmx.de>
6116 * javax/swing/JComponent.java
6117 (createToolTip): Use official JToolTip API.
6119 2004-06-08 Graydon Hoare <graydon@redhat.com>
6121 * javax/swing/Box.java: Temporarily comment out code
6122 broken due to visibility bug.
6124 2004-06-07 Michael Koch <konqueror@gmx.de>
6126 * javax/swing/AbstractButton.java
6127 (serialVersionUID): New member variable.
6128 (AccessibleAbstractButton.serialVersionUID): Likewise.
6129 (AbstractButton): Made public.
6130 * javax/swing/Box.java
6131 (AccessibleBox.serialVersionUID): New member variable.
6132 (Filler.serialVersionUID): Likewise.
6133 * javax/swing/DefaultListSelectionModel.java
6134 (serialVersionUID): Likewise.
6135 * javax/swing/JApplet.java
6136 (serialVersionUID): Likewise.
6137 * javax/swing/JCheckBox.java
6138 (serialVersionUID): Likewise.
6139 * javax/swing/JCheckBoxMenuItem.java
6140 (serialVersionUID): Likewise.
6141 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
6142 * javax/swing/JColorChooser.java
6143 (serialVersionUID): Likewise.
6144 (AccessibleJColorChooser.serialVersionUID): Likewise.
6145 * javax/swing/JComponent.java
6146 (serialVersionUID): Made private.
6147 (AccessibleJComponent.serialVersionUID): New member variable.
6148 * javax/swing/JDesktopPane.java
6149 (serialVersionUID): Likewise.
6150 * javax/swing/JDialog.java
6151 (serialVersionUID): Likewise.
6152 * javax/swing/JFormattedTextField.java
6153 (serialVersionUID): Fixed value.
6154 * javax/swing/JFrame.java
6155 (serialVersionUID): New member variable.
6156 (getDefaultCloseOpertation): Made public.
6157 * javax/swing/JLayeredPane.java
6158 (serialVersionUID): Likewise.
6159 (LAYER_PROPERTY): Made final, fixed value.
6160 (JLayeredPane): Made public.
6161 * javax/swing/JMenu.java
6162 (AccessibleJMenu.serialVersionUID): New member variable.
6163 (WinListener.serialVersionUID): Likewise.
6164 * javax/swing/JMenuBar.java
6165 (serialVersionUID): Likewise.
6166 (getComponentAtIndex): Added @deprecated tag.
6167 * javax/swing/JMenuItem.java
6168 (serialVersionUID): New member variable.
6169 (AccessibleJMenuItem.serialVersionUID): Likewise.
6170 * javax/swing/JOptionPane.java
6171 (serialVersionUID): Likewise.
6172 (AccessibleJOptionPane.serialVersionUID): Likewise.
6173 * javax/swing/JPopupMenu.java
6174 (serialVersionUID): Likewise.
6175 (AccessibleJPopupMenu.serialVersionUID): Likewise.
6176 (getPopupMenuListeners): New method.
6177 (getComponentAtIndex): Added @deprecated tag.
6178 * javax/swing/JProgressBar.java
6179 (serialVersionUID): New member variable.
6180 (AccessibleJProgressBar.serialVersionUID): Likewise.
6181 * javax/swing/JRadioButton.java
6182 (serialVersionUID): Likewise.
6183 * javax/swing/JRadioButtonMenuItem.java
6184 (serialVersionUID): Likewise.
6185 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
6186 * javax/swing/JScrollBar.java
6187 (serialVersionUID): Likewise.
6188 (AccessibleJScrollBar.serialVersionUID): Likewise.
6189 * javax/swing/JSeparator.java
6190 (serialVersionUID): Likewise.
6191 (AccessibleJSeparator.serialVersionUID): Likewise.
6192 * javax/swing/JSlider.java: Fixed javadocs.
6193 (AccessibleJSlider.serialVersionUID): New member variable.
6194 * javax/swing/JSplitPane.java: Added copyright statement.
6195 (serialVersionUID): New member variable.
6196 (AccessibleJSplitPane.serialVersionUID): Likewise.
6197 * javax/swing/JTabbedPane.java
6198 (serialVersionUID): Likewise.
6199 (AccessibleJTabbedPane.serialVersionUID): Likewise.
6200 (ModelListener.serialVersionUID): Likewise.
6201 (ModelListener.ModelListener): New constructor.
6202 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
6203 (WRAP_TAB_LAYOUT): Likewise.
6204 * javax/swing/JTable.java
6205 (serialVersionUID): New member variable.
6206 * javax/swing/JToggleButton.java
6207 (serialVersionUID): Likewise.
6208 (ToggleButtonModel): Made static.
6209 (ToggleButtonModel.serialVersionUID): New member variable.
6210 * javax/swing/JToolTip.java
6211 (serialVersionUID): Likewise.
6212 * javax/swing/JTree.java
6213 (serialVersionUID): Likewise.
6214 * javax/swing/JWindow.java
6215 (serialVersionUID): Likewise.
6216 * javax/swing/Timer.java
6217 (serialVersionUID): Likewise.
6219 2004-06-07 Michael Koch <konqueror@gmx.de>
6221 * javax/swing/AbstractButton.java: Reorganized imports.
6222 * javax/swing/ActionMap.java: Likewise.
6223 * javax/swing/DefaultButtonModel.java: Likewise.
6224 * javax/swing/DefaultListModel.java: Likewise.
6225 * javax/swing/ImageIcon.java: Likewise.
6226 (serialVersionUID): New member variable.
6227 * javax/swing/JComboBox.java: Reorganized imports.
6228 * javax/swing/JComponent.java: Likewise.
6229 (ui): Made protected.
6230 (listenerList): Made protected.
6231 (TOOL_TIP_TEXT_KEY): New constant.
6232 (scrollRectToVisible): Removed redundant null check.
6233 * javax/swing/JFrame.java: Reorganized imports.
6234 * javax/swing/JInternalFrame.java: Reorganized imports.
6235 * javax/swing/JProgressBar.java: Likewise.
6236 * javax/swing/JRootPane.java: Likewise.
6237 * javax/swing/JScrollBar.java: Likewise.
6238 * javax/swing/JSeparator.java: Likewise.
6239 * javax/swing/JSlider.java: Likewise.
6240 * javax/swing/JTabbedPane.java: Likewise.
6241 * javax/swing/JTextField.java: Likewise.
6242 * javax/swing/JToolBar.java: Likewise.
6243 * javax/swing/JTree.java: Likewise.
6244 * javax/swing/JViewport.java: Likewise.
6245 * javax/swing/JWindow.java: Likewise.
6246 * javax/swing/KeyStroke.java: Likewise.
6247 * javax/swing/LookAndFeel.java: Likewise.
6248 * javax/swing/MenuSelectionManager.java: Likewise.
6249 * javax/swing/SwingUtilities.java: Likewise.
6250 * javax/swing/Timer.java: Likewise.
6251 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
6252 * javax/swing/JList.java
6253 (HORIZONTAL_WRAP): Made final, fixed value.
6254 (VERTICAL): Likewise.
6255 (VERTICAL_WRAP): Likewise.
6257 2004-06-07 Bernd Schmidt <bernds@btinternet.com>
6259 * java/awt/MediaTracker.java (imageUpdate): Only set status to
6260 LOADING if flags has SOMEBITS set.
6262 2004-06-06 Michael Koch <konqueror@gmx.de>
6264 * javax/swing/SwingConstants.java
6265 (NEXT): New constant.
6266 (PREVIOUS): Likewise.
6267 * javax/swing/UIManager.java
6268 (LookAndFeel): Made public.
6269 (LookAndFeel.getClassName): Likewise.
6270 (LookAndFeel.getName): Likewise.
6272 2004-06-06 Jerry Quinn <jlquinn@optonline.net>
6274 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
6276 2004-06-05 Michael Koch <konqueror@gmx.de>
6278 * javax/swing/UIManager.java
6279 (LookAndFeel): Made public.
6280 (LookAndFeel.getName): Likewise.
6281 (LookAndFeel.getClassName): Likewise.
6283 2004-06-03 Michael Koch <konqueror@gmx.de>
6285 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6286 (requestFocus): Revert last changes.
6287 (gtkRequestFocus): Removed.
6288 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6289 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
6291 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
6292 Reverted last patch.
6293 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6294 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
6295 Reverted comment change.
6297 2004-06-02 Olga Rodimina <rodimina@redhat.com>
6299 * javax/swing/JCheckBoxMenuItem.java:
6301 * javax/swing/JMenu.java: Likewise.
6302 * javax/swing/JMenuBar.java: Likewise.
6303 * javax/swing/JMenuItem.java: Likewise.
6304 * javax/swing/JPopupMenu.java: Likewise.
6305 * javax/swing/JRadioButtonMenuItem.java: Likewise.
6306 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
6307 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
6308 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6309 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
6310 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
6311 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
6313 2004-06-01 Tom Tromey <tromey@redhat.com>
6315 * java/io/ObjectStreamField.java: Cleaned up imports.
6317 2004-06-01 Michael Koch <konqueror@gmx.de>
6319 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
6321 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
6322 Java 1.5 keyword usage.
6324 2004-06-01 Mark Wielaard <mark@klomp.org>
6326 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
6327 Implement by calling gtkRequestFocus.
6328 (gtkRequestFocus): New native method.
6329 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6330 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
6332 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
6334 (filter_expose_event_handler):
6336 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6337 (menu_pos): Mark static.
6339 2004-05-31 Olga Rodimina <rodimina@redhat.com>
6341 * javax/swing/plaf/basic/BasicMenuUI.java:
6342 (MouseEntered): Do not call getPath() from MenuSelectionManager.
6343 Call getPath() from super class instead.
6345 2004-05-31 Michael Koch <konqueror@gmx.de>
6347 * gnu/java/rmi/rmic/CompilerProcess.java:
6348 Fixed javadoc to by XHTML compliant.
6350 2004-05-31 David Jee <djee@redhat.com>
6352 * java/awt/Container.java
6353 (remove): Set component visibility to false after removing it.
6355 2004-05-30 Michael Koch <konqueror@gmx.de>
6357 * java/awt/DefaultKeyboardFocusManager.java
6358 (dispatchEvent): Call method to get key event dispatchers.
6359 (dispatchKeyEvent): Call method to get key event post processors.
6360 * javax/swing/JComponent.java
6361 (listenerList): Made protected.
6362 * javax/swing/JOptionPane.java
6363 (message): Don't initialize.
6364 (JOptionPane): Set message text.
6365 * javax/swing/JPopupMenu.java
6366 (show): Fixed typo in argument name.
6367 * javax/swing/RepaintManager.java
6368 (paintDirtyRegions): Use public API of java.util.Map.
6369 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
6370 (positionForMouseEvent): Removed redundant ';'.
6371 (continueDrag): Use method arguments.
6373 2004-05-30 Mark Wielaard <mark@klomp.org>
6375 * java/awt/Toolkit.java (loadSystemColors): Implement.
6377 2004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
6379 * java/text/DecimalFormat.java
6380 (parse): Fixed parsing of decimal strings. Number of maximum
6381 digits to be read should now work.
6382 * java/text/SimpleDateFormat.java
6383 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
6384 formatter. This fixes DateFormatTest.
6386 2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
6388 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
6391 2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
6393 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
6395 * gnu/gcj/RawDataManaged.java: New file.
6396 * java/lang/Thread.java (data): Declare as RawDataManaged.
6397 * java/lang/natThread.cc (init_native): Cast natThread data to
6398 RawDataManaged, not jobject.
6399 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
6400 * Makefile.in: Rebuilt.
6402 2004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
6404 * java/awt/Component.java (getForeground): Return SystemColor if
6406 (getBackground): Likewise.
6408 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6409 (item_highlighted): New function.
6410 (connectSignals): Set item_highlighted as list's select
6413 * java/applet/Applet.java: Revert changes from 2004-04-29,
6414 2004-03-15 and 2004-03-14.
6416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
6417 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
6420 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
6421 "Dialog" as the default font.
6422 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
6424 * java/awt/Component.java (getFont): Return "Dialog" font by
6426 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
6427 Multiply size argument to pango_font_description_set_size by the
6428 DPI conversion factor rather than by PANGO_SCALE.
6429 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
6430 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
6431 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
6432 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
6433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
6434 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
6435 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
6436 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
6437 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
6438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
6439 Divide baseline y coordinate by DPI conversion factor rather
6440 than by PANGO_SCALE.
6441 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
6442 (area_prepared): Fix typo.
6443 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
6444 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
6445 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
6446 (dpi_conversion_factor): New global variable.
6447 (init_dpi_conversion_factor): New function to calculate and
6448 track DPI conversion factor.
6449 (dpi_changed_cb): New callback.
6450 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
6452 2004-05-27 Michael Koch <konqueror@gmx.de>
6454 * javax/swing/JPopupMenu.java
6455 (isVisible): Do not use visible directly.
6456 (setVisible): Likewise.
6457 * javax/swing/JWindow.java
6458 (JWindow): call accessible constructor.
6459 * javax/swing/RepaintManager.java
6460 (paintDirtyRegions): Use public methods to obtain iterator.
6462 2004-05-27 Jerry Quinn <jlquinn@optonline.net>
6464 * java/util/SimpleTimeZone.java: Reverting my last change until I
6465 can fix it properly.
6467 2004-05-27 David Jee <djee@redhat.com>
6469 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6470 (getGraphics): Return a new GdkGraphics instance.
6471 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
6472 (getGraphics): Call super.getGraphics().
6474 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
6476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6477 (setNativeBounds): Clamp width and height values to >= 0.
6479 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6480 (find_fg_color_widget): Handle GtkOptionMenu specially.
6482 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6483 (pre_event_handler): Only post configure events to visible
6486 2004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
6488 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6489 (window_wm_protocols_filter): Remove function.
6490 (create): Remove filter that removes WM_TAKE_FOCUS client
6493 2004-05-26 Jerry Quinn <jlquinn@optonline.net>
6496 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6497 (setStartRule,setEndRule): Don't take abs of day number.
6498 (getOffset): Clarify docs. Add argument checks.
6499 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6500 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6502 * testsuite/libjava.mauve/xfails
6503 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6505 2004-05-26 David Jee <djee@redhat.com>
6507 * java/awt/BorderLayout.java
6508 (layoutContainer): Fix size calculations.
6510 2004-05-25 David Jee <djee@redhat.com>
6512 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6513 (GtkComponentPeer): Set bounds regardless of whether awtComponent
6515 * gnu/java/awt/peer/gtk/GtkListPeer.java
6516 (getSize): Change native method declaration.
6517 (minimumSize): Pass visible row count into getSize().
6518 (preferredSize): Likewise.
6519 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
6520 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
6521 natural size. Use visible row count to determine the final height
6524 2004-05-25 David Jee <djee@redhat.com>
6526 * java/awt/Container.java
6527 (remove): Set component's parent to null only after we removed the
6528 component from its parent's layout manager.
6530 2004-05-21 Olga Rodimina <rodimina@redhat.com>
6532 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6533 (BasicMenuItemUI): Create propertyChangeListener.
6534 (getPath):Implemented.
6535 (installListeners): Add propertyChangeListener to menuItem.
6536 (uninstallListeners): Remove propertyChangeListener from menuItem.
6537 (update): Implemented.
6538 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6539 (mouseEntered): Take insets of popup menu into account when
6540 calculating position of popup menu.
6542 2004-05-21 Graydon Hoare <graydon@redhat.com>
6544 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
6545 (setClip): Minor correction to order of operations.
6547 * javax/swing/JScrollPane.java: Extend sketchy implementation.
6548 * javax/swing/ScrollPaneLayout.java: Likewise.
6549 * javax/swing/JViewPort.java: Likewise.
6550 * javax/swing/ViewportLayout.java: Likewise.
6552 * javax/swing/JComponent.java: Rewrite.
6553 * javax/swing/RepaintManager.java: Likewise.
6555 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
6556 * javax/swing/JList.java
6557 (setSelectedIndices):
6558 (getSelectedIndices):
6559 (getSelectedValues): New functions.
6560 (getPreferredScrollableViewportSize): Return preferred size.
6561 (getScrollableUnitIncrement):
6562 (getScrollableBlockIncrement): Initial implementations.
6563 * javax/swing/JRootPane.java: Clean up slightly.
6568 (isValidateRoot): Add overrides from JComponent.
6569 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
6570 * javax/swing/UIManager.java (getDimension): Return the dimension.
6572 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
6573 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
6574 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
6575 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
6576 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
6577 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
6578 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
6579 * javax/swing/plaf/basic/BasicRootPaneUI.java:
6580 Likewise, and set background.
6581 * javax/swing/plaf/basic/BasicListUI.java:
6582 Likewise, and improve a bit.
6583 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6584 Likewise, and adjust calculations.
6585 * javax/swing/plaf/basic/BasicViewportUI.java:
6586 Likewise, and improve a bit.
6587 * javax/swing/plaf/basic/BasicLookAndFeel.java
6588 (Button.margin): Shrink.
6590 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6591 Hack to set horizontal always, workaround pango.
6593 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
6594 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
6595 Synchronize more often, check cairo status after ops,
6596 handle changes to cairo pattern API, check for disposal.
6598 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6600 Layout interfaces during preparation, not initialization.
6601 * java/lang/natClass.cc (initializeClass): Move
6602 _Jv_LayoutInterfaceMethods call...
6603 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6605 2004-05-19 Anthony Green <green@redhat.com>
6607 * Makefile.am: Define JAVA_EXT_DIRS.
6608 * Makefile.in: Rebuilt.
6609 * java/lang/natRuntime.cc (insertSystemProperties): Set
6610 java.ext.dirs property.
6612 2004-05-19 Anthony Green <green@localhost.localdomain>
6614 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6616 * Makefile.in: Rebuilt.
6617 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6618 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6619 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6620 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6621 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6622 gnu/javax/rmi/CORBA/DelegateFactory.java,
6623 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6624 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6625 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6626 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6627 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6628 gnu/javax/rmi/PortableServer.java: Remove files.
6630 2004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
6632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
6633 to _gtk_accel_group_attach.
6634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6637 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
6638 package access. Don't override setFont.
6639 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
6640 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
6641 gtkWidgetRequestFocus package access.
6642 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
6644 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
6645 Give gtkWidgetRequestFocus package access.
6646 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
6647 gtkWidgetRequestFocus package access. Don't override setFont.
6648 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
6650 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6651 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
6653 (gtkSetFont): Likewise.
6654 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
6656 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6657 (gtkSetFont): Whitespace fix.
6659 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6660 (gtkWidgetSetUsize): Remove method.
6662 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6664 * Makefile.am: Added new file.
6665 * Makefile.in: Regenerate.
6666 * javax/swing/JMenuBar.java:
6667 Started implementation.
6668 * javax/swing/JPopupMenu.java:
6669 (setVisible): Fixed location of lightweight/mediumweight
6671 (show): Fixed location of PopupMenu.
6672 * javax/swing/plaf/basic/BasicMenuBarUI.java:
6673 New file. UI Delegate for JMenuBar.
6674 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
6675 (mouseEntered): Corrected position of the submenu.
6677 2004-05-18 Olga Rodimina <rodimina@redhat.com>
6679 * Makefile.am: Added new file.
6680 * Makefile.in: Regenerate.
6681 * javax/swing/JMenu.java: Started
6683 * javax/swing/JPopupMenu.java:
6684 (insert): If specified index is -1, then
6685 add component at the end.
6686 (isPopupTrigger): Reimplemented.
6687 (JPopupMenu.LightWeightPopup): setBounds
6688 of the lightWeightPopup before adding it
6690 (javax/swing/plaf/basic/BasicIconFactory.java):
6691 (getMenuArrowIcon): Implemented.
6692 * javax/swing/plaf/basic/BasicMenuItemUI.java:
6693 (getPreferredSize): Add size of the arrow icon
6694 if this menu item is instance of JMenu.
6695 (paintMenuItem): Paint arrow icon if this
6696 menu item is a submenu.
6697 * javax/swing/plaf/basic/BasicMenuUI.java:
6698 New File. UI Delegate for JMenu.
6700 2004-05-18 David Jee <djee@redhat.com>
6702 * java/awt/image/MemoryImageSource.java
6703 (newPixels(int,int,int,int,boolean)): Set only the specified
6704 rectangle of pixels.
6705 (newPixels(byte[],ColorModel,int,int)): Implement.
6706 (newPixels(int[],ColorModel,int,int)): Implement.
6708 2004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
6710 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
6711 Post KEY_TYPED events.
6712 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6713 (generates_key_typed_event): Remove function.
6715 2004-05-17 Olga Rodimina <rodimina@redhat.com>
6717 * javax/swing/JRootPane.java
6718 (JRootPane.RootLayout): Reimplemented to
6719 set bounds of contentPane and menuBar.
6720 (setJMenuBar): Add menu bar to the layered pane.
6721 (createLayeredPane): Set layout of layeredPane
6723 * javax/swing/JLayeredPane.java:
6724 (addImpl): Calculate index of the component in the
6725 layeredPane according to the specified position within
6728 2004-05-17 David Jee <djee@redhat.com>
6730 * gnu/java/awt/peer/gtk/GtkImagePainter.java
6731 (setPixels): Change color model to the default model after
6733 * java/awt/image/MemoryImageSource.java
6734 (newPixels): Set only the specified rectangle of pixels.
6736 2004-05-16 Mark Wielaard <mark@klomp.org>
6738 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6740 2004-05-15 Michael Koch <konqueror@gmx.de>
6742 * javax/print/CancelablePrintJob.java,
6743 javax/print/Doc.java,
6744 javax/print/DocFlavor.java,
6745 javax/print/DocPrintJob.java,
6746 javax/print/FlavorException.java,
6747 javax/print/PrintException.java,
6748 javax/print/PrintService.java,
6749 javax/print/ServiceUIFactory.java: New files.
6751 2004-05-15 Mark Wielaard <mark@klomp.org>
6753 * gnu/regexp/CharIndexedReader.java: Removed.
6754 * gnu/regexp/REFilterReader.java: Likewise.
6755 * gnu/regexp/RETokenLookAhead.java: Likewise.
6756 * Makefile.am (ordinary_java_source_files): Remove above classes.
6757 * Makefile.in: Regenerated.
6759 2004-05-14 Tom Tromey <tromey@redhat.com>
6761 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6762 not `XGraphicsConfiguration.XOffScreenImage'.
6764 2004-05-14 Steven Augart <augart@watson.ibm.com>
6766 * include/jni.h (_Jv_func): Removed.
6767 (struct JNINativeInterface): Use `void *' for reserved slots.
6768 (struct JNIInvokeInterface): Likewise.
6770 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
6772 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6774 2004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
6776 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
6777 -l-java-beans -l-javax-accessibility -l-javax-swing.
6779 * java/awt/AWTEvent.java (toString): Print source's name rather
6780 than the source itself.
6782 2004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
6784 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
6786 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
6787 (gdk_color_to_java_color): New function.
6788 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
6790 2004-05-12 David Jee <djee@redhat.com>
6792 * java/awt/image/RGBImageFilter.java:
6793 Initialize origmodel as null.
6794 (makeColor): Fix pixel component order.
6795 (filterRGBPixels): Fix pixel iteration.
6796 (setPixels): Add extra checks for index color model. Convert pixels
6797 to default color model if necessary.
6798 (convertColorModelToDefault): New override method for byte pixels.
6799 (convertColorModelToDefault): For int pixels, fix pixel iteration.
6800 (makeColorbyDefaultCM): New override method for byte pixels.
6801 (makeColorbyDefaultCM): For int pixel, add color model as argument.
6802 (makeColor): Fix pixel component order.
6804 2004-05-11 Michael Koch <konqueror@gmx.de>
6806 * gnu/java/net/natPlainSocketImplPosix.cc
6807 (read): Fixed typo in expression.
6809 2004-05-11 Kim Ho <kho@redhat.com>
6811 * javax/swing/Box.java:
6812 Comment out more parts of Box.Filler.
6814 2004-05-11 Kim Ho <kho@redhat.com>
6816 * javax/swing/Box.java:
6817 Remove reference to AccessibleAWTComponent so
6820 2004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6822 * gnu/java/awt/peer/gtk/GtkListPeer.java,
6823 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
6824 implementation of list peer to use GtkTreeView instead of
6825 deprecated GtkCList.
6827 2004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6829 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6832 2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6834 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6835 ld_library_additions. Adjust all calls to libjava_invoke to match
6838 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6839 path to cxxflagslist.
6840 Pass path of libstdc++ to libjava_invoke.
6842 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6843 libjava_invoke arguments.
6845 2004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
6847 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6848 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
6849 (handleEvent): Remove keyChar argument to
6850 gtkWidgetDispatchKeyEvent calls.
6851 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
6853 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
6854 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
6855 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
6858 2004-05-07 Ranjit Mathew <rmathew@gmail.com>
6860 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6861 main binary against the JNI shared library.
6863 2004-05-07 Jerry Quinn <jlquinn@optonline.net>
6865 * java/util/Calendar.java (getActualMinimum,
6866 getActualMaximum): Remove abstract. Implement.
6868 2004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
6870 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
6871 (gtkWidgetRequestFocus): Mark protected.
6872 (GtkComponentPeer): Only set the peer's bounds if its component
6874 * java/awt/Component.java (static): Set the default keyboard
6876 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
6877 requestFocusInWindow(temporary)): Don't request focus if the
6878 component is not showing. Get tree lock before traversing
6879 component hierarchy.
6880 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
6881 Only set the global focus owner if it is not a Window.
6882 (processKeyEvent): Consume keystrokes associated with the focus
6883 traversal keystroke.
6884 (focusPreviousComponent, focusNextComponent, upFocusCycle,
6885 downFocusCycle): Call requestFocusInWindow instead of
6887 * java/awt/EventDispatchThread.java (run): Move setting of
6888 default keyboard focus manager to Component.java.
6889 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
6890 (awt_keycode_to_keysym): New function.
6891 (gtkWidgetDispatchKeyEvent): Finish implementation.
6892 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
6893 (pre_event_handler): Add FIXME comment.
6895 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
6896 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
6897 (gtkWidgetRequestFocus): New method.
6898 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
6899 disable Tab and Shift-Tab keystrokes.
6900 (addNotify, appendText, insertText, replaceText): Simplify peer
6902 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
6903 (connectSignals): Remove connections to "commit" signals.
6904 Remove C++-style comments.
6906 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
6907 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
6908 (handleEvent): Activate GTK button when the space bar key is
6910 (gtkActivate): New method.
6912 2004-05-06 Michael Koch <konqueror@gmx.de>
6914 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6915 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6917 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6918 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6919 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6920 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6921 their own source file.
6922 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6923 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6924 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6925 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6926 (create): Define variable on top of function.
6927 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6928 (menu_pos): Prototyped.
6929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6930 (setTitle): Removed.
6931 * jni/gtk-peer/gthread-jni.c
6932 (gdk_threads_wake): Removed.
6933 * Makefile.am (gtk_c_source_files): Added new files
6934 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6935 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6936 * Makefile.in: Regenerated.
6938 2004-05-06 Kim Ho <kho@redhat.com>
6940 * javax/swing/Box.java:
6941 (getAccessibleContext): Return an instance of the
6944 2004-05-06 David Jee <djee@redhat.com>
6946 * java/awt/image/CropImageFilter.java
6947 (setPixels): Implement for byte array pixels.
6948 * java/awt/image/ReplicateScaleFilter.java
6949 (setPixels): Implement for byte array pixels.
6950 (replicatePixels): Overload for byte array pixels.
6952 2004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6954 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6955 verify_field_signature and verify_method_signature, not
6956 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6957 (_Jv_ClassReader::handleField): Likewise.
6958 (_Jv_ClassReader::handleMethod): Likewise.
6960 2004-05-05 Tom Tromey <tromey@redhat.com>
6962 * java/text/Format.java: Cleaned up imports.
6963 * java/text/DecimalFormat.java: Cleaned up imports.
6964 * java/security/SecureRandom.java: Cleaned up imports.
6965 (SecureRandom): Removed unused variable.
6966 * java/security/UnresolvedPermission.java: Cleaned up imports.
6967 * java/util/Date.java (parse): Removed unused variable.
6968 * java/util/ResourceBundle.java: Cleaned up imports.
6969 (getBundle): Removed unused variable.
6970 (tryBundle): Likewise.
6971 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6973 2004-05-05 Michael Koch <konqueror@gmx.de>
6975 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6977 2004-05-05 Mark Wielaard <mark@klomp.org>
6979 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6980 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6982 2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6984 * java/text/DecimalFormat.java
6985 (scanFix): Build attribute array. Fixed error reporting.
6986 (applyPatternWithSymbols): Store attributes for the prefix and
6988 (formatInternal): New method. Changed the way the string is
6989 computed. Implemented attributes. Cleant up rounding in
6990 exponential notation.
6991 (format): Use formatInternal.
6992 (formatToCharacterIterator): New method.
6993 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6994 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6995 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6998 2004-05-05 David Jee <djee@redhat.com>
7000 * gnu/java/awt/peer/gtk/GdkGraphics.java
7001 (drawImage): When component is null, use SystemColor.window as
7002 the default bgcolor.
7003 * gnu/java/awt/peer/gtk/GtkImage.java
7004 (setPixels): We can avoid iterating through the pixel rows only
7006 * java/awt/Image.java
7007 (getScaledInstance): Partially implement.
7008 * java/awt/image/CropImageFilter.java
7009 (setProperties): Fix "filter" property.
7010 (setPixels): Implement.
7011 * java/awt/image/ReplicateScaleFilter.java
7012 (setDimensions): Use scaled dimensions.
7013 (setPixels): Implement.
7014 (replicatePixels): New method.
7016 2004-05-05 David Jee <djee@redhat.com>
7018 * gnu/java/awt/peer/gtk/GtkImagePainter.java
7019 (convertPixels): If either pixels or model is null, return null.
7020 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
7021 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
7022 is null, do nothing and return.
7024 2004-05-05 Dalibor Topic <robilad@kaffe.org>
7026 * java/text/AttributedString.java,
7027 java/text/AttributedStringIterator.java,
7028 java/text/Collator.java,
7029 java/text/DecimalFormatSymbols.java,
7030 java/text/NumberFormat.java,
7031 java/text/RuleBasedCollator.java:
7034 2004-05-05 Bryce McKinlay <mckinlay@redhat.com>
7036 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
7039 2004-05-04 Michael Koch <konqueror@gmx.de>
7041 * gnu/java/text/CharacterBreakIterator.java
7042 (previous): Removed unused variable.
7044 2004-05-04 Mark Wielaard <mark@klomp.org>
7046 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
7048 2004-05-04 Ingo Proetel <proetel@aicas.com>
7050 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
7051 (getColorModel): Return the actual color model.
7052 (getRaster): Implemented.
7053 (ColorRaster): New inner class.
7054 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
7056 * java/awt/Color.java (<init>): Make exception more verbose.
7057 (createContext): Use ColorModel when creating a PaintContext.
7059 2004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
7061 * gnu/java/text/FormatBuffer.java,
7062 gnu/java/text/AttributedFormatBuffer.java,
7063 gnu/java/text/StringFormatBuffer.java: New classes to implement
7064 attributed iterators in java.text.
7065 * gnu/java/text/FormatCharacterIterator.java: Moved
7066 from java/text as it is an internal class.
7067 * java/text/FormatCharacterIterator.java: Removed.
7068 * java/text/Format.java:
7069 Import gnu.java.text.FormatCharacterIterator.
7070 * Makefile.am (java_source_files): Added new files.
7071 * Makefile.in: Regenerated.
7074 2004-05-04 Dalibor Topic <robilad@kaffe.org>
7076 * java/security/interfaces/DSAKeyPairGenerator.java,
7077 java/security/interfaces/DSAPrivateKey.java,
7078 java/security/interfaces/DSAPublicKey.java,
7079 java/security/interfaces/RSAPrivateKey.java,
7080 java/security/interfaces/RSAPublicKey.java:
7083 2004-05-03 Tom Tromey <tromey@redhat.com>
7085 * java/net/URLStreamHandler.java (toExternalForm): Removed
7088 * java/math/BigDecimal.java (divide): Removed unused variable.
7089 * java/lang/Throwable.java: Cleaned up imports.
7090 * java/lang/ClassLoader.java: Cleaned up imports.
7091 * java/io/FilePermission.java (implies): Removed unused
7093 * java/awt/TextComponent.java: Removed unused import.
7094 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
7095 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
7096 * gnu/java/text/WordBreakIterator.java: Removed unused import.
7097 * gnu/java/text/SentenceBreakIterator.java: Removed unused
7099 * gnu/java/text/LineBreakIterator.java: Removed unused import.
7100 * gnu/java/text/CharacterBreakIterator.java: Removed
7102 * gnu/java/security/provider/DSAKeyPairGenerator.java:
7104 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
7105 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
7107 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
7108 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
7109 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
7110 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
7111 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
7112 (lookupProviders): Removed unused variable.
7113 (loadNextServiceProvider): Likewise.
7114 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
7116 2004-05-03 Olga Rodimina <rodimina@redhat.com>
7118 * Makefile.am: Added new file.
7119 * Makefile.in: Regenerate.
7120 * javax/swing/JPopupMenu.java:
7121 Started implementation.
7122 * javax/swing/JWindow.java
7123 (JWindow): call super() if parent for window
7125 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
7126 New File. UI Delegate for JPopupMenu.
7128 2004-05-03 Michael Koch <konqueror@gmx.de>
7130 Fixes PR libgcj/14695:
7131 * java/net/NetworkInterface.java
7132 (getByName): Return null when no interface was found.
7134 2004-05-03 Mark Wielaard <mark@klomp.org>
7136 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
7137 unused variables hScrollbarHeight and vScrollbarWidth.
7138 (preferredSize): Likewise.
7139 * gnu/java/security/provider/DSAParameters.java (engineToString):
7140 Removed unused call to System.getProperty("line.seperator");
7141 * java/security/Security.java (loadProviders): Return result.
7143 2004-05-03 Kim Ho <kho@redhat.com>
7145 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
7146 (getGraphics): Like GtkFramePeer, the Graphics
7147 object needs to be translate to account for
7149 (postMouseEvent): New method. Account for
7151 (postExposeEvent): ditto.
7152 * javax/swing/Box.java: Stubbed.
7153 * javax/swing/JDialog.java: Ran through jalopy
7155 (JDialog): Call SwingUtilities' getOwnerFrame
7157 (setLayout): Check isRootPaneCheckingEnabled
7158 * javax/swing/JOptionPane.java: Re-implemented.
7159 * javax/swing/SwingUtilities.java:
7160 (getOwnerFrame): Static method to grab a default
7161 owner frame for Dialogs that don't specify owners.
7162 * javax/swing/event/SwingPropertyChangeSupport.java:
7163 (firePropertyChange): Fix early exit condition.
7164 * javax/swing/plaf/basic/BasicLabelUI.java:
7165 (paint): Avoid painting text if it is null
7167 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
7170 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
7172 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
7173 * Makefile.in: Rebuilt.
7175 2004-04-30 Roger Sayle <roger@eyesopen.com>
7177 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
7180 2004-04-30 Ranjit Mathew <rmathew@hotmail.com>
7181 Tom Tromey <tromey@redhat.com>
7183 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
7184 additional option "-Wmissing-prototypes" for compiling C sources.
7185 Print actual filename for pass/fail rather than $name.c.
7186 * testsuite/libjava.jni/PR15133.java: New testcase file.
7187 * testsuite/libjava.jni/PR15133.c: Likewise.
7188 * testsuite/libjava.jni/PR15133.out: Likewise.
7190 2004-04-30 Olga Rodimina <rodimina@redhat.com>
7192 * javax/swing/JApplet.java: Indicated that JApplet
7193 implements RootPaneContainer and made method of this
7195 * javax/swing/JFrame.java: Ditto.
7196 * javax/swing/JWindow.java: Ditto.
7198 2004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
7200 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7201 (nativeSetBounds): Call gdk_window_move in addition to
7204 * java/applet/Applet.java (preferredSize): Call parent's
7205 preferredSize if the applet stub is null.
7206 (minimumSize): Likewise for parent's minimumSize.
7208 2004-04-27 Olga Rodimina <rodimina@redhat.com>
7210 * javax/swing/JMenuItem.java
7211 (createActionPropertyChangeListener): Implemented.
7212 (processMouseEvent): Ditto.
7213 (fireMenuDragMouseEntered): Ditto.
7214 (fireMenuDragMouseExited): Ditto.
7215 (fireMenuDragMouseDragged): Ditto.
7216 (fireMenuDragMouseReleased): Ditto.
7217 (menuSelectionChanged): Ditto.
7218 (getSubElements): Ditto.
7219 (getComponent): Ditto.
7220 (addMenuDragMouseListener): Ditto.
7221 (removeMenuDragMouseListener):Ditto.
7222 (addMenuKeyListener): Ditto.
7223 (removeMenuKeyListener): Ditto.
7224 * javax/swing/plaf/basic/BasicMenuItemUI.java
7225 (doClick): Imlemented.
7226 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
7227 Don't handle mouse events here. Pass them to
7228 MenuSelectionManager.
7230 2004-04-26 Olga Rodimina <rodimina@redhat.com>
7231 Used correct version of jalopy configuration
7232 file to fix style in the files below.
7234 2004-04-26 Olga Rodimina <rodimina@redhat.com>
7236 * javax/swing/JCheckBoxMenuItem.java:
7237 Fixed style and removed unnecessary comments.
7238 * javax/swing/JMenuItem.java: Ditto.
7239 * javax/swing/JRadioButtonMenuItem.java: Ditto.
7240 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
7241 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
7242 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
7244 2004-04-25 Ranjit Mathew <rmathew@hotmail.com>
7246 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
7247 limit the maximum heap size to avoid unnecessary thrashing.
7249 2004-04-24 Jerry Quinn <jlquinn@optonline.net>
7251 * java/text/CollationElementIterator.java (reset): Reset
7252 lookahead variables.
7254 2004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
7256 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
7259 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
7261 * java/awt/ContainerOrderFocusTraversalPolicy.java
7262 (getComponentAfter): Start from current component and work up
7263 the component hierarchy until an acceptable component is found.
7264 Synchronize on tree lock.
7265 (getComponentBefore): Likewise.
7267 2004-04-23 Michael Koch <konqueror@gmx.de>
7269 * gnu/java/nio/channels/FileChannelImpl.java
7270 (SET, CUR): Unused, removed.
7271 (read): Implement here directly.
7272 (implRead): Removed.
7273 (write): Implement here directly.
7274 (implWrite): Removed.
7276 2004-04-23 Mark Wielaard <mark@klomp.org>
7278 * jni/classpath/jcl.c: Changed C++ comments into C comments.
7280 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7282 * java/sql/DriverManager.java:
7285 2004-04-23 Dalibor Topic <robilad@kaffe.org>
7287 * java/util/logging/FileHandler.java,
7288 java/util/logging/Formatter.java,
7289 java/util/logging/Handler.java,
7290 java/util/logging/Logger.java,
7291 java/util/logging/SimpleFormatter.java,
7292 java/util/logging/XMLFormatter.java:
7295 2004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7297 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
7298 focus-related debugging messages.
7299 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
7300 * java/awt/EventDispatchThread.java: Likewise.
7301 * java/awt/KeyboardFocusManager.java: Likewise.
7302 * java/awt/Window.java: Likewise.
7303 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
7304 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
7306 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
7307 new C++-style comments to C-style comments.
7308 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
7310 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
7311 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7312 (handleEvent): Dispatch key press and key release events to
7314 (requestFocus): Post a FOCUS_GAINED event to the event queue.
7315 (gtkWidgetRequestFocus): New method.
7316 (gtkWidgetDispatchKeyEvent): Likewise.
7317 * java/awt/Component.java (requestFocus, requestFocus(boolean),
7318 requestFocusInWindow, requestFocusInWindow(boolean),
7319 getFocusCycleRootAncestor, nextFocus, transferFocus,
7320 transferFocusBackward, transferFocusUpCycle, hasFocus,
7321 isFocusOwner): Implement and document focus-handling methods.
7322 (setFocusTraversalKeys): Inherit focus traversal keys when
7323 keystrokes argument is null. Fix focus-handling documentation
7325 * java/awt/Container.java (setFocusTraversalKeys,
7326 getFocusTraversalKeys, areFocusTraversalKeysSet,
7327 isFocusCycleRoot, setFocusTraversalPolicy,
7328 getFocusTraversalPolicy, isFocusTraversalPolicySet,
7329 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
7330 Implement and document focus-handling methods.
7331 (transferFocusBackward): Remove method.
7332 (readObject, writeObject): Implement and document serialization
7334 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
7336 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
7338 * java/awt/DefaultKeyboardFocusManager.java: Implement and
7340 * java/awt/EventDispatchThread.java (run): Set default keyboard
7341 focus manager. Attempt to dispatch each event to the keyboard
7342 focus manager before normal dispatch.
7343 * java/awt/KeyboardFocusManager.java: Implement and partially
7345 * java/awt/Window.java (Window): Set focusCycleRoot to true.
7346 (show): Focus initial component when window is shown for the
7348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
7349 (pre_event_handler): Replace complex key press and key release
7350 logic with simple callbacks into GtkComponentPeer.
7351 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
7353 2004-04-22 Michael Koch <konqueror@gmx.de>
7355 * java/nio/charset/IllegalCharsetNameException.java
7356 (charsetName): Made private.
7357 (IllegalCharsetNameException): Added @param tag to javadoc.
7358 (getCharsetName): Added @return tag to javadoc.
7359 * java/nio/charset/MalformedInputException.java
7360 (MalformedInputException): Added @param tag to javadoc.
7361 (getInputLength): Revised method description, added @return tag.
7362 (getMessage): Added @return tag.
7364 2004-04-22 Mark Wielaard <mark@klomp.org>
7366 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7367 Changed C++ comments into C comments.
7368 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
7371 2004-04-22 Jerry Quinn <jlquinn@optonline.net>
7373 * java/awt/Font.java (deriveFont): Implement missing variants.
7374 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
7377 2004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
7379 * java/net/URLStreamHandler.java
7380 (parseURL): Convert the file path to using '/' instead of native
7383 2004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
7386 (userInfo): New field.
7387 (URL): Set authority to the right value.
7388 (setURL): Fixed authority and file initialization.
7389 * java/net/URLStreamHandler.java
7390 (parseURL): Take care of the query tag. Build authority.
7391 (toExternalForm): Fixed URL building using authority.
7393 2004-04-22 Dalibor Topic <robilad@kaffe.org>
7395 * java/util/regex/Matcher.java,
7396 java/util/regex/Pattern.java:
7399 2004-04-21 Olga Rodimina <rodimina@redhat.com>
7401 * javax/swing/MenuSelectionManager.java
7402 (componentForPoint): Added new method.
7403 (defaultManager): New Method. Implemented.
7404 (getSelectedPath): Ditto.
7405 (isComponentPartOfCurrentMenu): Ditto.
7406 (processKeyEvent): Added new method.
7407 (processMouseEvent): New Method. Implemented.
7408 (setSelectedPath): Ditto.
7411 2004-04-21 Michael Koch <konqueror@gmx.de>
7413 * java/util/Map.java
7414 (Entry): Removed redundant "static" modifier.
7415 * java/text/AttributedCharacterIterator.java:
7416 Updated copyright year.
7418 2004-04-21 Mark Wielaard <mark@klomp.org>
7420 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7421 static fields defined in interface.
7422 * javax/awt/JDialog.java: Likewise.
7423 (JDialog): Make constructors public.
7424 (getDefaultCloseOperation): Make public.
7425 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7426 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7427 * javax/swing/JViewport.java (JViewport): Make constructor public.
7429 2004-04-21 Dalibor Topic <robilad@kaffe.org>
7431 * javax/naming/AuthenticationException.java,
7432 javax/naming/AuthenticationNotSupportedException.java,
7433 javax/naming/CannotProceedException.java,
7434 javax/naming/CommunicationException.java,
7435 javax/naming/CompoundName.java,
7436 javax/naming/ConfigurationException.java,
7437 javax/naming/ContextNotEmptyException.java,
7438 javax/naming/InitialContext.java,
7439 javax/naming/InsufficientResourcesException.java,
7440 javax/naming/InterruptedNamingException.java,
7441 javax/naming/LimitExceededException.java,
7442 javax/naming/LinkException.java,
7443 javax/naming/LinkLoopException.java,
7444 javax/naming/LinkRef.java,
7445 javax/naming/MalformedLinkException.java,
7446 javax/naming/Name.java,
7447 javax/naming/NameAlreadyBoundException.java,
7448 javax/naming/NameNotFoundException.java,
7449 javax/naming/NamingSecurityException.java,
7450 javax/naming/NoInitialContextException.java,
7451 javax/naming/NoPermissionException.java,
7452 javax/naming/NotContextException.java,
7453 javax/naming/PartialResultException.java,
7454 javax/naming/ReferralException.java,
7455 javax/naming/ServiceUnavailableException.java,
7456 javax/naming/SizeLimitExceededException.java,
7457 javax/naming/TimeLimitExceededException.java,
7458 javax/naming/directory/Attribute.java,
7459 javax/naming/directory/Attributes.java,
7460 javax/naming/directory/SearchResult.java,
7461 javax/naming/event/NamingExceptionEvent.java,
7462 javax/naming/spi/ResolveResult.java:
7465 2004-04-21 Bryce McKinlay <mckinlay@redhat.com>
7467 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
7468 Set method->index values for interface methods to their itable index.
7469 (initializeClass): Call _Jv_LayoutInterfaceMethods.
7471 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
7473 * java/awt/image/DataBufferShort.java,
7474 java/awt/image/DataBufferFloat.java,
7475 java/awt/image/DataBufferDouble.java,
7476 java/awt/image/PixelInterleavedSampleModel.java: New files.
7477 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7478 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7480 2004-04-20 Michael Koch <konqueror@gmx.de>
7482 * Makefile.am (java_source_files): Added
7483 java/awt/image/DataBufferDouble.java,
7484 java/awt/image/DataBufferFloat.java,
7485 java/awt/image/DataBufferShort.java and
7486 java/awt/image/PixelInterleavedSampleModel.java.
7487 * Makefile.in: Regenerated.
7489 2004-04-20 Mark Wielaard <mark@klomp.org>
7491 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7492 MissingResourceException is thrown.
7493 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7494 null when a MissingResourceException is thrown. Should never happen.
7496 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
7498 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7499 constructor. (valid) Added null check.
7501 2004-04-20 Ingo Proetel <proetel@aicas.com>
7503 * java/awt/FontMetrics.java:
7504 (charsWidth): fixed accumulation of total_width
7505 (getWidth): simple default implementation
7506 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7507 in Rectangle constructor.
7508 * java/awt/image/Raster.java (toString): Added method.
7509 * java/awt/image/SampleModel.java (<init>): Added error cause
7510 information to thrown exception.
7511 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7513 (setDataElements): New method.
7514 (setPixels): New method.
7515 (toString): New method.
7517 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7519 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7520 * java/io/FileOutputStream.java
7521 (FileOutputStream) Reorganized constructors. Constructors now
7522 check whether the given path is directory.
7524 2004-04-19 Kim Ho <kho@redhat.com>
7526 * java/awt/Container.java:
7527 (remove): Set the component's parent to null.
7528 (getComponentAt): Implement.
7529 * javax/swing/JComponent.java:
7530 (JComponent): Initialize defaultLocale
7531 (getDefaultLocale): Implement.
7532 (setDefaultLocale): ditto.
7533 * javax/swing/JSlider.java:
7534 (JSlider): Fix calculation of value.
7535 * javax/swing/JSplitPane.java: Implement.
7536 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7537 Change SplitPane's default divider size.
7538 * javax/swing/plaf/basic/BasicScrollBarUI.java:
7539 (paint): Remove unused code.
7540 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
7541 Added comments and ran through jalopy.
7542 (setBasicSplitPaneUI): Get reference to hidden divider
7543 and set up one touch buttons if necessary.
7544 (setBorder): Fire propertyChangeEvent only if
7545 borders are different.
7546 (getPreferredSize): Defer to layout manager.
7547 (propertyChange): Implement.
7548 (oneTouchExpandableChanged): ditto.
7549 (createLeftOneTouchButton): Use BasicArrowButton.
7550 (createRightOneTouchButton): ditto.
7551 (moveDividerTo): New method. Moves the divider
7552 to a set location based on the last divider location.
7553 (BasicSplitPaneDivider::MouseHandler): Implement.
7554 (BasicSplitPaneDivider::OneTouchButton): Removed.
7555 (BasicSplitPaneDivider::DragController): Implement.
7556 (BasicSplitPaneDivider::VerticalDragController):
7558 (BasicSplitPaneDivider::DividerLayout): ditto.
7559 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
7560 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7561 (calculateLayoutInfo): Don't show component if it's
7563 (paintTab): Fix title paint logic.
7565 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7567 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7568 undocumented CNI calls.
7569 * include/java-interp.h (_Jv_InterpClass): No longer
7570 extends java.lang.Class.
7571 * java/lang/Class.h (Class): Add new field `aux_info'.
7572 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7573 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7574 Use Class->aux_info instead.
7575 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7576 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7577 Use Class->aux_info instead.
7578 * java/io/natObjectInputStream.cc (allocateObject): Use
7580 * java/lang/natClass.cc (newInstance): Likewise.
7581 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7582 * java/lang/natObject.cc (clone): Likewise.
7583 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7584 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7585 JvAllocObject. Allocate klass->aux_info here for interpreted
7588 2004-04-17 Mark Wielaard <mark@klomp.org>
7590 * javax/swing/JToggleButton.java (ToggleButtonModel):
7591 Make public static inner class.
7592 * javax/swing/JTabbedPane.java (setComponentAt):
7593 Call Page.setComponent().
7594 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7595 (WRAP_TAB_LAYOUT): Make public, value is 0.
7596 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7597 Make private static inner class.
7599 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7601 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7602 arguments to match new signature. Remove FIXME comments.
7604 2004-04-16 Andrew Overholt <overholt@redhat.com>
7606 * Makefile.am: Add new file.
7607 * Makefile.in: Re-generate.
7608 * javax/swing/JToolBar.java
7609 Partially implemented.
7610 * javax/swing/plaf/basic/BasicToolBarUI.java
7611 New file. Partially implemented.
7613 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7615 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7616 (_Jv_AllocObjectNoFinalizer): Likewise.
7617 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7618 (_Jv_AllocPtrFreeObject): Likewise.
7619 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7620 directly even in the JVMPI case.
7621 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7622 _Jv_AllocObject calls.
7623 * gcj/javaprims.h: Update prototypes.
7624 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7625 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7626 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7628 2004-04-14 Andrew Haley <aph@redhat.com>
7629 Bryce McKinlay <mckinlay@redhat.com>
7631 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7632 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7633 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7635 * testsuite/libjava.lang/InvokeInterface.java: New file.
7636 * testsuite/libjava.lang/InvokeInterface.out: New file.
7638 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7640 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7642 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7645 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7647 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7649 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7650 StackTraceElement directly.
7651 (newElement): New native helper method to create StackTraceElement
7652 bypassing Java access control.
7653 (createStackTraceElement): Use newElement() instead of directly
7654 calling StackTraceElement's constructor.
7655 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7657 2004-04-09 Anthony Green <green@redhat.com>
7659 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7660 recursion when searching for the system ClassLoader.
7662 2004-04-02 Olga Rodimina <rodimina@redhat.com>
7664 * Makefile.am: Added new file.
7665 * Makefile.in: Regenerate.
7666 * javax/swing/ImageIcon.java:
7667 (ImageIcon(file)): set description of the icon
7669 * javax/swing/JCheckBoxMenuItem.java:
7670 Mostly Implemented. Work in progress.
7671 * javax/swing/JRadioButtonMenuItem.java:
7672 Reimplement constructors to use JToggleButtonModel.
7673 * javax/swing/plaf/basic/BasicIconFactory.java:
7674 (getCheckBoxMenuItemIcon): return check box
7676 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7677 paint menu item selected only when it is armed and
7680 2004-04-02 David Jee <djee@redhat.com>
7682 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7683 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7684 * java/awt/Component.java
7685 (add): Set the parent of the popup as this component.
7686 * java/awt/PopupMenu.java
7687 (addNotify): Create popup menu when peer is null.
7688 (show): Call addNotify() if peer is null.
7689 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7690 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7691 argument for gtk_menu_popup() as zero. This causes the popup menu to
7692 respond to any mouse button.
7694 2004-04-01 Michael Koch <konqueror@gmx.de>
7696 * java/lang/SecurityManager.java
7697 (checkAwtEventQueueAccess): Implemented.
7699 2004-04-01 Gary Benson <gbenson@redhat.com>
7701 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7702 (_Jv_SearchMethodInClass): Likewise.
7704 2004-03-31 Olga Rodimina <rodimina@redhat.com>
7706 * Makefile.am: Added new file.
7707 * Makefile.in: Regenerate.
7708 * javax/swing/JRadioButtonMenuItem.java:
7710 * javax/swing/plaf/basic/BasicIconFactory.java:
7711 (getRadioButtonMenuItemIcon): Return
7713 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7714 (getPreferredSize): Add size of checkIcon if it
7716 (installDefaults): Don't initialize checkIcon.
7717 It's value will be set in subclasses.
7718 (uninstallDefaults): remove uninstallation of
7720 (paint): Moved code to paintMenuItem().
7721 (paintMenuItem): Implemented.
7722 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7723 UI delegate for JRadioButtonMenuItem.
7725 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7727 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7728 Corrected position of the accelerator.
7730 2004-03-29 Olga Rodimina <rodimina@redhat.com>
7732 * Makefile.am: Added new file.
7733 * Makefile.in: Regenerate.
7734 * javax/swing/JMenuItem.java: Partly
7735 implemented. Work in progress
7736 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7737 Changed default value of acceleratorDelimiter.
7738 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7739 New class. Partly implemented.
7741 2004-03-26 Peter Moon <peterm@miraculum.com>
7743 * java/text/NumberFormat.java: Fix spelling of setCurrency
7746 2004-03-26 Mark Wielaard <mark@klomp.org>
7748 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7749 (item_activate): Declare label before use.
7750 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7751 (gtkSetFont): Removed unused variable label.
7752 (addExposeFilter): Declare variables before use.
7753 (removeExposeFilter): Likewise.
7754 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7755 (ok_clicked): Declare str_fileName before use.
7757 2004-03-26 David Jee <djee@redhat.com>
7759 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7760 (addSeparator): Remove.
7761 * java/awt/Menu.java
7762 (separator): Remove static final MenuItem field.
7763 (separatorLabel): New static final String field.
7764 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7765 Use separatorLabel to denote that it is a separator.
7766 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7767 of reusing the static separator instance, because a MenuItem instance
7768 can't be added more than once without being cloned.
7769 * java/awt/peer/MenuPeer.java
7770 (addSeparator): Remove from interface.
7772 2004-03-26 David Jee <djee@redhat.com>
7774 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7775 (connectSignals): New native method declaration.
7776 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7777 * java/awt/MenuItem.java
7778 (getActionCommand): Return the label if the action command is not set.
7779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7780 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7781 gtk_menu_shell_append().
7782 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7783 (item_activate): Fix argument type.
7784 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7786 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7788 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7789 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7790 given. Add the menu widget's top-level GtkWindow to the global window
7791 group, so it can grab the pointer.
7792 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7793 gtk_menu_shell_append().
7795 2004-03-23 Kim Ho <kho@redhat.com>
7797 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7798 (calculateSizes): Return real width and height.
7800 2004-03-23 Kim Ho <kho@redhat.com>
7802 * Makefile.am: New file
7803 * Makefile.in: Regenerate
7804 * java/awt/Graphics.java: (drawRect):
7805 Draw to the correct point.
7806 * javax/swing/DefaultSingleSelectionModel.java
7807 (isSelected): Return true if the selected index
7809 * javax/swing/JLabel.java: Do not change mnemonic
7810 index if text is null.
7811 * javax/swing/JProgressBar.java: Use JComponent's
7813 * javax/swing/JScrollBar.java: Ditto.
7814 * javax/swing/JSlider.java: Ditto.
7815 * javax/swing/JTabbedPane.java: Reimplement.
7816 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7817 Add defaults for TabbedPane.
7818 * javax/swing/plaf/basic/BasicArrowButton.java:
7820 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7821 (paintDeterminate): Don't paint String if it's
7823 (paintIndeterminate): ditto.
7824 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7827 2004-03-23 Kim Ho <kho@redhat.com>
7829 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7830 (calculateTabRects): Set the selectedRun before
7831 trying to rotate tabs.
7833 2004-03-23 Graydon Hoare <graydon@redhat.com>
7835 * java/text/AttributedString.java
7836 (addAttribute): Fix off-by-one.
7837 (getIterator): Likewise.
7838 * java/text/AttributedStringIterator.java
7839 (getRunLimit): Correct logic.
7840 (getRunStart): Likewise.
7841 (getAttribute): Fix inequality.
7842 (getAttributes): Likewise.
7843 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7845 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
7847 * java/net/URI.java (parseURI): Added unquoting.
7848 (unquote): New method.
7849 (quoteAuthority): Implemented.
7850 (quote(String,String)): New method.
7851 (quotePath): Implemented.
7852 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
7853 (getSchemeSpecificPart): Removed FIXME comment.
7854 (getRawAuthority): Return new rawAuthority field.
7855 (getAuthority): Removed FIXME comment.
7856 (getRawUserInfo): Return new rawUserInfo field.
7857 (getUserInfo): Removed FIXME comment.
7858 (getRawPath): Return new rawPath field.
7859 (getPath): Removed FIXME comment.
7860 (getRawQuery): Return new rawQuery field.
7861 (getQuery): Removed FIXME comment.
7862 (getRawFragment): Return new rawFragment field.
7863 (getFragment): Removed FIXME comment.
7865 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7867 * java/net/ServerSocket.java
7868 (accept): Close the socket when error occured.
7870 2004-03-21 Anthony Green <green@redhat.com>
7872 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7873 recursion when searching for the system ClassLoader.
7875 2004-03-20 Norbert Frese <postfach@nfrese.net>
7877 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
7878 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
7879 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
7881 (getObjectInputStream): Return object reference, throw IOException if null.
7882 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
7883 (getObjectOutputStream): Return object reference, throw IOException if null.
7884 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
7885 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
7886 (UnicastConnectionManager): Throw RemoteException if port is not available.
7887 (getInstance): Throw RemoteException.
7888 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
7889 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
7890 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7891 Collect Exceptions which are returned by a rmi-call and fix void returns.
7892 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
7893 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7894 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
7895 (dispatch): Answer ping messages which are sent by other java implementions.
7896 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
7897 for every rmi-message and fix void return problems.
7898 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
7899 (UnicastServerRef): Throw RemoteException.
7900 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
7901 In some situations it is necessary to export a subclass of the class which has the _Stub.
7902 For instance when the class with has the _Stub is abstract.
7903 (findStubSkelClass): New method which looks for the class which has the _Stub.
7904 (getClientHost): Implementated.
7905 * gcc/libjava/java/rmi/server/RemoteServer.java
7906 (getClientHost): Implementated.
7907 * gcc/libjava/Makefile.am (rmi_java_source_files):
7908 Added gnu/java/rmi/server/RMIIncomingThread.java.
7909 * Makefile.in: Regenerated.
7911 2004-03-20 Michael Koch <konqueror@gmx.de>
7913 * java/net/InetAddress.java
7914 (getLocalHostname): Added javadoc.
7916 2004-03-20 Mark Wielaard <mark@klomp.org>
7918 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7919 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
7920 Don't access ws when it is null.
7921 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
7924 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7926 * verify.cc: Undef PC.
7928 2004-03-19 Per Bothner <per@bothner.com>
7930 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
7931 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
7932 * Makefile.am: Update accordingly.
7933 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
7934 as aliases for UnicodeLittle and UnicodeBig.
7936 2004-03-19 Michael Koch <konqueror@gmx.de>
7938 * java/awt/image/AffineTransformOp.java
7939 (AffineTransformOp): Made public.
7940 * javax/swing/JComponent.java
7941 (listenerList): Made protected.
7942 (accessibleContext): Likewise.
7943 * javax/swing/JList.java
7944 (valueChanged): Dont use internal fields of ListSelectionEvent.
7945 * javax/swing/JViewport.java
7946 (getView): Dont use internal fields of Component.
7947 (addImpl): Likewise.
7948 * javax/swing/Timer.java
7949 (isRunning): Made public.
7952 * javax/swing/UIDefaults.java
7953 (getInt): Made public.
7954 * javax/swing/plaf/basic/BasicListUI.java
7955 (mousePressed): Dont use internal fields of MouseEvent.
7956 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7957 * javax/swing/plaf/basic/BasicScrollBarUI.java
7958 (arrowIcon): Made static.
7959 * javax/swing/plaf/basic/BasicViewportUI.java
7960 (stateChanged): Dont use internal field on ChangeEvent.
7961 * javax/swing/text/JTextComponent.java
7962 (getUI): Call UIManager.getUI().
7963 (updateUI): Use getUI().
7965 2004-03-19 Mark Wielaard <mark@klomp.org>
7967 Reported by Stephen Crawley
7968 * java/io/FilePermission.java (implies): Use String.length() -1 to
7969 access last char of String.
7971 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
7973 * java/lang/ThreadGroup.java (list): Changed print to println.
7975 2004-03-19 Graydon Hoare <graydon@redhat.com>
7977 * javax/swing/JComponent.java: Turn off double buffer by default.
7978 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7979 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7980 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7981 Use cairo to copy areas.
7982 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7983 Initialize and set clip region.
7985 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7987 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
7988 MAP_FAILED to void *.
7990 2004-03-18 Michael Koch <konqueror@gmx.de>
7992 * java/nio/channels/spi/AbstractSelectableChannel.java
7993 (keys): Initialize at declaration.
7994 (locate): keys cant be null.
7996 (addSelectionKey): New method.
7997 (removeSelectionKey): New method.
7998 * java/nio/channels/spi/AbstractSelectionKey.java
7999 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
8000 * java/nio/channels/spi/AbstractSelector.java
8001 (provider): Javadoc added.
8002 (cancelledKeys): Javadoc added.
8003 (cancelKey): Javadoc added, add key to cancelledKeys.
8004 (deregister): Implemented.
8006 2004-03-17 Michael Koch <konqueror@gmx.de>
8008 * gnu/java/net/natPlainSocketImplPosix.cc
8009 (write): Just call write(jbyteArray, offset, len).
8010 (read): Just call read(jbyteArray, offset, len).
8012 2004-03-16 Norbert Frese <postfach@nfrese.net>
8014 * java/net/InetAddress.java
8015 (getByName): Handle hostname == "" case.
8017 2004-03-16 Michael Koch <konqueror@gmx.de>
8019 * javax/swing/JTabbedPane.java
8020 (serialVersionUID): New field.
8022 2004-03-16 Dalibor Topic <robilad@kaffe.org>
8024 Reported by: Adam Heath <doogie@debian.org>
8025 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
8028 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8030 * java/applet/Applet.java (preferredSize): Override deprecated
8031 variant of getPreferredSize.
8032 (minimumSize): Override deprecated variant of getMinimumSize.
8034 2004-03-15 Olga Rodimina <rodimina@redhat.com>
8036 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8037 (drawImage(img,xform,bgcolor,obs)): New Method.
8038 Helper function that every drawImage method will
8040 (drawRaster): Added new parameter, bgcolor. All
8041 transparent pixels are changed to bgcolor before
8043 (drawRenderedImage): Fixed to use changed drawRaster().
8044 (drawImage(image,xform,obs): Fixed to use new helper function
8045 (drawImage(image,op,x,y)): Ditto.
8046 (drawImage (img,x,y,observer)): Ditto.
8047 ((PainterThread) bgcolor): New Field.
8048 ((PainterThread) (setPixels)): Changed all transparent pixels
8050 (drawImage(img,x,y,width,height,bgcolor,observer)):
8051 Fixed FIXME - all the transparent pixels are
8052 changed to the specified bgcolor.
8053 (drawImage(img, x, y, width, height, observer): Changed to
8055 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
8056 Fixed FIXME- changed all transparent pixels to bgcolor.
8057 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
8058 Changed to use function above.
8060 2004-03-15 Michael Koch <konqueror@gmx.de>
8062 * java/util/Locale.java: Reverting my last patch
8063 and add a comment why the original version was okay.
8065 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8067 * java/applet/Applet.java (dimensions): New field.
8068 (getDimensions): New method.
8069 (getPreferredSize): Call getDimensions.
8070 (getMinimumSize): Likewise.
8072 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8074 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
8075 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
8076 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
8077 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
8079 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
8081 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
8082 * jni/classpath/jnilink.c: Likewise.
8084 * java/applet/Applet.java (getPreferredSize): New method.
8085 (getMinimumSize): New method.
8087 2004-03-12 Michael Koch <konqueror@gmx.de>
8089 * java/net/HttpURLConnection.java
8090 (getResponseCode): Fix another typo in javadoc.
8092 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
8095 (URI_REGEXP) updated to contain scheme specific part.
8096 (SCHEME_SPEC_PART_GROUP) new constant.
8097 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
8098 updated to make room for SCHEME_SPEC_PART_GROUP.
8099 (parseURI) parse scheme specific part.
8100 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
8101 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
8102 getQuery, getFragment) implemented.
8104 2004-03-12 Graydon Hoare <graydon@redhat.com>
8106 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
8107 * javax/swing/JComponent.java (paint): Use persistent double buffer.
8108 * javax/swing/JList.java (ListListener): Revalidate on changes.
8109 * javax/swing/JScrollPane.java: Reimplement.
8110 * javax/swing/JViewport.java: Reimplement.
8111 * javax/swing/ScrollPaneLayout.java: Reimplement.
8112 * javax/swing/ViewportLayout.java: Tidy up.
8113 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
8114 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
8115 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
8116 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
8119 2004-03-12 Dalibor Topic <robilad@kaffe.org>
8121 * libraries/javalib/java/net/URI.java
8122 partially implemented using java.util.regex.
8123 (URI_REGEXP) new constant. Used to parse URIs.
8124 (SCHEME_GROUP) new constant representing index of scheme group
8126 (AUTHORITY_GROUP) new constant representing index of authority
8127 group in parsed URI.
8128 (PATH_GROUP) new constant representing index of path group in
8130 (QUERY_GROUP) new constant representing index of query group in
8132 (FRAGMENT_GROUP) new constant representing index of fragment
8133 group in parsed URI.
8134 (getURIGroup) new static utility method.
8135 (parseURI) implemented.
8136 (quote) stub for new static utility method.
8137 (quoteAuthority) stub for new static utility method.
8138 (quoteHost) stub for new static utility method.
8139 (quotePath) stub for new static utility method.
8140 (quoteUserInfo) stub for new static utility method.
8142 (create) don't throw URISyntaxException. Implemented.
8143 (toString) implemented.
8145 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
8147 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
8148 (window_wm_protocols_filter): New function.
8149 (window_focus_in_cb): Remove function.
8150 (window_focus_out_cb): Likewise.
8151 (window_focus_or_active_state_change_cb): New function.
8152 (create): Add filter that removes WM_TAKE_FOCUS client messages.
8153 (connectSignals): Don't attach handlers to focus-in-event or
8154 focus-out-event signals. Handle notify signal.
8156 2004-03-11 Michael Koch <konqueror@gmx.de>
8158 * gnu/java/awt/peer/ClasspathFontPeer.java:
8159 Fixed javadoc to be correct xhtml.
8160 * gnu/java/awt/peer/gtk/GtkArgList.java
8161 (add): Use Boolean.valueOf() instead of new Boolean().
8163 2004-03-11 Mark Wielaard <mark@klomp.org>
8165 * java/beans/BeanDescriptor.java (BeanDescriptor):
8166 Set the FeatureDescriptor programmatic name.
8168 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8170 * java/text/AttributedStringIterator.java
8171 (getAllAttributesKey): Return only keys concerned
8172 by the current iterator.
8173 (getAttributes): Use strict inequality for
8176 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
8178 * java/io/BufferedInputStream.java (marktarget): New field for max
8180 (CHUNKSIZE): New constant for incremental mark buffer allocation.
8181 (mark): Use new fields.
8183 (read(byte[],int,int)): Likewise.
8187 2004-03-11 David Jee <djee@redhat.com>
8189 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8190 (gtkSetLabel): New native method declaration.
8191 (setLabel): Use gtkSetLabel.
8192 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8193 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
8195 2004-03-11 Dalibor Topic <robilad@kaffe.org>
8197 * java/text/AttributedString.java
8198 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
8199 Use HashMap instead of Hashtable since value can be null, and
8200 you can not store a null value in a Hashtable.
8202 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
8204 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
8205 black when color argument is null.
8207 2004-03-10 Kim Ho <kho@redhat.com>
8209 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8210 (handleEvent): Don't set the clip for the
8213 2004-03-10 Kim Ho <kho@redhat.com>
8215 * java/awt/Container.java: Remove check
8218 2004-03-10 Kim Ho <kho@redhat.com>
8220 * java/awt/Container.java: (visitChild):
8221 Remove candidate clip. Use the component
8223 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8224 (handleEvent): Use the PaintEvent's clip.
8226 2004-03-09 Michael Koch <konqueror@gmx.de>
8228 * java/lang/Thread.java
8229 (runnable): Moved around.
8230 (daemon): Renamed from daemon_flag.
8231 (contextClassLoader): Renamed from context_class_loader.
8232 (Thread): Reordered constructors.
8233 (activeCount): Use group directly.
8234 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
8235 (holdsLock): Reworked javadoc.
8236 (setDaemon): Reworked.
8237 * java/lang/natThread.cc
8240 2004-03-09 Graydon Hoare <graydon@redhat.com>
8242 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8243 Fix double <-> fixed macros, reset font transform.
8244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8247 2004-03-09? Kim Ho <kho@redhat.com>
8249 * java/awt/Container.java: (visitChild): Move
8250 the x and y coordinate of the component rectangle
8251 to correct position.
8252 (handleEvent): Forward drag events to the pressed
8254 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8256 (ArrowButtonListener::mousePressed): Stop the
8258 (mouseDragged): Implement.
8259 (TrackListener::mousePressed): Only react if
8260 the press doesn't occur on the thumb, otherwise
8261 just set the offset.
8262 (TrackListener::mouseReleased): Unset the isAdjusting
8264 (createIncreaseIcon): Switch icon.
8265 (createDecreaseIcon): Switch icon.
8266 (calculatePreferredSize): Use width.
8267 (getThumbBounds): Use the top as the lower value.
8268 (layoutVScrollBar): Switch the button locations.
8269 (paintIncreaseHighlight): Paint correct side of thumb.
8270 (paintDecreaseHighlight): ditto.
8271 (valueForYPosition): Use top as the lower value.
8272 * javax/swing/plaf/basic/BasicSliderUI.java:
8274 (mouseDragged): Implement.
8275 (mousePressed): Only react when the thumb isn't
8276 pressed, otherwise just set offset.
8277 (mouseReleased): Handle a release of the thumb.
8278 (scrollDueToClickInTrack): Stop the timer first.
8279 * javax/swing/JProgressBar.java:
8280 (setString): Fix change condition.
8281 * javax/swing/JSeparator.java:
8284 2004-03-08 David Jee <djee@redhat.com>
8286 * java/awt/image/AffineTransformOp.java:
8287 (filter): Use Graphics2D interface instead of directly using the
8290 2004-03-08 Anthony Green <green@redhat.com>
8292 * Makefile.am: Build property resource files into libgcj.
8293 * Makefile.in: Rebuilt.
8294 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
8295 java/util/regex/PatternSyntaxException.java,
8296 gnu/regexp/CharIndexed.java,
8297 gnu/regexp/CharIndexedCharArray.java,
8298 gnu/regexp/CharIndexedInputStream.java,
8299 gnu/regexp/CharIndexedReader.java,
8300 gnu/regexp/CharIndexedString.java,
8301 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
8302 gnu/regexp/REException.java,
8303 gnu/regexp/REFilterInputStream.java,
8304 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
8305 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
8306 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
8307 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
8308 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
8309 gnu/regexp/RETokenLookAhead.java,
8310 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
8311 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
8312 gnu/regexp/RETokenStart.java,
8313 gnu/regexp/RETokenWordBoundary.java,
8314 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
8316 2004-03-05 Olga Rodimina <rodimina@redhat.com>
8318 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8319 (GdkGraphics2D (BufferedImage)): Initialize
8320 pixmap associated with specified BufferedImage.
8321 (setPaint): Changed implementation of Texture
8322 Paint to use AffineTransformOp.
8323 * java/awt/image/AffineTransformOp.java
8324 (createCompatibleDestRaster): Throw RasterFormatException
8325 if resulting width or height of raster is 0.
8327 2004-03-05 David Jee <djee@redhat.com>
8329 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
8330 (handleEvent): Action events are generated upon MOUSE_RELEASED.
8331 * java/awt/Container.java
8332 (acquireComponentForMouseEvent): Fixed.
8333 (handleEvent): Fixed.
8334 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
8335 (state_to_awt_mods_with_button_states): New method.
8336 (pre_event_handler): Fixed mouse event generation.
8338 2004-03-04 Tom Tromey <tromey@redhat.com>
8340 * Makefile.in: Rebuilt.
8341 * Makefile.am (toolexeclib_LTLIBRARIES): Added lib-java-awt.la,
8342 lib-javax-swing.la, lib-java-applet.la, lib-java-beans.la.
8343 (misc_java_source_files): New macro.
8344 (swing_java_source_files): Likewise.
8345 (awt_java_source_files): Pruned.
8346 (applet_java_source_files): New macro.
8347 (beans_java_source_files): Likewise.
8348 (lib_java_applet_la_SOURCES): Likewise.
8349 (lib_java_awt_la_SOURCES): Likewise.
8350 (lib_javax_swing_la_SOURCES): Likewise.
8351 (lib_java_beans_la_SOURCES): Likewise.
8352 (all_java_object_files): Likewise.
8353 (%.lo: %.java): Use all_java_object_files.
8354 (all_java_source_files): Added new _SOURCES.
8355 (ordinary_java_source_files): Removed awt_java_source_files.
8357 2004-03-04 Olga Rodimina <rodimina@redhat.com>
8359 * java/awt/image/AffineTransformOp.java:
8360 Removed unnecessary field interpolationType.
8361 Formatted some of the lines to be consistent with
8363 (AffineTransformOp): Create new RenderingHints
8364 containing specified interpolation type.
8365 (createCompatibleDestImage): Implemented.
8366 (createCompatibleDestRaster): Implemented.
8367 (filter): Implemented.
8368 (getBounds2D(BufferedImage)): Implemented.
8369 (getBounds2D(Raster)): Implemented.
8370 (getInterpolationType): Get interpolation value from
8373 2004-03-04 Graydon Hoare <graydon@redhat.com>
8375 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
8377 (libjava_arguments): Add new libraries to argument list.
8379 2004-03-04 David Jee <djee@redhat.com>
8381 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8382 (setFont): Check if child peers are null.
8384 2004-03-03 Per Bothner <per@bothner.com>
8386 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
8387 Optimize when argument is a FileChannelImpl.
8388 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
8390 * java/nio/channels/natChannels.cc: New file for new native methods.
8391 * Makefile.am: Update accordingly.
8393 2004-03-02 Olga Rodimina <rodimina@redhat.com>
8395 * Makefile.am: Added java/awt/image/AffineTransformOp.java
8396 * Makefile.in: Re-generated.
8397 * java/awt/image/AffineTransformOp.java: New Class.
8399 2004-03-02 Jan Hubicka <jh@suse.cz>
8401 * configure.host: Pass -fno-omit-frame-pointer for i386.
8402 * configure.in: Likewise.
8403 * configure: Regenerate.
8405 2004-03-01 Per Bothner <per@bothner.com>
8407 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
8409 2004-03-01 Olga Rodimina <rodimina@redhat.com>
8411 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8412 (setPaint): Interpret correctly TexturePaint's
8414 (drawImage): Fixed scale factors of the affine
8417 2004-02-29 Per Bothner <per@bothner.com>
8419 * java/nio/channels/FileChannelImpl.java: Moved to package
8420 gnu/java/nio/channels, since we need to refer to it from java.io.
8421 * java/nio/channels/natFileChannelImpl.cc: Removed file.
8422 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
8423 from java/nio/channels. Don't depend on FileDescriptor.
8424 (in, out, err): New static fields.
8426 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
8427 from FileDescriptor.
8428 (by): Removed MappedByteBuffer field.
8429 (map): New working implementation.
8430 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
8431 some code "ported" from natFileDescriptoPosix.cc.
8432 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
8433 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
8434 * java/io/FileDescriptor.java: Implement on top of FileChannel.
8435 Remove native methods.
8436 * Makefile.am, configure.in: Updated accordingly.
8438 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
8439 (ch): New FileChannelImpl field. Update constructor to match.
8440 (releaseImpl): Remove native method. Instead ...
8441 (release): Call unlock on channel.
8442 * gnu/java/nio/natFileLockImpl.cc: Removed file.
8444 * java/io/natFileDescriptorEcos.cc: Remove file.
8445 * java/io/natFileDescriptorPosix.cc: Remove file.
8446 * java/io/natFileDescriptorWin32.cc: Remove file.
8447 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
8448 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
8449 (<init>(FileChannelImpl)): New package-private constructor.
8450 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
8451 (available, close, read, skip): Implement using FileChannelImpl.
8452 (getFD): Allocate FileDescriptor if needed.
8453 (getChannel): Is now trivial.
8454 * java/io/FileOutputStream.java: Corresponding changes.
8455 * java/io/RandomAccessFile.java: Corresponding changes.
8457 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
8458 unmapImpl): New dummy methods, to be overridden by subclass.
8459 (finalize, isLoaded, load, force): New methods.
8460 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
8461 Now works, at least for read mapping.
8463 * java/lang/natPosixProcess.cc (startProcess): Implement standard
8464 streams using FileChannelImpl, not FileDescriptor.
8465 * java/lang/natWin32Process.cc (startProcess): Likewise.
8467 2004-02-28 Michael Koch <konqueror@gmx.de>
8469 * java/nio/ByteOrder.java
8470 (nativeOrder): Use equals() to compare strings.
8472 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
8474 * java/io/ObjectInputStream.java
8475 (readClassDescriptor): Keep elements of the mapping non null.
8476 (checkTypeConsistency): New method.
8477 (readFields): Fixed main loop and base logic. Small reindentation.
8478 * java/io/ObjectStreamField.java
8479 (lookupField): New method to update the field reference.
8480 (checkFieldType): New method.
8481 * java/io/ObjectStreamClass.java
8482 (setClass, setFields): Call lookupField when building the field
8483 database. Check the real field type.
8485 2004-02-27 Olga Rodimina <rodimina@redhat.com>
8487 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8488 (updateBufferedImage): New helper function.
8489 Updates BufferedImage in memory if it was changed.
8490 (draw): changed to update BufferedImage in memory after
8491 this drawing operation
8493 (draw3DRect): Ditto.
8494 (fill3DRect): Ditto.
8496 (drawRaster): Ditto.
8497 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
8498 no affine transformation.
8499 (drawGlyphVector): Ditto.
8501 2004-02-27 David Jee <djee@redhat.com>
8503 * gnu/java/awt/peer/gtk/GdkGraphics.java
8504 (GdkGraphics(Component)): Inherit font from component.
8505 (drawString): Use font style.
8506 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
8507 (gtkSetFont): New native method declaration.
8508 (setFont): New method.
8509 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
8510 (gtkSetFont): New native method declaration.
8511 (setFont): Call new native method gtkSetFont.
8512 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
8513 (setFont): For all child components who do not their fonts set,
8514 set their peers' fonts with this container's font.
8515 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
8516 Move all native method declarations to the top for readability.
8517 (gtkSetFont): New native method declaration.
8518 (setFont): New method.
8519 * java/awt/Component.java
8520 (setFont): Invalidate after setting the font.
8521 * java/awt/Container.java
8522 (invalidateTree): New method.
8523 (setFont): Invalidate the container tree after setting the font.
8524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
8525 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
8526 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
8527 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
8528 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8529 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
8530 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
8531 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
8533 2004-02-26 Olga Rodimina <rodimina@redhat.com>
8535 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8536 (isBufferedImageGraphics): New Helper function.
8537 Returns true if this graphics2d can be used to draw
8538 into buffered image and false otherwise.
8539 (updateImagePixels): New Helper function.
8540 Updates pixels in the BufferedImage.
8541 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
8542 (getImagePixels): New function. Returns pixels
8543 of the buffered image associated with
8546 2004-02-26 Michael Koch <konqueror@gmx.de>
8548 * Makefile.am: Generate and install headers for inner classes in
8549 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
8550 * Makefile.in: Regenerated.
8552 2004-02-26 David Jee <djee@redhat.com>
8554 * java/awt/BorderLayout.java
8555 (layoutContainer): Fix width and height calculations to ensure
8556 that they're non-negative.
8557 * java/awt/Component.java
8558 (setBackground): If c is null, inherit from closest ancestor whose
8559 background color is set.
8561 2004-02-26? Kim Ho? <kho@redhat.com>
8563 * Makefile.am: Add new files.
8564 * Makefile.in: Re-generate.
8565 * javax/swing/JProgressBar.java:
8566 (JProgressBar(int, int int)): Throw
8567 IllegalArgumentException if orientation is
8569 (JProgressBar(BoundedRangeModel)): Create
8570 ChangeListener and register it. UpdateUI.
8571 (getChangeListeners): Implement.
8572 (setModel): Reset ChangeListener.
8573 * javax/swing/JScrollBar.java: Implement.
8574 * javax/swing/JSeparator.java: Implement.
8575 * javax/swing/JSlider.java:
8576 (JSlider(int, int, int, int)): Throw
8577 IllegalArgumentException if orientation
8579 (getChangeListeners): Fix method name.
8580 * javax/swing/SwingUtilities.java:
8581 (layoutCompoundLabel): If there is no text,
8582 set the text rectangle dimensions to 0.
8583 * javax/swing/plaf/basic/BasicButtonUI.java:
8584 (paint): If there is no text, don't paint it.
8585 * javax/swing/plaf/basic/BasicScrollBarUI.java:
8587 * javax/swing/plaf/basic/BasicSeparatorUI.java:
8589 * javax/swing/plaf/basic/BasicSliderUI.java:
8590 (propertyChange): If the model changes, change
8591 the listeners accordingly.
8593 2004-02-25 Graydon Hoare <graydon@redhat.com>
8595 * javax/swing/AbstractButton.java: Add "final" qualifiers.
8596 * javax/swing/JList.java: Reimplement.
8597 * javax/swing/DefaultListSelectionModel.java: Reimplement.
8598 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
8599 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
8600 * javax/swing/ListModel.java: Javadoc.
8601 * javax/swing/ListSelectionModel.java: Add missing methods.
8602 * javax/swing/AbstractListModel.java: Javadoc and corrections.
8603 * javax/swing/DefaultListModel.java: Javadoc and corrections.
8604 * javax/swing/ListModel.java: Javadoc and corrections.
8605 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
8607 2004-02-25 David Jee <djee@redhat.com>
8609 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8610 (GtkFontPeer): Change default size to 12.
8611 * gnu/java/awt/peer/gtk/GtkToolkit.java
8612 (getFontPeer): Change default size to 12.
8613 (getClasspathFontPeer): Likewise. Set default name to "Default".
8614 * java/awt/Font.java
8615 (Font(Map)): Call Font(String,Map).
8616 (Font(String,Map)): If attrs is null, initialize it as an empty
8617 HashMap, which will ensure that the Font will get default attributes.
8619 2004-02-25 David Jee <djee@redhat.com>
8621 * gnu/java/awt/peer/gtk/GtkFontPeer.java
8622 (GtkFontPeer(String,int)): Call the new constructor with size 1.
8623 (GtkFontPeer(String,int,int)): New constructor with size attribute.
8624 * gnu/java/awt/peer/gtk/GtkToolkit.java
8625 (getFontPeer(String,int)): Call the new overload method with size 1.
8626 (getFontPeer(String,int,int)): New method. Overloaded with size
8628 (getClasspathFontPeer): Set the size of the font.
8630 2004-02-24 Olga Rodimina <rodimina@redhat.com>
8632 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8633 (bimage): New field.
8634 (GdkGraphics2D): New Constructor. Constructs Graphics
8635 object that can be used to draw into the Buffered Image.
8636 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8637 (GdkGraphicsEnvironment): Fixed to include public
8639 (createGraphics): Implemented.
8640 * gnu/java/awt/peer/gtk/GtkToolkit.java
8641 (getLocalGraphicsEnvironment): Implemented.
8642 * java/awt/GraphicsEnvironment.java:
8643 (getLocalGraphicsEnvironment): Implemented.
8644 * java/awt/image/BufferedImage.java:
8645 (createGraphics): Implemented.
8647 2004-02-24 David Jee <djee@redhat.com>
8649 * java/awt/Component.java
8650 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
8651 * java/awt/Container.java
8652 (addNotifyContainerChildren): Fix event enabling.
8654 2004-02-24 Anthony Green <green@redhat.com>
8656 * java/lang/StringBuffer.java: No need to NULL out remainder of
8657 buffer since ensureCapacity_unsynchronized will have done this for
8660 2004-02-23 Olga Rodimina <rodimina@redhat.com>
8662 * Makefile.am: Added
8663 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
8664 * Makefile.in: Re-generated.
8665 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
8668 2004-02-20 Michael Koch <konqueror@gmx.de>
8670 * javax/swing/AbstractButton.java: Made several constants final.
8671 (getRolloverSelectedIcon): Made public.
8672 (getSelectedIcon): Made public.
8674 2004-02-19 Kim Ho <kho@redhat.com>
8676 * Makefile.am: Add BasicProgressBarUI
8677 * Makefile.in: Regenerate.
8678 * javax/swing/JProgressBar.java:
8680 * javax/swing/plaf/basic/BasicLookAndFeel.java
8681 Add constants for JProgressBar.
8682 * javax/swing/plaf/basic/BasicProgressBarUI.java
8684 * javax/swing/plaf/basic/BasicSliderUI.java
8686 (calculateGeometry): New method
8687 (paint): Remove unnecessary size calculations.
8689 2004-02-18 Olga Rodimina <rodimina@redhat.com>
8691 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
8692 (drawRaster): Fixed small error that caused
8693 imageToUser transformation to be set incorrectly.
8694 (toString): Implemented.
8696 2004-02-18 Kim Ho <kho@redhat.com>
8698 * javax/swing/JSlider.java: Re-order
8700 * javax/swing/JLabel.java: Re-order
8702 * javax/swing/JComponent.java:
8703 (addPropertyChangeListener):
8705 (removePropertyChangeListener):
8707 (firePropertyChangeEvent):
8710 2004-02-18 David Jee <djee@redhat.com>
8712 * java/awt/CardLayout.java
8713 (addLayoutComponent): Show the first component added as the default.
8714 (removeLayoutComponent): After removing, show the next component.
8715 (gotoComponent): If there is only one component, show it and return.
8717 2004-02-17 Kim Ho <kho@redhat.com>
8719 * javax/swing/JSlider.java: Fix comments and
8720 make property strings constants.
8721 (createStandardLabels): Use the labels
8722 preferred size as bounds.
8723 * javax/swing/plaf/basic/BasicSliderUI.java
8725 (ScrollHandler::actionPerformed): Don't
8726 calculate the timer stop value. Let the
8727 MouseListeners find the stop location.
8728 (getPreferredHorizontalSize): Re-implement.
8729 (getPreferredVerticalSize): ditto.
8730 (getMinimumHorizontalSize): ditto.
8731 (getMinimumVerticalSize): ditto.
8732 (getPreferredSize): ditto.
8733 (getMinimumSize): ditto.
8734 (getMaximumSize): ditto.
8735 (paintTicks): Use doubles to find the
8737 (paintHorizontalLabel):? Use preferredSize
8738 as initial width and height.
8739 (paintVerticalLabel): ditto.
8741 2004-02-17 Kim Ho <kho@redhat.com>
8743 * javax/swing/JLabel.java: Changed
8744 property strings to constants.
8745 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
8747 (setText): Change mnemonic index if
8749 (setDisplayedMnemonicIndex): Fire property
8751 (getDisplayedMnemonicIndex): Remove check
8754 2004-02-17 Olga Rodimina <rodimina@redhat.com>
8756 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8757 (drawImage(img,xform,obs)): Invert xform before
8758 passing the xform to cairo.
8759 (drawImage(img,x,y,bgcolor,obs)): Implemented.
8760 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
8762 (drawImage (img,x,y,w,h,obs)): Implemented.
8763 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
8764 bgcolor,obs)): Partly implemented.
8765 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
8767 * java/awt/image/BufferedImage.java:
8768 (copyData): if dest is null, create raster with same
8769 dimensions as the current image.
8771 2004-02-17 David Jee <djee@redhat.com>
8773 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
8774 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
8775 Use gtk_widget_set_size_request() instead of the deprecated
8776 gtk_widget_set_usize().
8778 2004-02-17 David Jee <djee@redhat.com>
8780 * java/awt/Component.java
8781 (show): Dispatch ComponentEvent via system event queue.
8785 (reshape): Likewise.
8786 * java/awt/Window.java
8787 (setBoundsCallback): Likewise.
8789 2004-02-16 Per Bothner <per@bothner.com>
8791 * java/nio/CharBufferImpl.java: Inline super constructor.
8792 * java/nio/DoubleBufferImpl.java: Likewise.
8793 * java/nio/FloatBufferImpl.java: Likewise.
8794 * java/nio/IntBufferImpl.java: Likewise.
8795 * java/nio/LongBufferImpl.java: Likewise.
8796 * java/nio/ShortBufferImpl.java: Likewise.
8797 * java/nio/CharBuffer.java: Remove unused constructor.
8798 * java/nio/DoubleBuffer.java: Likewise.
8799 * java/nio/FloatBuffer.java: Likewise.
8800 * java/nio/IntBuffer.java: Likewise.
8801 * java/nio/LongBuffer.java: Likewise.
8802 * java/nio/ShortBuffer.java: Likewise.
8803 * java/nio/CharViewBufferImpl.java: New convenience constructor.
8804 Fix buggy call to super constructor.
8805 * java/nio/DoubleViewBufferImpl.java: Likewise.
8806 * java/nio/FloatViewBufferImpl.java: Likewise.
8807 * java/nio/IntViewBufferImpl.java: Likewise.
8808 * java/nio/LongViewBufferImpl.java: Likewise.
8809 * java/nio/ShortViewBufferImpl.java: Likewise.
8811 * java/nio/ByteBuffer.java (endian): Make non-private so other
8812 java.nio classes can inherit it.
8813 (<init>): Don't bother clearing array_offset.
8814 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
8815 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
8816 Remove redundant test.
8818 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
8819 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
8820 Use new XxxViewBufferImpl constructors.
8821 * java/nio/MappedByteBufferImpl.java: Likewise.
8822 * java/nio/DirectByteBufferImpl.java: Likewise.
8824 * java/nio/ByteBufferImpl.java: Remove one constructor.
8825 Inline super in remaining constructor.
8826 * java/nio/ByteBuffer.java: Remove unused constructor.
8828 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
8830 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
8831 * java/nio/DirectByteBufferImpl.java (owner): New field.
8832 (offset): Remove unused field.
8833 (<init>): Modify one and add another constructor. Change callers.
8834 (allocateDirect): Removed - not used.
8835 (getImpl, putImpl): Make static and pass address explicitly,
8836 to make them useful for MappedByteBufferImpl.
8837 (get, put): Check for underflow. Modify for new getImpl.
8838 (getImpl): New native method where target is array.
8839 (get(byte[],int,int)): Use the above.
8840 (adjustAddress): New static native method.
8841 (slice, duplicate, asReadOnly): New implementations.
8842 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
8843 adjustAddress): New or updated native methods.
8845 2004-02-16 Olga Rodimina <rodimina@redhat.com>
8847 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
8848 (setRenderingHint): Added implementation of
8849 Interpolation rendering hints.
8850 (setRenderingHints): Ditto.
8851 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
8852 (drawPixels): fixed to allow user to choose type
8853 of filtering that should be used when displaying images.
8854 (cairoSurfaceSetFilter): New method. Sets filter type for
8855 interpolation of pixel values.
8857 2004-02-16 Kim Ho <kho@redhat.com>
8859 * javax/swing/JLabel.java: Re-implement.
8860 * javax/swing/plaf/basic/BasicLabelUI.java
8862 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8865 2004-02-16? Kim Ho? <kho@redhat.com>
8867 * javax/swing/JSlider.java: Fix indentation and comments.
8868 (setModel): Remove null check to conform with Sun's.
8869 (setOrientation): Throw exception if not
8870 HORIZONTAL or VERTICAL.
8871 (getInverted): Use private variable instead of
8872 ComponentOrientation.
8873 (setInverted): ditto.
8874 * javax/swing/plaf/basic/BasicSliderUI.java:
8875 Fix indentation and comments.
8876 (propertyChange): Remove check for inverted slider, handle
8878 (getMinimumSize): Return preferred size.
8879 (getMaximumSize): ditto.
8880 (calculateFocusRect): Don't relocate rectangle.
8881 (drawInverted): Return XOR of the slider's inversion and
8882 the component's orientation.
8883 (paint): Update leftToRightCache
8885 2004-02-16 Graydon Hoare <graydon@redhat.com>
8887 * javax/swing/plaf/basic/BasicLabelUI.java
8888 (getPreferredSize): Use layoutCL.
8889 * javax/swing/plaf/basic/BasicGraphicsUtils.java
8890 (getPreferredButtonSize): Start with empty view rect, layout using
8891 component's preferred alignment.
8892 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
8895 2004-02-16 David Jee <djee@redhat.com>
8897 * java/awt/Component.java
8898 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
8899 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
8900 (move): Erase old bounds and repaint new bounds. Dispatch
8901 COMPONENT_MOVED ComponentEvent.
8902 (resize): Erase old bounds and repaint new bounds. Dispatch
8903 COMPONENT_RESIZED ComponentEvent.
8904 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8906 * java/awt/Window.java
8907 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
8910 2004-02-16 David Jee <djee@redhat.com>
8912 * java/awt/GridBagLayout.java
8913 (calcCellSizes): Rows or columns with zero sizes should still be
8914 considered for extra space distribution.
8916 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
8918 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
8919 overflow of fieldmapping.
8921 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
8923 * javax/swing/undo/UndoManager.java: Re-written from scratch.
8925 2004-02-14 Per Bothner <per@bothner.com>
8927 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
8928 Set closed before calling implCloseChannel, as in the spec.
8930 2004-02-13 David Jee <djee@redhat.com>
8932 * java/awt/GridBagLayout.java
8933 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
8934 code to helper methods.
8935 (sortBySpan): New helper method.
8936 (distributeSizeAndWeight): Likewise.
8937 (calcCellWeights): Likewise.
8938 (calcCellSizes): Add comments.
8940 2004-02-13 David Jee <djee@redhat.com>
8942 * java/awt/Component.java
8943 (show): Only do something if component is invisible at the moment.
8944 (hide): Only do something if component is visible at the moment.
8945 (reshape): If lightweight, erase old bounds and repaint new bounds.
8947 2004-02-13? Kim Ho? <kho@redhat.com>
8949 * Makefile.am: Updated for new file.
8950 * Makefile.in: Regenerated.
8951 * javax/swing/JSlider.java: Reimplement.
8952 * javax/swing/SwingUtilities.java
8953 (layoutCompoundLabel): Use icon height
8955 (paintComponent): Implement.
8956 * javax/swing/plaf/basic/BasicLookAndFeel.java:
8957 Add JSlider defaults.
8958 * javax/swing/plaf/basic/BasicSliderUI.java:
8959 Implement. New file.
8961 2004-02-11 Michael Koch <konqueror@gmx.de>
8963 * java/net/DatagramSocket.java
8964 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
8966 (setBroadcast): Likewise.
8967 * java/net/MulticastSocket.java
8968 (setLoopbackMode): Likewise.
8969 * java/net/ServerSocket.java
8970 (setReuseAddress): Likewise.
8971 * java/net/Socket.java
8972 (setTcpNoDelay): Likewise.
8973 (setSoLinger): Likewise.
8974 (setOOBInline): Likewise.
8975 (setKeepAlive): Likewise.
8976 (setReuseAddress): Likewise.
8977 * java/net/URLConnection.java
8978 (setContentHandler): Replace == with equals().
8979 * java/net/URLStreamHandler.java
8980 (hostSEquals): Fix checking host addresses.
8981 (toExternalForm): Dont check protocol for null. We know already its
8984 2004-02-10 Randolph Chung <tausq@debian.org>
8986 * configure.in: Build java for hppa target.
8987 * configure: Regenerate.
8988 * libjava/configure.host (hppa-*): Add target.
8989 * libjava/sysdeps/pa/lock.h: New file.
8991 2004-02-10 Michael Koch <konqueror@gmx.de>
8993 * gnu/java/awt/EmbeddedWindow.java
8994 (setHandle): Use java.awt.Component.getPeer() instead of
8995 java.awt.Component.peer directly.
8997 2004-02-10 David Jee <djee@redhat.com>
8999 * java/awt/GridBagLayout.java
9000 (GridBagLayout): New private field, internalcomptable.
9001 (lookupInternalConstraints): New method.
9002 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
9003 (GetLayoutInfo): Reimplement.
9004 (calcCellSizes): Ignore rows/columns with size 0.
9006 2004-02-10 David Jee <djee@redhat.com>
9008 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
9009 (gtkSetLabel): New native method definition.
9010 (setLabel): Use gtkSetLabel.
9011 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
9012 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
9014 2004-02-10 David Jee <djee@redhat.com>
9016 * java/awt/BorderLayout.java
9017 (calcCompSize): Invisible components get zero dimensions.
9018 * java/awt/Button.java
9019 (setLabel): Set actionCommand.
9020 * java/awt/Component.java
9021 (show): Invalidate component and parent container.
9024 2004-02-10 Alan Modra <amodra@bigpond.net.au>
9026 * include/powerpc-signal.h: Revert 2004-01-21 change.
9027 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
9028 from syscall for ppc32 versions.
9030 2004-02-09 Graydon Hoare <graydon@redhat.com>
9032 * javax/swing/ToggleButtonModel.java: Remove dead class.
9033 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
9034 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
9035 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
9036 * Makefile.am: Update for new and removed files.
9037 * Makefile.in: Regenerate.
9039 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
9040 * javax/swing/AbstractButton.java
9041 (AbstractButton): Initialize fields correctly in ctor.
9042 * javax/swing/JCheckbox.java
9043 (JCheckBox): Override painting flags.
9044 * javax/swing/DefaultButtonModel.java: Conform to sun.
9045 * javax/swing/JComponent.java (paint): Fill with background color
9047 (processComponentKeyEvent)
9050 (processMouseMotionEvent): Remove event-consuming empty methods.
9051 (getUIClassID): Return "ComponentUI" not "JComponent"
9052 * javax/swing/JFrame.java: Remove some debugging chatter.
9053 (JFrame): Subscribe to window events.
9054 * javax/swing/JRadioButton.java
9055 (JRadioButton): Override painting flags.
9056 * javax/swing/JRootPane.java
9057 (JRootPane): Set background from UIDefaults.
9058 * javax/swing/JToggleButton.java
9059 (ToggleButtonModel): New inner class.
9060 (JToggleButton): Override layout alighment.
9061 * javax/swing/SwingUtilities.java:
9062 (getLocalBounds): Return width and height, not x and y.
9063 (calculateInnerArea): Use local bounds, not bounds.
9064 (layoutCompoundLabel): Provide overridden form.
9065 (layoutCompoundLabel): Correct bugs.
9066 * javax/swing/UIDefaults.java: Correct comment.
9067 * javax/swing/plaf/basic/BasicButtonUI.java:
9068 Move most logic into defaults, external listener.
9069 (paintIcon): Implement icon painting.
9070 (paint): Fix state painting to conform to changes in model.
9071 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
9072 Remove most dead/wrong methods.
9073 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
9074 * javax/swing/plaf/basic/BasicIconFactory.java:
9075 (DummyIcon): New class.
9076 (getMenuItemCheckIcon)
9077 (getMenuItemArrowIcon)
9079 (getCheckBoxMenuItemIcon)
9080 (getRadioButtonMenuItemIcon)
9081 (createEmptyFrameIcon): Return DummyIcons, not null.
9082 (getCheckBoxIcon): Implement an icon that looks like sun's.
9083 (getRadioButtonIcon): Implement an icon that looks like sun's.
9084 * javax/swing/plaf/basic/BasicLookAndFeel.java
9085 (initComponentDefaults): Fix impossible values, add some missing.
9086 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
9087 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
9088 Remove most dead/wrong methods.
9090 (getDefaultIcon): New method.
9091 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
9092 Remove most dead/wrong methods.
9093 * javax/swing/plaf/metal/MetalLookAndFeel.java
9094 (getDefaults): Return super.getDefaults(), not BasicDefaults.
9095 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
9096 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
9097 Implement "clearing" as drawing, when on pixmap drawables.
9099 * javax/swing/JButton.java (getUIClassID):
9100 * javax/swing/JCheckBox.java (getUIClassID):
9101 * javax/swing/JEditorPane.java (getUIClassID):
9102 * javax/swing/JLabel.java (getUIClassID):
9103 * javax/swing/JList.java (getUIClassID):
9104 * javax/swing/JOptionPane.java (getUIClassID):
9105 * javax/swing/JPanel.java (getUIClassID):
9106 * javax/swing/JPasswordField.java (uiClassID):
9107 * javax/swing/JRadioButton.java (getUIClassID):
9108 * javax/swing/JRootPane.java (getUIClassID):
9109 * javax/swing/JScrollPane.java (getUIClassID):
9110 * javax/swing/JTabbedPane.java (getUIClassID):
9111 * javax/swing/JToggleButton.java (getUIClassID):
9112 * javax/swing/JTree.java (getUIClassID):
9113 * javax/swing/JViewport.java (getUIClassID):
9114 * javax/swing/text/JTextComponent.java (getUIClassID):
9115 Return "fooUI" not "Jfoo"
9117 2004-02-08 Per Bothner <per@bothner.com>
9119 * java/nio/ByteBuffer.java (shiftDown): New helper method.
9120 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
9121 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
9122 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
9123 Pass ByteOrder parameter to most methods, since the underlying
9124 ByteBuffer's order isn't always what we should use.
9125 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
9126 * java/nio/DirectByteBufferImpl.java: Likewise.
9127 Use ByteBufferHelper methods.
9128 * java/nio/MappedByteBufferImpl.java: Likewise.
9129 (compact): Use shiftDown.
9130 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
9131 (get, put): Use ByteBufferHelper.
9132 (compact): Use new shiftDown method.
9133 (duplicate(boolean)): New helper method.
9134 (duplicate, asReadOnlyBuffer): Use it.
9135 (order): Return endian field.
9136 * java/nio/DoubleViewBufferImpl.java: Likewise.
9137 * java/nio/FloatViewBufferImpl.java: Likewise.
9138 * java/nio/IntViewBufferImpl.java: Likewise.
9139 * java/nio/LongViewBufferImpl.java: Likewise.
9140 * java/nio/ShortViewBufferImpl.java: Likewise.
9141 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
9142 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
9143 (compact): Re-implement using shiftDown.
9145 2004-02-08 Diego Novillo <dnovillo@redhat.com>
9147 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
9149 (HANDLE_DIVIDE_OVERFLOW): Likewise.
9151 2004-02-08 Andreas Jaeger <aj@suse.de>
9153 * include/x86_64-signal.h: Fix typo.
9155 2004-02-06 Michael Koch <konqueror@gmx.de>
9157 * java/io/ObjectInputStream.java
9158 (currentClassLoader): Reverted to old version of this method.
9160 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
9162 * java/io/ObjectInputStream.java: Made all calls
9163 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
9164 use cached info from ObjectStreamClass. (readClassDescriptor):
9165 Cache more information in ObjectStreamClass. (processResolution,
9166 readFields): Use cached info from ObjectStreamClass.
9167 (newObject): Throw exception instead of returning null for failure.
9168 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
9169 setCharField, setDoubleField, setFloatField, setIntField,
9170 setLongField, setShortField, setObjectField, readObjectParams):
9171 Removed. (dumpElement, dumpElementln): Removed dump flag condition
9173 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
9174 (setClass): Added call to cacheMethods() (findMethod): New method.
9175 (cacheMethods): New method. (ObjectStreamClass): Added call to
9176 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
9177 AccessController.doPrivileged to invoke setAccessible.
9178 (readObjectMethod, readResolveMethod, realClassIsSerializable,
9179 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
9181 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
9182 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
9183 isPrimitive): Made safe for cases where type == null.
9184 (setBooleanField, setByteField, setCharField, setShortField,
9185 setIntField, setLongField, setFloatField, setDoubleField,
9186 setObjectField): New methods.
9188 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
9190 * java/awt/Component.java (getFont): Return a default font
9193 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
9194 (Scrollbar (int, int, int, int, int)): Make default page
9196 (setValues): Only call peer.setValues if one of the values has
9198 (generateName): New method.
9199 (getUniqueLong): New method.
9200 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
9201 (range_scrollbar): Remove structure.
9202 (post_adjustment_event): Remove function.
9203 (post_change_event): Accept jobject argument.
9204 (create): Cast jints to gdoubles. Round scrollbar values to the
9205 nearest integer. Clamp min, max and value settings.
9206 (connectJObject): Connect hook to widget->window.
9207 (connectSignals): Remove range_scrollbar structure variables.
9208 Remove "move-slider" connection. Pass global peer reference to
9209 "value-changed" callback.
9210 (setLineIncrement): Cast jint value to gdouble.
9211 (setPageIncrement): Likewise.
9212 (setValues): Likewise. Clamp min, max and value settings.
9214 2004-02-05 Michael Koch <konqueror@gmx.de>
9216 * java/util/zip/Deflater.java,
9217 java/util/zip/DeflaterOutputStream.java,
9218 java/util/zip/GZIPInputStream.java:
9219 Reformated and javadoc comments merged from classpath.
9221 2004-02-05 Michael Koch <konqueror@gmx.de>
9223 * java/awt/datatransfer/DataFlavor.java
9224 (imageFlavor): Javadoc added.
9225 (javaJVMLocalObjectType): Fixed.
9227 2004-02-05 Michael Koch <konqueror@gmx.de>
9229 * gnu/java/nio/NIOServerSocket.java
9230 (impl): Unused, removed.
9231 * gnu/java/nio/SocketChannelImpl.java
9232 (finnishConnect): Don't throw NoConnectionPendingException if not
9233 connected or no connection pending.
9235 2004-02-05 Michael Koch <konqueror@gmx.de>
9237 * java/lang/Thread.java
9238 (Thread): Reordered.
9239 (setContextClassLoader): Fixed javadoc comment.
9240 (setPriority): Reordered.
9242 (initialize_native): Reordered.
9243 (gen_name): Reordered.
9245 2004-02-05 Michael Koch <konqueror@gmx.de>
9247 * javax/swing/AbstractCellEditor.java
9248 (getCellEditorValue): Removed.
9249 * javax/swing/Box.java: Reformated.
9250 (serialVersionUID): New field.
9251 * javax/swing/ButtonGroup.java:
9252 Removed some weird whitespace.
9253 * javax/swing/CellEditor.java: Reformated.
9254 * javax/swing/CellRendererPane.java
9255 (serialVersionUID): New field.
9256 (AccessibleCellRendererPaneserialVersionUID): New field.
9257 * javax/swing/DefaultListModel.java
9258 (serialVersionUID): New field.
9259 * javax/swing/JEditorPane.java
9260 (serialVersionUID): New field.
9261 (setPage): Throws IOException.
9262 (addHyperlinkListener): Implemented.
9263 (removeHyperlinkListener): Implemented.
9264 (getHyperlinkListener): New method.
9265 * javax/swing/JFileChooser.java
9266 (serialVersionUID): New field.
9267 (AccessibleJFileChooser.serialVersionUID): New field.
9268 (addActionListener): Implemented.
9269 (removeActionListener): Implemented.
9270 (getActionListeners): New method.
9271 * javax/swing/JFormattedTextField.java
9272 (serialVersionUID): New field.
9273 (AbstractFormatter.serialVersionUID): New field.
9274 (clone): Throws CloneNotSupportedException
9275 (setEditValid): Add missing argument.
9276 (stringToValue): Throws ParseExcpetion.
9277 (valueToString): Throws ParseException.
9278 (commitEdit): Throws ParseException.
9279 * javax/swing/JLabel.java
9280 (serialVersionUID): New field.
9281 * javax/swing/JList.java
9282 (serialVersionUID): New field.
9283 (addListSelectionListener): Reformated.
9284 (removeListSelectionListener): Reformated.
9285 (getListSelectionListeners): New method.
9286 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
9288 (serialVersionUID): New field.
9289 * javax/swing/table/AbstractTableModel.java
9290 (getValueAt): Removed.
9291 (getColumnCount): Removed.
9292 (getRowCount): Removed.
9294 2004-02-05 Michael Koch <konqueror@gmx.de>
9296 * java/lang/Thread.java: Reordered fields, reformated much code,
9297 no functional changes, some variables renamed, javadoc comments
9300 2004-02-04 Olga Rodimina <rodimina@redhat.com>
9302 * java/awt/geom/AffineTransform.java:
9303 Corrected comments on the field definitions for
9305 (shear): Fixed few errors that caused shear
9306 transformation to be performed incorrectly.
9307 (createInverse): Fixed to return correct
9308 inverse of the given matrix.
9310 2004-02-03 Tom Tromey <tromey@redhat.com>
9312 * java/lang/natPosixProcess.cc (startProcess): Handle case where
9313 PATH or LD_LIBRARY_PATH is not set in parent environment.
9315 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
9317 * gnu/java/awt/peer/gtk/GtkListPeer.java,
9318 java/awt/BorderLayout.java, java/awt/CardLayout.java,
9319 java/awt/CheckboxGroup.java, java/awt/Choice.java,
9320 java/awt/Component.java, java/awt/Container.java,
9321 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
9322 java/awt/LayoutManager2.java, java/awt/List.java,
9323 java/awt/Menu.java, java/awt/MenuBar.java,
9324 java/awt/MenuItem.java, java/awt/Polygon.java,
9325 java/awt/Rectangle.java, java/awt/ScrollPane.java,
9326 java/awt/Scrollbar.java, java/awt/TextArea.java,
9327 java/awt/TextField.java,
9328 java/awt/image/renderable/RenderContext.java,
9329 javax/swing/JApplet.java: Fix handling of alias methods, where a
9330 method has been deprecated in favour of a new one with the same
9331 funtion but a different name. Put the method implementation in
9332 the deprecated method and have the new method call the
9333 deprecated one. Make all other code call the new method.
9335 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
9337 * gnu/java/nio/DatagramChannelImpl.java
9338 (inChannelOperation): New field.
9339 (isInChannelOperation): New accessor.
9340 (setInChannelOperation): New modifier.
9341 (receive): Use capacity() - position() of destination
9342 buffer instead of remaining(). Set and reset our "in
9343 channel operation indicator" before and after delegating
9344 the receive to our datagram socket. Removed testing code.
9345 Update destination buffer's current position if it is
9346 backed by a byte array (hasArray() is true).
9347 (send): Set and reset our "in channel operation indicator"
9348 before and after delegating the send to our datagram socket.
9349 Removed testing code. Update source buffer's current position
9350 if it is backed by a byte array (hasArray() is true).
9351 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
9352 Use capacity() - position() of destination buffer instead
9354 * java/net/DatagramSocket.java (receive): Don't throw an
9355 IllegalBlockingModeException if we have a non-blocking
9356 channel which initiated this operation.
9359 2004-02-02 Graydon Hoare <graydon@redhat.com>
9361 * javax/swing/SwingUtilities.java: Many new functions.
9362 * java/awt/Container.java (LightweightDispatcher): Reimplement.
9363 * javax/swing/basic/BasicGraphicsUtils.java
9364 (getPreferredButtonSize): Start layout from top-left corner.
9366 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
9368 * configure.in: Add pkgconfig check for glib and gthread.
9369 * configure: Regenerate.
9371 2004-02-01 Michael Koch <konqueror@gmx.de>
9373 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
9375 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
9376 * verify.cc (debug_print): Mark 'fmt' unused.
9378 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
9380 * gnu/java/net/PlainSocketImpl.java
9381 (inChannelOperation): New field.
9382 (isInChannelOperation): New accessor.
9383 (setInChannelOperation): New modifier.
9384 * gnu/java/nio/ServerSocketChannelImpl.java
9385 (accept): Set and reset our server socket's PlainSocketImpl's
9386 "in channel operation" indicator before and after delegating
9387 the accept to our server socket.
9388 * gnu/java/nio/SocketChannelImpl.java
9389 (connect): Set and reset our socket's PlainSocketImpl's "in channel
9390 operation" indicator before and after delegating the operation to
9394 * java/net/ServerSocket.java (implAccept): Don't throw an
9395 IllegalBlockingModeException if we have a non-blocking
9396 channel which initiated this accept operation.
9397 * java/net/Socket.java (connect): Don't throw an
9398 IllegalBlockingModeException if we have a non-blocking
9399 channel which initiated this connect operation.
9400 * java/nio/channels/spi/AbstractSelectableChannel.java
9401 (configureBlocking): Only call implConfigureBlocking() if
9402 the desired blocking mode is different from our current one.
9404 2004-01-30 Michael Koch <konqueror@gmx.de>
9406 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
9407 * configure: Regenerated.
9408 * glib-2.0.m4: Removed.
9409 * gtk-2.0.m4: Removed.
9410 * libart.m4: Removed.
9413 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9415 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
9417 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9419 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
9422 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
9424 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
9425 * Makefile.in: Re-generated.
9426 * gnu/awt/xlib/XFontPeer.java: New file.
9427 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
9428 (setClip): Commented out debug printout.
9429 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
9430 (getFontPeer): Return XFontPeer.
9431 (getLocalGraphicsEnvironment): New method.
9432 (getClasspathFontPeer): New method.
9433 (createFont): New method.
9435 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
9437 * java/io/BufferedReader.java (sbuf): New field.
9438 (readLine): Use String.valueOf instead of new String() as per
9439 Per Bothner's suggestion. Use instance sbuf field instead of a
9440 local StringBuffer instance.
9441 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
9442 caller's buffer to refill().
9443 (read(void)): Pass our internal work buffer to refill if our
9444 input queue is empty.
9445 (refill): Changed return type to int. Use the specified buffer
9446 instead of our work buffer as per Bryce McKinlay's suggestion.
9447 Return the number of characters read or -1 for EOF.
9449 2004-01-29 Kim Ho <kho@redhat.com>
9451 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9452 (gtkLayoutSetVisible): New method
9453 (setMenuBar): Hide layout before setting MenuBar
9454 and reshow it after.
9455 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9456 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
9458 2004-01-28 Michael Koch <konqueror@gmx.de>
9460 * gnu/java/lang/ClassHelper.java
9461 (getPackagePortion): Removed.
9463 2004-01-28 Michael Koch <konqueror@gmx.de>
9465 * javax/swing/JComponent.java
9466 (listenerList): Initalize globally.
9467 (ancestor_list): Removed.
9468 (veto_list): Removed.
9469 (change_list): Removed.
9470 (get_veto_list): Removed.
9471 (get_change_list): Removed.
9472 (get_ancestor_list): Removed.
9473 (removeAncestorListener): Reimplemented.
9474 (removePropertyChangeListener): Likewise.
9475 (removeVetoableChangeListener): Likewise.
9476 (addAncestorListener): Likewise.
9477 (addPropertyChangeListener): Likewise.
9478 (addVetoableChangeListener): Likewise.
9479 (getListeners): New method.
9480 (getAncestorListeners): Likewise.
9481 (getVetoableChangeListeners): Likewise.
9482 (fireVetoableChange): Throws PropertyVetoException.
9483 * javax/swing/JEditorPane.java
9484 (JEditorPane): Throws IOException.
9486 2004-01-28 David Jee <djee@redhat.com>
9488 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9489 (create): Set the default foreground color to
9490 java.awt.SystemColor.windowText.
9492 2004-01-27 Michael Koch <konqueror@gmx.de>
9494 * gnu/java/net/protocol/http/Connection.java
9495 (getOutputStream): Fixed typo.
9497 2004-01-27 Michael Koch <konqueror@gmx.de>
9499 * java/lang/Class.java
9500 (getConstructor): Removed SecurityException from throws clause.
9501 (_getConstructors): Likewise.
9502 (getConstructors): Likewise.
9503 (getDeclaredConstructor): Likewise.
9504 (getDeclaredClasses): Likewise.
9505 (getDeclaredConstructors): Likewise.
9506 (getDeclaredField): Likewise.
9507 (getDeclaredMethod): Likewise.
9508 (getDeclaredMethods): Likewise.
9509 (getField): Likewise.
9510 (getMethod): Likewise.
9511 (getMethods): Likewise.
9513 2004-01-27 Michael Koch <konqueror@gmx.de>
9515 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
9516 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9517 Reindented to merge with classpath.
9519 2004-01-27 Michael Koch <konqueror@gmx.de>
9521 * javax/swing/AbstractCellEditor.java: Reformated.
9522 * javax/swing/DefaultListSelectionModel.java
9523 (listenerList): Made protected.
9524 (addListSelectionListener): Javadoc added.
9525 (removeListSelectionListener): Likewise.
9526 (getListeners): Likewise.
9527 (getListSelectionListeners): Likewise.
9528 * javax/swing/JComboBox.java: Merged copyright year.
9529 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
9531 2004-01-27 Kim Ho <kho@redhat.com>
9533 * gnu/java/awt/peer/gtk/GtkFramePeer.java
9534 (removeMenuBarPeer): Remove MenuBarPeer argument.
9535 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
9536 (dispose): Call native method.
9537 * java/awt/Frame.java (setMenuBar): Create and remove
9538 MenuBar peers only if the Frame has a peer.
9539 (addNotify): Create the MenuBar peer if one exists.
9540 (removeNotify): Remove MenuBar peer if one exists.
9541 * java/awt/Menu.java: Fix imports.
9542 (addNotify): Don't use full class name.
9543 (removeNotify): Call removeNotify on all children.
9544 * java/awt/MenuBar.java (removeNotify): Call
9545 removeNotify on all children.
9546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9547 (removeMenuBarPeer): Remove MenuBarPeer argument.
9548 Iterate through children to find the Frame's MenuBar.
9549 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
9551 (dispose): Remove references to the MenuComponent.
9553 2004-01-27 David Jee <djee@redhat.com>
9555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9556 (addExposeFilter): Handle GtkFramePeer separately.
9557 (removeExposeFilter): Likewise.
9559 2004-01-26 Kim Ho <kho@redhat.com>
9561 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
9563 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
9564 height and let the Layout Managers readjust anything that
9566 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9567 (moveLayout): New method. Shift everything in the Gtk
9568 layout in the Y direction by an offset.
9570 2004-01-26 Kim Ho <kho@redhat.com>
9572 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
9575 2004-01-26 Kim Ho <kho@redhat.com>
9577 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
9579 (setMenuBar): Grab MenuBar height and change insets.
9580 (setBounds): Account for MenuBar height.
9581 (postInsetsChangedEvent): Ditto.
9582 (postSizeAllocateEvent): Remove.
9583 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9584 (menubar_resize_cb): Remove
9585 (setMenuBarPeer): Remove callback.
9586 (getMenuBarHeight): Use size requisition instead of
9589 2004-01-26 David Jee <djee@redhat.com>
9591 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
9592 (handleEvent): Implemented. Handles PaintEvents.
9593 (paint): Implemented. Use GTK native methods to queue updates
9594 for this heavyweight peer.
9595 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
9596 (handleEvent): Removed.
9597 * java/awt/Component.java
9598 (paint): Implemented. Explictly paint the heavyweight peer.
9599 (update): Clear the background for heavyweight components.
9600 (paintAll): No need to call peer.paint() anymore.
9601 (processEvent): Don't process PaintEvents here. It's now done in
9602 the peer's handleEvent().
9603 (processPaintEvent): Removed.
9604 * java/awt/Container.java
9605 (paint): No need to call super.paint(). Visit heavyweight
9607 (update): Don't clear the background here. It's done in
9609 (visitChildren): Added check to not recurse into Containers.
9610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9611 (filter_expose_event_handler): New method. Filter unwanted
9612 expose events while painting heavyweight peers.
9613 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
9614 New method. Connect filter and block pre_event_handler.
9615 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
9616 New method. Disconnect filter and unblock pre_event_handler.
9617 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
9618 New method. Invalidate and update given area.
9619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
9620 (pre_event_handler): Add checks for unwanted expose events.
9622 2004-01-26 David Jee <djee@redhat.com>
9624 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
9625 (find_bg_color_widget): For GtkButton, return its child.
9627 2004-01-26 Andrew Haley <aph@redhat.com>
9629 * javax/swing/table/JTableHeader.java: Extend JComponent
9631 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9633 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
9634 image observer of image loading status.
9635 (getImage (String)): Start image production.
9636 (getImage (URL)): Likewise.
9638 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
9640 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
9641 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
9643 (setColumns): Remove FIXME -- peer will retrieve number of
9644 columns by calling getColumns.
9645 (setRows): Likewise for number of rows.
9646 (next_text_number): New field.
9647 (paramString): Fix param string.
9648 (generateName): New method.
9649 (getUniqueLong): New method.
9651 2004-01-25 Michael Koch <konqueror@gmx.de>
9653 * java/lang/Class.java: Imports reworked, reformated.
9654 (Class): Javadoc added.
9655 (forName): Likewise.
9656 (getClasses): Likewise.
9657 (getClassLoader): Likewise.
9658 (getComponentType): Likewise.
9659 (getConstructor): Likewise.
9660 (getConstructors): Likewise.
9661 (getDeclaredConstructor): Likewise.
9662 (getDeclaredClasses): Likewise.
9663 (getDeclaredConstructors): Likewise.
9664 (getDeclaredField): Likewise.
9665 (getDeclaredMethod): Likewise.
9666 (getDeclaredMethods): Likewise.
9667 (getDeclaringClass): Likewise.
9668 (getField): Likewise.
9669 (getInterfaces): Likewise.
9670 (getMethod): Likewise.
9671 (getMethods): Likewise.
9672 (getModifiers): Likewise.
9673 (getName): Likewise.
9674 (getResource): Likewise.
9675 (getResourceAsStream): Likewise.
9676 (getSigners): Likewise.
9677 (setSigners): Likewise.
9678 (getSuperclass): Likewise.
9679 (isArray): Likewise.
9680 (isAssignableFrom): Likewise.
9681 (isInstance): Likewise.
9682 (isInterface): Likewise.
9683 (isPrimitive): Likewise.
9684 (newInstance): Likewise.
9685 (getProtectionDomain): Likewise.
9686 (toString): Likewise.
9688 (initializeClass): Likewise.
9689 (finalize): Likewise.
9691 2004-01-24 Michael Koch <konqueror@gmx.de>
9693 * java/util/zip/InflaterInputStream.java: Merged class documentation
9696 2004-01-24 Michael Koch <konqueror@gmx.de>
9698 * Makefile.am: Added library version to gtk peer lib.
9699 * Makefile.in: Regenerated.
9701 2004-01-24 Michael Koch <konqueror@gmx.de>
9703 * gnu/java/net/protocol/jar/Connection.java
9706 (gotHeaders): Removed.
9707 (getHeaderField): Removed.
9708 (getHeaderFields): Removed.
9709 (getHeaderFieldKey): Removed.
9711 (getField): Removed.
9712 (getHeaders): Removed.
9714 2004-01-23 Michael Koch <konqueror@gmx.de>
9716 * java/text/CollationElementIterator.java:
9717 (setText): New method.
9719 2004-01-23 Michael Koch <konqueror@gmx.de>
9721 * gnu/java/nio/FileLockImpl.java:
9722 Fixed filename in copyright.
9723 (released): Removed.
9724 (finalize): New method.
9725 * gnu/java/nio/natFileLockImpl.cc
9726 (releaseImpl): Implemented.
9727 * java/nio/channels/FileChannelImpl.java:
9729 (lock): Implemented.
9730 (lockImpl): New method.
9731 (tryLock): Implemented.
9732 (tryLockImpl): New method.
9733 * java/nio/channels/natFileChannelImpl.cc
9734 (lockImpl): New method.
9735 (tryLockImpl): New method.
9737 2004-01-23 Michael Koch <konqueror@gmx.de>
9739 * gnu/java/nio/FileLockImpl.java: Compile fixes.
9741 2004-01-23 Michael Koch <konqueror@gmx.de>
9743 * javax/swing/AbstractAction.java: Reformated.
9744 (getPropertyChangeListeners): New method.
9745 * javax/swing/AbstractCellEditor.java: Reformated.
9746 (getCellEditorListeners): New method.
9747 * javax/swing/DefaultListSelectionModel.java
9748 (listenerList): New field.
9749 (listeners): Removed.
9750 (get_listeners): Removed.
9751 (addListSelectionListener): Rewritten.
9752 (removeListSelectionListener): Rewritten.
9753 (getListSelectionListeners): New method.
9754 (getListeners): New method.
9755 * javax/swing/JComboBox.java: Imports reworked.
9756 (addActionListener): Implemented.
9757 (removeActionListener): Implemented.
9758 (addItemListener): Implemented.
9759 (removeItemListener): Implemented.
9760 (addPopupMenuListener): Implemented.
9761 (removePopupMenuListener): Implemented.
9762 (getActionListeners): New method.
9763 (getItemListeners): New method.
9764 (getPopupMenuListeners): New method.
9766 2004-01-23 Michael Koch <konqueror@gmx.de>
9768 * java/lang/Class.java,
9769 java/lang/Object.java,
9770 java/lang/Thread.java: Merged copyright with classpath.
9772 2004-01-23 Michael Koch <konqueror@gmx.de>
9774 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
9777 2004-01-23 Michael Koch <konqueror@gmx.de>
9779 * javax/swing/AbstractAction.java: Reformated.
9781 2004-01-23 Michael Koch <konqueror@gmx.de>
9783 * java/io/FileDescriptor.java
9785 (tryLock): New method.
9786 (unlock): New method.
9787 * java/io/natFileDescriptorEcos.cc
9789 (tryLock): New method.
9790 (unlock): New method.
9791 * java/io/natFileDescriptorPosix.cc
9793 (tryLock): New method.
9794 (unlock): New method.
9795 * java/io/natFileDescriptorWin32.cc
9797 (tryLock): New method.
9798 (unlock): New method.
9800 2004-01-23 Michael Koch <konqueror@gmx.de>
9802 * gnu/java/net/protocol/http/Connection.java
9803 (connect): Don't initialize bufferedOutputStream if not needed.
9804 (sendRequest): Set property for content length if content is present.
9805 Write content only if present.
9806 (getOutputStream): Check if already connected, dont connect,
9807 initalize bufferedOutputStream if needed.
9809 2004-01-23 Michael Koch <konqueror@gmx.de>
9811 * java/io/FileDescriptor.java
9812 (sync): Moved around, added javadoc.
9817 (setLength): Likewise.
9819 (getLength): Likewise.
9820 (getFilePointer): Likewise.
9822 (available): Likewise.
9823 (finalize): Likewise.
9825 2004-01-23 Michael Koch <konqueror@gmx.de>
9827 * java/io/FileDescriptor.java: Merged copyright with classpath to
9828 start merging this class.
9830 2004-01-23 Michael Koch <konqueror@gmx.de>
9832 * java/io/FileDescriptor.java
9833 (in, out, err): Added javadoc.
9834 (static): Merged loading code.
9835 (fd, position): Moved around.
9837 2004-01-23 Michael Koch <konqueror@gmx.de>
9839 * java/lang/VMClassLoader.java: Reworked imports.
9841 2004-01-22 Tom Tromey <tromey@redhat.com>
9844 * testsuite/libjava.lang/pr13107_2.xfail: New file.
9845 * testsuite/libjava.lang/pr13107_3.xfail: New file.
9846 * testsuite/libjava.lang/pr13107_3.java: New file.
9847 * testsuite/libjava.lang/pr13107_3.out: New file.
9848 * testsuite/libjava.lang/pr13107_2.java: New file.
9849 * testsuite/libjava.lang/pr13107_2.out: New file.
9850 * testsuite/libjava.lang/pr13107.java: New file.
9851 * testsuite/libjava.lang/pr13107.out: New file.
9852 * verify.cc (jsr_ptrs): Removed.
9853 (entry_points): Likewise.
9854 (struct subr_info): Likewise.
9855 (struct subr_entry_info): Likewise.
9856 (type_val::unused_by_subroutine_type): Likewise.
9857 (type::merge): Don't handle unused_by_subroutine_type.
9858 (type::print): Likewise.
9859 (state::flags): Removed.
9860 (state::subroutine): Likewise.
9861 (state::seen_subrs): Likewise.
9862 (state::NO_STACK): Likewise.
9863 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
9864 (state): Updated all methods.
9865 (state::clean_subrs): Removed.
9866 (state::state): Removed `ret_semantics' flag.
9867 (state::copy): Likewise.
9868 (state::add_subr): Removed.
9869 (state::enter_subroutine): Likewise.
9870 (type::set_return_address): New method.
9871 (handle_jsr_insn): Set return address on the type. Always
9872 invalidate PC after call.
9873 (check_nonrecursive_call): Removed.
9874 (~_Jv_BytecodeVerifier): Updated.
9875 (branch_prepass): Removed special handling of jsr.
9876 (note_branch_target): Likewise.
9877 (get_subroutine): Removed.
9878 (state::merge): Don't merge subroutines and don't handle
9879 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
9880 (state::note_variable): Removed.
9881 (state::is_unmerged_ret_state): Likewise.
9882 (state::print): Updated.
9883 (set_variable): Likewise.
9884 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
9885 and jsr_semantics arguments. Updated for new reverification
9887 (pop_jump): Rewrote.
9888 (construct_primitive_array_type): Updated.
9889 (state::next): Removed.
9890 (INVALID_STATE): New define.
9891 (state::INVALID): Removed.
9892 (state::NO_NEXT): New value.
9893 (state::pc, state::next): New fields.
9894 (state::get_pc): New method.
9895 (next_verify_pc): Removed.
9896 (next_verify_state): New field.
9897 (verify_instructions_0): Always check for falling off end.
9899 (linked_utf8): Removed.
9900 (states): Changed type.
9901 (type::state_mergeable_p): New method.
9902 (state::state_mergeable_p): Likewise.
9903 (handle_ret_insn): Removed most code.
9904 (state::reverify): New method.
9905 (add_new_state): Likewise.
9906 (state::set_pc): Likewise.
9908 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
9910 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9911 (connectJObject): Replace printf calls with g_assert statements.
9912 Move property-notify-event signal connection to ...
9913 (connectSignals): Connect property-notify-event signal. Iterate
9914 through the vbox's children to find layout.
9916 2004-01-22 Jeff Sturm <jsturm@one-point.com>
9919 * testsuite/libjava.compile/PR13733.java: New file.
9920 * testsuite/libjava.compile/PR13733.xfail: New file.
9922 2004-01-22 Graydon Hoare <graydon@redhat.com>
9924 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
9925 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
9926 Predicate static initialization on GtkToolkit.useGraphics2D().
9927 * java/awt/Component.java (processPaintEvent): Consume event.
9928 * javax/swing/AbstractButton.java: Reimplement, document.
9929 * javax/swing/DefaultButtonModel.java: Reimplement, document.
9930 * javax/swing/JComponent.java (paint): Use double buffer.
9931 (listenerList): Enable member.
9932 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
9933 * javax/swing/JToggleButton.java
9934 (JToggleButton): Modify model constructor.
9935 * javax/swing/SwingUtilities.java
9936 (layoutCompoundLabel): Adjust arithmetic.
9937 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
9938 * javax/swing/plaf/basic/BasicGraphicsUtils.java
9939 (getPreferredButtonSize): Include margins in calculation.
9940 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9941 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
9942 Receive up events from subordinate layout component.
9944 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
9945 Michael Koch <konqueror@gmx.de>
9947 * javax/swing/table/DefaultTableCellRenderer.java
9948 (DefaultTableCellRenderer): Added javadoc for the class and for
9949 the constructor, Border instance, create an EmptyBorder.
9950 (UIResource): Removed the comment at the end of the class
9951 (setForeground): New method.
9952 (setBackground): New method.
9953 (updateUI): New method.
9954 (getTableCellRendererComponent): Rewritten with the help of
9955 dvholten and Stephane Meslin-Weber.
9956 (validate): New method.
9957 (repaint): New method.
9958 (firePropertyChange): New method.
9959 (setValue): New method.
9961 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
9963 * java/awt/Component.java (show): Set visible to true before
9966 2004-01-21 Kim Ho <kho@redhat.com>
9968 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
9970 (removeMenuBarPeer): Make package private.
9971 (setMenuBarPeer): Make package private.
9972 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
9973 (menubar_resize_cb): Mark attributes unused.
9974 (getMenuBarHeight): ditto.
9976 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9978 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
9979 header. For __powerpc64__ provide the default-signal.h definitions
9981 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
9982 instead of the dummy definitions.
9983 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
9984 (powerpc64*-*): Remove with_libffi_default.
9985 Only add -mminimal-toc for 64-bit compilations.
9986 * configure.in: Use powerpc-signal.h on powerpc64 as well.
9987 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
9988 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
9989 * configure: Rebuilt.
9991 2004-01-21 David Jee <djee@redhat.com>
9993 * java/awt/Container.java
9994 (LightweightDispatcher.handleEvent): Add an extra check to avoid
9995 dispatching MOUSE_ENTERED event twice. Translate the point for
9996 the mouse event target before dispatching the event.
9998 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10000 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
10001 Calculate proper offsets for heavyweight components packed in
10002 lightweight containers.
10004 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
10005 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
10006 (native create): Add width parameter.
10007 (create): Calculate text entry width based on current font's
10008 metrics and number of columns. Set TextField's font if not
10009 already set. Call native create.
10010 (gtkEntryGetBorderWidth): New native method.
10011 (gtkEntryGetSize): Remove method.
10012 (getMinimumSize): Call minimumSize.
10013 (getPreferredSize): Call preferredSize.
10014 (minimumSize): Calculate minimum size based on backing
10015 GtkEntry's borders, font metrics and number of columns.
10016 (preferredSize): Likewise for preferred size.
10017 (get_border_width): New static function.
10019 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
10020 Override GtkWindowPeer's setResizable method to account for menu
10021 bar height when setting the frame's size.
10023 2004-01-20 Jakub Jelinek <jakub@redhat.com>
10025 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
10026 lib_org_w3c_dom_la_LDFLAGS): New.
10027 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
10028 * Makefile.in: Rebuilt.
10030 2004-01-19 Matthias Klose <doko@debian.org>
10032 * libtool-version: Increased `current' to 6.
10034 2004-01-19 Kim Ho <kho@redhat.com>
10036 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10037 (connectJObject): Iterate through the vbox's children to find layout.
10039 2004-01-19 Kim Ho <kho@redhat.com>
10041 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
10042 MenuBarPeer parameter.
10043 (removeMenuBarPeer): New native method.
10044 (setMenuBar): Call remove if menu bar is null. Adjust insets
10046 (postSizeAllocateEvent): New method. Called when menu bar size is
10047 allocated. Adjust insets and redo layout.
10048 (GtkFramePeer): Set menu bar during frame creation.
10049 (postConfigureEvent): Adjust position and size to accomodate
10051 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
10052 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
10053 (addNotify): Create the peer if it doesn't exist and call addNotify
10054 for the menu's items.
10055 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
10056 * java/awt/MenuItem.java (addNotify): Create the peer if it
10058 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10059 (removeMenuBarPeer): New method. Remove menu bar on the current
10061 (setMenuBarPeer): Add the menu bar to the current frame and the
10062 callback for size-allocate events on the menu bar.
10063 (getMenuBarHeight): Add menu bar parameter.
10064 (menubar_resize_cb): New callback method for postSizeAllocate events.
10066 Also: Fix indentation on last ChangeLog entry.
10068 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10070 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
10071 events may be handled by any queue in the stack.
10073 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10075 * java/awt/EventQueue.java (pop): Prevent racing condition to add
10076 events to the queue out of order by acquiring locks in the proper
10077 order and not by releasing one before acquiring the other.
10079 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10081 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
10082 visible so that dialog can be reused.
10084 2004-01-19 Fernando Nasser <fnasser@redhat.com>
10086 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
10087 isDispatchThread method to replace wrong test condition.
10089 2004-01-16 Tom Tromey <tromey@redhat.com>
10091 * java/awt/Container.java: Typo and indentation fixes.
10093 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
10094 * java/lang/natVMClassLoader.cc: ...here. New file.
10095 * Makefile.in: Rebuilt.
10096 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
10098 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
10100 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10101 (window_property_changed_cb): Set id_set.
10103 2004-01-16 Kim Ho <kho@redhat.com>
10105 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10106 (gtkWidgetGetDimensions): Remove.
10107 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10108 (gtkWidgetGetDimensions): Remove.
10110 2004-01-16 Kim Ho <kho@redhat.com>
10112 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
10113 it is a FileDialog and has dimensions of 0 by 0, then the initial
10114 size is set to size request plus insets.
10115 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
10116 (gtkWidgetGetDimensions): Override method.
10117 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
10118 (gtkWidgetGetDimensions): Override method. Returns size request plus
10121 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10123 * java/awt/EventDispatchThread.java (run): Stop running when
10125 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
10126 Reset the queue after transferring its contents.
10127 (push): Start a new dispatch thread if none is running.
10129 2004-01-16?? Olga Rodimina <rodimina@redhat.com>
10131 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10132 (doPolygon): set fill rule of polygon to
10133 WIND_EVEN_ODD by default.
10135 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10137 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
10138 Discard GDK_ENTER_NOTIFY related to ungrabs.
10140 2004-01-16 Fernando Nasser <fnasser@redhat.com>
10142 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
10143 is called for an intermediate queue.
10145 2004-01-16 Andrew Haley <aph@redhat.com>
10147 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
10148 * sysdep/i386/locks.h: Likewise.
10150 2004-01-15 Tom Tromey <tromey@redhat.com>
10152 * Makefile.in: Rebuilt.
10153 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
10154 (%.lo: %.java) Filter out StackTrace.lo.
10156 2004-01-15 Olga Rodimina <rodimina@redhat.com>
10158 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
10159 Implemented rendering hints related methods.
10160 (getDefaultHints): New helper method. Returns
10161 default rendering hints.
10162 (walkPath): changed to normalize path if
10163 the KEY_STROKE_CONTROL key is in "normalize" mode.
10164 (draw3DRect): changed coordinates of rectangle by +0.5
10165 if in "normalize" mode.
10167 2004-01-14 Nathan Bryant <nbryant@optonline.net>
10168 Tom Tromey <tromey@redhat.com>
10171 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
10172 array to superclass.
10173 (init): Changed interface; add URLs here.
10174 (initialize): New static method.
10175 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
10176 (_Jv_RunMain): ... not here.
10178 2004-01-14 Michael Koch <konqueror@gmx.de>
10180 * java/text/MessageFormat.java:
10181 Added descriptions to exceptions.
10182 This fixes PR libgcj/2429.
10184 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10186 * configure.in: Add in AC_PREREQ(2.13)
10187 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
10190 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10192 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
10193 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
10194 (native create): Add width and height parameters. Set text
10195 view's size request according to new parameters.
10196 (create): Calculate text view size based on current font's
10197 metrics and number of rows and columns. Set TextArea's font if
10198 not already set. Call native create.
10199 (getMinimumSize): Call minimumSize.
10200 (getPreferredSize): Call preferredSize.
10201 (getHScrollbarHeight): New method.
10202 (getVScrollbarWidth): New method.
10203 (minimumSize): Calculate minimum size based on scrollbar
10204 visibility, scrollbar sizes, font metrics and number of rows and
10206 (preferredSize): Likewise for preferred size.
10207 (gtkTextGetSize): Remove method.
10209 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
10211 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
10212 (initializeInsets): Remove method.
10213 (GtkComponentPeer): Initialize insets field. Remove call to
10215 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
10217 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
10219 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
10220 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
10221 (latestInsets): Remove field.
10222 (native create): Add insets parameter. Call
10223 window_get_frame_extents. Set the window's default size and
10224 size request based on its frame extents.
10225 (create): Initialize insets.
10226 (postInsetsChangedEvent): New method.
10227 (postConfigureEvent): Remove parameters top, left, bottom,
10228 right. Remove insets-related logic.
10229 (connectJObject): Handle property-notify-event.
10230 (window_get_frame_extents, request_frame_extents,
10231 property_notify_predicate, window_property_changed_cb): New
10233 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10234 (pre_event_handler): Remove insets-related logic for configure
10236 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
10237 Update postConfigureEvent signature.
10239 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10241 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
10242 to handle Window "Closing" events.
10244 2004-01-13?? David Jee?? <djee@redhat.com>
10246 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
10247 (setBackground): New method. Children with no explicitly-set
10248 background will be repainted with the parent container's new
10251 2004-01-13?? David Jee?? <djee@redhat.com>
10253 * Makefile.am: Add BitwiseXORComposite.java.
10254 * Makefile.in: Regenerated.
10255 * gcj/Makefile.in: Regenerated.
10256 * include/Makefile.in: Regenerated.
10257 * testsuite/Makefile.in: Regenerated.
10259 2004-01-13 Fernando Nasser <fnasser@redhat.com>
10261 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
10262 (push): Make sure push is performed at the top of the thread stack.
10264 2004-01-12 Graydon Hoare <graydon@redhat.com>
10266 * gnu/java/awt/gtk/GdkGraphics2D.java
10267 (static): Check GtkToolkit before initializing static state.
10268 (Graphics2D): Don't construct transform with 0.5 unit offset.
10270 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10272 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
10273 not show modal dialogs twice and so that it allows showing a modal
10274 dialog from another modal dialog.
10276 2004-01-12 Fernando Nasser <fnasser@redhat.com>
10278 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
10279 and run secondary dispatch thread to process event queue while this
10282 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
10284 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
10286 2004-01-11 Michael Koch <konqueror@gmx.de>
10288 * gnu/java/lang/reflect/TypeSignature.java
10289 (getEncodingOfClass): Documentation fixed.
10290 (getClassForEncoding): Give class loader to Class.forName().
10291 Documentation fixed.
10293 2004-01-11 Michael Koch <konqueror@gmx.de>
10295 * javax/swing/undo/StateEditable.java
10296 (RCSID): Removed redundant modifiers.
10298 2004-01-10 Michael Koch <konqueror@gmx.de>
10300 * javax/swing/JRadioButtonMenuItem.java,
10301 javax/swing/JSeparator.java,
10302 javax/swing/JSplitPane.java,
10303 javax/swing/JTextPane.java,
10304 javax/swing/JToolBar.java,
10305 javax/swing/ListCellRenderer.java,
10306 javax/swing/ListModel.java,
10307 javax/swing/MenuElement.java,
10308 javax/swing/OverlayLayout.java,
10309 javax/swing/ProgressMonitor.java,
10310 javax/swing/ProgressMonitorInputStream.java,
10311 javax/swing/Renderer.java,
10312 javax/swing/RootPaneContainer.java,
10313 javax/swing/Scrollable.java,
10314 javax/swing/SingleSelectionModel.java,
10315 javax/swing/ToolTipManager.java,
10316 javax/swing/ViewportLayout.java,
10317 javax/swing/event/DocumentEvent.java,
10318 javax/swing/event/SwingPropertyChangeSupport.java,
10319 javax/swing/event/TreeSelectionEvent.java,
10320 javax/swing/event/UndoableEditEvent.java,
10321 javax/swing/text/AbstractDocument.java,
10322 javax/swing/text/AttributeSet.java,
10323 javax/swing/text/Caret.java,
10324 javax/swing/text/ComponentView.java,
10325 javax/swing/text/DefaultCaret.java,
10326 javax/swing/text/DefaultEditorKit.java,
10327 javax/swing/text/Document.java,
10328 javax/swing/text/EditorKit.java,
10329 javax/swing/text/GapContent.java,
10330 javax/swing/text/Keymap.java,
10331 javax/swing/text/MutableAttributeSet.java,
10332 javax/swing/text/PlainEditorKit.java,
10333 javax/swing/text/Segment.java,
10334 javax/swing/text/Style.java,
10335 javax/swing/text/StyledDocument.java,
10336 javax/swing/text/StyledEditorKit.java,
10337 javax/swing/text/TextAction.java,
10338 javax/swing/text/View.java: Fixed import statements.
10340 2004-01-10 Michael Koch <konqueror@gmx.de>
10342 * javax/print/attribute/EnumSyntax.java
10343 (getStringTable): Made protected.
10344 (getEnumValueTable): Likewise.
10345 * javax/print/attribute/standard/JobKOctetsProcessed.java
10346 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
10347 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
10348 (JobMediaSheetsCompleted): Made class final.
10349 * javax/print/attribute/standard/OutputDeviceAssigned.java
10350 (getName): Fixed typo.
10351 * javax/print/attribute/standard/RequestingUserName.java
10352 (serialVersionUID): Fixed value.
10354 2004-01-10 Michael Koch <konqueror@gmx.de>
10356 * gnu/java/awt/image/ImageDecoder.java
10357 (produce): Made public.
10358 * gnu/java/awt/peer/GLightweightPeer.java,
10359 gnu/java/awt/peer/gtk/GtkToolkit.java:
10362 2004-01-10 Michael Koch <konqueror@gmx.de>
10364 * javax/swing/plaf/basic/BasicButtonUI.java,
10365 javax/swing/plaf/basic/BasicCheckBoxUI.java,
10366 javax/swing/plaf/basic/BasicListUI.java,
10367 javax/swing/plaf/basic/BasicOptionPaneUI.java,
10368 javax/swing/plaf/basic/BasicPanelUI.java,
10369 javax/swing/plaf/basic/BasicRadioButtonUI.java,
10370 javax/swing/plaf/basic/BasicScrollPaneUI.java,
10371 javax/swing/plaf/basic/BasicToggleButtonUI.java,
10372 javax/swing/plaf/basic/BasicViewportUI.java:
10373 Fixed import statements.
10375 2004-01-09 Michael Koch <konqueror@gmx.de>
10377 * java/awt/geom/PathIterator.java
10378 (WIND_EVEN_ODD): Removed redundant modifiers.
10379 (WIND_NON_ZERO): Likewise.
10380 (SEG_MOVETO): Likewise.
10381 (SEG_LINETO): Likewise.
10382 (SEG_QUADTO): Likewise.
10383 (SEG_CUBICTO): Likewise.
10384 (SEG_CLOSE): Likewise.
10385 * java/awt/image/SinglePixelPackedSampleModel.java:
10386 Removed redundant semicolon.
10387 * java/io/ObjectInputStream.java
10388 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
10389 * java/util/logging/Filter.java
10390 (isLoggable): Removed redundant modifier.
10391 * java/util/logging/LogManager.java:
10392 Removed redundant semicolon.
10393 * java/util/logging/XMLFormatter.java
10394 (format): Removed unused variable "key".
10396 2004-01-09 Michael Koch <konqueror@gmx.de>
10398 * gnu/java/lang/ArrayHelper.java
10399 (equalsArray): Removed.
10401 2004-01-09 Michael Koch <konqueror@gmx.de>
10403 * javax/print/attribute/standard/DocumentName.java,
10404 javax/print/attribute/standard/JobHoldUntil.java,
10405 javax/print/attribute/standard/JobMessageFromOperator.java,
10406 javax/print/attribute/standard/JobName.java,
10407 javax/print/attribute/standard/JobOriginatingUserName.java,
10408 javax/print/attribute/standard/OutputDeviceAssigned.java,
10409 javax/print/attribute/standard/PrinterInfo.java,
10410 javax/print/attribute/standard/PrinterLocation.java,
10411 javax/print/attribute/standard/PrinterMakeAndModel.java,
10412 javax/print/attribute/standard/PrinterMessageFromOperator.java,
10413 javax/print/attribute/standard/PrinterName.java,
10414 javax/print/attribute/standard/RequestingUserName.java: New files.
10415 * Makefile.am (javax_source_files): Added new files.
10416 * Makefile.in: Regenerated.
10418 2004-01-09 Michael Koch <konqueror@gmx.de>
10420 * javax/swing/AbstractAction.java,
10421 javax/swing/AbstractSet.java,
10422 javax/swing/Action.java,
10423 javax/swing/ActionMap.java,
10424 javax/swing/BoundedRangeModel.java,
10425 javax/swing/ButtonModel.java,
10426 javax/swing/CellEditor.java,
10427 javax/swing/CellRendererPane.java,
10428 javax/swing/ComboBoxEditor.java,
10429 javax/swing/DebugGraphics.java,
10430 javax/swing/DefaultCellEditor.java,
10431 javax/swing/DefaultCellRenderer.java,
10432 javax/swing/DefaultComboBoxModel.java,
10433 javax/swing/DefaultDesktopManager.java,
10434 javax/swing/DefaultFocusManager.java,
10435 javax/swing/DefaultListCellRenderer.java,
10436 javax/swing/Icon.java,
10437 javax/swing/JButton.java,
10438 javax/swing/JCheckBoxMenuItem.java,
10439 javax/swing/JDesktopPane.java,
10440 javax/swing/JEditorPane.java,
10441 javax/swing/JMenu.java,
10442 javax/swing/JPanel.java,
10443 javax/swing/JPasswordField.java,
10444 javax/swing/JPopupMenu.java,
10445 javax/swing/JProgressBar.java: Reworked imports.
10447 2004-01-09 Andrew Haley <aph@redhat.com>
10449 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
10450 a Utf8Const field before looking at its class.
10452 2004-01-08 Michael Koch <konqueror@gmx.de>
10454 * javax/swing/JLayeredPane.java: Revert changes to standard
10455 boilerplate, reworked imports.
10457 2004-01-08 Graydon Hoare <graydon@redhat.com>
10459 * javax/swing/JLayeredPane.java: Rewrite to accomodate
10460 djee@redhat.com's recent inverse ordering of Container elements.
10462 2004-01-08 Fernando Nasser <fnasser@redhat.com>
10464 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
10465 New name for the former setFile native method.
10466 (setFile): New method.
10467 (setDirectory): Implemented.
10468 (connectSignals): New native method.
10469 (setFilenameFilter): Improve comment.
10470 (getGraphics): Comment.
10471 (gtkHideFileDialog): New method.
10472 (gtkDisposeFileDialog): New method.
10473 (gtkSetFilename): New method.
10474 * java/awt/Dialog.java (show): Block on modal dialogs, but only
10475 for FileDialog for now.
10476 (hide): New method.
10477 (dispose): New method.
10478 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
10479 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
10480 deprecated creation functions. Make dialog modal. Add it to the
10482 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
10484 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
10486 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
10488 (window_closed): New function.
10489 (ok_clicked): New function.
10490 (cancel_clicked): New function.
10492 2004-01-07 Tom Tromey <tromey@redhat.com>
10495 * verify.cc (state::merge): Copy changed locals out of subroutine
10497 (state::FLAG_CHANGED): New const.
10498 (state::FLAG_UNUSED): Likewise.
10499 (state::local_changed): Removed. Updated all users.
10500 (state::flags): New field.
10501 (state::merge): Added jsr_semantics argument, more logic.
10502 (push_jump_merge): Added jsr_semantics argument.
10503 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
10504 merging through the jsr instruction.
10506 2004-01-07 Tom Tromey <tromey@redhat.com>
10508 * scripts/MakeDefaultMimeTypes.java: Use \n, not
10511 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
10513 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
10514 (changeEvent): Create event object on demand.
10515 (DefaultBoundedRangeModel, toString, setValue, setExtent,
10516 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
10517 fireStateChanged): Re-written.
10518 * javax/swing/event/EventListenerList.java: Reformatted, document
10520 (toString): Implemented.
10521 (getListeners): Re-written.
10522 (remove): Re-written.
10524 (NO_LISTENERS): New singleton field.
10525 (listenerList): Declare as transient; document.
10526 (serialVersionUID): Document.
10527 (getListenerCount(Class)): More efficient implementation,
10528 also accepts null argument. Improve Javadoc.
10529 (getListenerCount()): Remove unnecessary cast; docfix.
10530 * javax/swing/undo/UndoableEditSupport.java:
10531 Re-format, document.
10532 (UndoableEditSupport): Set realSource field. Improve documentation.
10533 (_postEdit): Iterate over cloned listener vector.
10534 (toString): Don't emit realSource.
10535 (beginUpdate, endUpdate): Support nested updates.
10536 (postEdit): Use compound edit if present.
10538 2004-01-07 Michael Koch <konqueror@gmx.de>
10540 * java/text/CollationElementIterator.java
10541 (textIndex): Renamed from index.
10542 * java/text/CollationKey.java
10543 (collator): New member.
10544 (CollationKey): New argument for parent collator.
10545 (equals): Check for same collator, source string and key array.
10546 * java/text/RuleBasedCollator.java:
10548 (RuleBasedCollator): Don't re-initialize frenchAccents with default
10550 (getCollationElementIterator): Rewritten.
10551 (getCollationKey): Added new argument to CollationKey constructor.
10553 2004-01-07 Michael Koch <konqueror@gmx.de>
10555 * java/lang/reflect/Array.java: Merged documentation with classpath.
10557 2004-01-07 Michael Koch <konqueror@gmx.de>
10559 * java/net/ServerSocket.java (isBound): Fixed documentation.
10561 2004-01-07 Michael Koch <konqueror@gmx.de>
10563 * gnu/java/nio/DatagramChannelImpl.java
10564 (blocking): Removed.
10565 (DatagramChannelImpl): Call configureBlocking().
10566 (implConfigureBlocking): Dont initialize blocking.
10567 * gnu/java/nio/ServerSocketChannelImpl.java
10568 (blocking): Removed.
10569 (ServerSocketChannelImpl): Call configureBlocking().
10570 (implConfigureBlocking): Dont initialize blocking.
10571 * gnu/java/nio/SocketChannelImpl.java
10572 (blocking): Removed.
10573 (SocketChannelImpl): Call configureBlocking().
10574 (implConfigureBlocking): Dont initialize blocking.
10575 (connect): Use isBlocking().
10576 * java/nio/channels/spi/AbstractSelectableChannel.java
10577 (configureBlocking): Use blockingLock() instead of LOCK.
10578 Set blocking after successfully called implConfigureBlocking().
10579 (register): Use blockingLock() instead of LOCK.
10581 2004-01-07 Graydon Hoare <graydon@redhat.com>
10583 * java/awt/Container.java (LightweightDispatcher): Implement.
10584 (visitChild): Reuse graphics object.
10585 (dispatchEventImpl): Optionally dispatch to lightweight.
10586 (addNotifyContainerChildren): Build LightweightDispatcher.
10588 2004-01-07 David Jee <djee@redhat.com>
10590 * java/awt/Container.java
10591 (update): Clear only the clipped region, instead of clearing the
10593 (visitChildren): Visit children in descending order.
10595 2004-01-06 Michael Koch <konqueror@gmx.de>
10597 * gnu/java/net/protocol/file/Connection.java:
10598 Reformated copyright.
10599 (hdrHash): Removed.
10601 (gotHeaders): Removed.
10602 (getHeaderField): Removed.
10603 (getHeaderField): Removed.
10604 (getHeaderFieldKey): Removed.
10606 (getField): Removed.
10607 (getHeaders): Removed.
10609 2004-01-06 Michael Koch <konqueror@gmx.de>
10611 * java/net/URLConnection.java
10612 (contentHandler): Removed.
10614 (getHeaderFields): Return an empty map instead of null.
10615 (getContent): Connect if needed, renamed "cType" to "type" and
10616 "contentHandler" to "ch" and made it a local variable.
10617 (getPermission): Don't use package in class name.
10618 (setDefaultRequestProperty): Fixed typo in documentation.
10619 (initializeDateFormats): Made locale a local variable.
10621 2004-01-06 Michael Koch <konqueror@gmx.de>
10623 * java/text/CollationElementIterator.java: Reformated.
10624 (CollationElementIterator): Changed order of arguments.
10625 * java/text/RuleBasedCollator.java
10626 (RuleBasedCollator): Merged class documentation.
10627 (CollationElement): Added documentation.
10628 (compare): Reformated, renamed arguments.
10629 (equals): Likewise.
10630 (getCollationElementIterator): Likewise.
10631 (getCollationKey): Likewise.
10633 2004-01-06 Michael Koch <konqueror@gmx.de>
10635 * java/lang/Package.java
10636 (getPackage): Get the current class loader directly.
10637 * java/lang/SecurityManager.java
10638 (currentLoadedClass): Dont iterate over class contexts.
10639 (classLoaderDepth): Don't check class loaders if everything is allowed.
10641 2004-01-06 Michael Koch <konqueror@gmx.de>
10643 * javax/print/attribute/standard/DateTimeAtCompleted.java,
10644 javax/print/attribute/standard/DateTimeAtCreation.java,
10645 javax/print/attribute/standard/DateTimeAtProcessing.java,
10646 javax/print/attribute/standard/JobImpressionsCompleted.java,
10647 javax/print/attribute/standard/JobKOctets.java,
10648 javax/print/attribute/standard/JobKOctetsProcessed.java,
10649 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
10650 javax/print/attribute/standard/JobPrioritySupported.java: New files.
10651 * Makefile.am (javax_source_files): Added new files.
10652 * Makefile.in: Regenerated.
10654 2004-01-06 Graydon Hoare <graydon@redhat.com>
10656 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
10658 2004-01-06 Graydon Hoare <graydon@redhat.com>
10660 * java/awt/Container.java (swapComponents): Add forgotten
10661 function, required for JLayeredPane change.
10663 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10665 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
10666 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
10667 (getPreferredSize): Call preferredSize.
10668 (preferredSize): Call gtkWidgetGetPreferredDimensions.
10669 (getMinimumSize): Call minimumSize.
10670 (minimumSize): Call gtkWidgetGetPreferredDimensions.
10671 (gtkWidgetGetDimensions): Return the peer widget's current size
10673 (gtkWidgetGetPreferredDimensions): Return the peer widget's
10674 natural size request.
10676 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
10678 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
10679 (pre_event_handler): Set all insets to 0 when a Configure event
10680 is received for a GtkPlug.
10681 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
10682 Make handle long, not int.
10683 (EmbeddedWindow()): New constructor.
10684 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
10686 (setHandle): New method.
10687 (getHandle): Return long, not int.
10688 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
10690 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
10691 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
10692 (create(long)): Take long parameter, not int. Cast gtk_plug_new
10693 argument to GdkNativeWindow.
10694 (construct): New method.
10695 (embed): New method.
10697 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
10698 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
10699 (create(int, int)): New method.
10700 (create): Call new create method.
10701 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
10703 (childResized): Remove native implementation. Implement in
10705 (getHScrollbarHeight, getVScrollbarWidth): Call
10706 gtk_widget_size_request to get scrollbar dimensions.
10707 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
10708 call getVScrollbarWidth and getHScrollbarHeight when vertical
10709 and horizontal scrollbars respectively are needed.
10710 (doLayout): Enlarge child if it is smaller than the viewport.
10712 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
10714 Thanks to Brian Gough <bjg@network-theory.com>
10715 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
10716 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
10718 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10720 * java/awt/Dialog.java (constructor): Accept null title as per spec.
10721 * java/awt/FileDialog.java (constructor): Throw exception on invalid
10722 argument as per spec.
10724 2004-01-05 Fernando Nasser <fnasser@redhat.com>
10726 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
10728 (remove): Ditto. Also, Check for valid argument.
10729 (removeAll): Use peer interface method.
10730 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
10731 native add function.
10732 (nativeRemove): New name for native remove function.
10733 (getHistory): New native function.
10734 (constructor): Generate ItemEvent.
10735 (add): Ditto, if selection is changed.
10736 (remove): Ditto, ditto.
10737 (removeAll): Add implementation.
10738 (handleEvent): Remove. Dead code.
10739 (choicePostItemEvent): Add comment.
10740 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
10741 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
10742 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
10743 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
10744 comments and fix condition to change selection.
10745 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
10746 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
10747 remove all capability.
10748 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
10749 (item_activate): Add cast to remove compiler warning.
10751 2004-01-04 Matthias Klose <doko@debian.org>
10753 * aclocal.m4: Rebuilt using "aclocal -I .".
10754 * configure: Rebuilt.
10756 2004-01-03 Per Bothner <per@bothner.com>
10758 * java/util/Date.java (parse): Fix a number of problems.
10759 (skipParens): Remove no-longer-needed method.
10761 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
10763 * gnu/java/awt/BitwiseXORComposite.java: Add.
10764 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
10765 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
10766 (BitwiseXORComposite): Remove inner class.