AbstractAction.java, [...]: New versions from classpath.
authorMichael Koch <konqueror@gmx.de>
Wed, 11 Jun 2003 13:20:41 +0000 (13:20 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 11 Jun 2003 13:20:41 +0000 (13:20 +0000)
2003-06-11  Michael Koch  <konqueror@gmx.de>

* javax/swing/AbstractAction.java,
javax/swing/AbstractButton.java,
javax/swing/AbstractCellEditor.java,
javax/swing/AbstractListModel.java,
javax/swing/BorderFactory.java,
javax/swing/Box.java,
javax/swing/BoxLayout.java,
javax/swing/ButtonGroup.java,
javax/swing/DefaultButtonModel.java,
javax/swing/DefaultListModel.java,
javax/swing/DefaultListSelectionModel.java,
javax/swing/FocusManager.java,
javax/swing/ImageIcon.java,
javax/swing/InputMap.java,
javax/swing/JApplet.java,
javax/swing/JButton.java,
javax/swing/JCheckBox.java,
javax/swing/JCheckBoxMenuItem.java,
javax/swing/JColorChooser.java,
javax/swing/JComboBox.java,
javax/swing/JComponent.java,
javax/swing/JDesktopPane.java,
javax/swing/JDialog.java,
javax/swing/JEditorPane.java,
javax/swing/JFileChooser.java,
javax/swing/JFormattedTextField.java,
javax/swing/JFrame.java,
javax/swing/JLabel.java,
javax/swing/JLayeredPane.java,
javax/swing/JList.java,
javax/swing/JMenuBar.java,
javax/swing/JMenuItem.java,
javax/swing/JOptionPane.java,
javax/swing/JPanel.java,
javax/swing/JPasswordField.java,
javax/swing/JPopupMenu.java,
javax/swing/JProgressBar.java,
javax/swing/JRadioButton.java,
javax/swing/JRadioButtonMenuItem.java,
javax/swing/JRootPane.java,
javax/swing/JScrollBar.java,
javax/swing/JScrollPane.java,
javax/swing/JSeparator.java,
javax/swing/JSlider.java,
javax/swing/JTabbedPane.java,
javax/swing/JTable.java,
javax/swing/JTextField.java,
javax/swing/JToggleButton.java,
javax/swing/JToolBar.java,
javax/swing/JToolTip.java,
javax/swing/JTree.java,
javax/swing/JViewport.java,
javax/swing/JWindow.java,
javax/swing/KeyStroke.java,
javax/swing/ListSelectionModel.java,
javax/swing/LookAndFeel.java,
javax/swing/RepaintManager.java,
javax/swing/ScrollPaneLayout.java,
javax/swing/SizeRequirements.java,
javax/swing/SwingConstants.java,
javax/swing/Timer.java,
javax/swing/UIDefaults.java,
javax/swing/UIManager.java,
javax/swing/border/AbstractBorder.java,
javax/swing/border/CompoundBorder.java,
javax/swing/colorchooser/AbstractColorChooserPanel.java,
javax/swing/colorchooser/ColorChooserComponentFactory.java,
javax/swing/colorchooser/ColorSelectionModel.java,
javax/swing/colorchooser/DefaultColorSelectionModel.java,
javax/swing/event/AncestorEvent.java,
javax/swing/event/HyperlinkEvent.java,
javax/swing/event/InternalFrameAdapter.java,
javax/swing/event/InternalFrameEvent.java,
javax/swing/event/ListDataEvent.java,
javax/swing/event/MouseInputAdapter.java,
javax/swing/event/SwingPropertyChangeSupport.java,
javax/swing/event/TableModelEvent.java,
javax/swing/event/TreeWillExpandListener.java,
javax/swing/event/UndoableEditEvent.java,
javax/swing/filechooser/FileFilter.java,
javax/swing/filechooser/FileSystemView.java,
javax/swing/filechooser/FileView.java,
javax/swing/plaf/BorderUIResource.java,
javax/swing/plaf/basic/BasicDefaults.java,
javax/swing/table/AbstractTableModel.java,
javax/swing/table/DefaultTableCellRenderer.java,
javax/swing/table/DefaultTableColumnModel.java,
javax/swing/table/DefaultTableModel.java,
javax/swing/table/TableColumn.java,
javax/swing/text/JTextComponent.java,
javax/swing/tree/AbstractLayoutCache.java,
javax/swing/tree/DefaultMutableTreeNode.java,
javax/swing/tree/DefaultTreeCellEditor.java,
javax/swing/tree/DefaultTreeCellRenderer.java,
javax/swing/tree/DefaultTreeModel.java,
javax/swing/tree/DefaultTreeSelectionModel.java,
javax/swing/tree/FixedHeightLayoutCache.java,
javax/swing/tree/TreeCellEditor.java,
javax/swing/tree/TreeModel.java,
javax/swing/tree/TreeNode.java,
javax/swing/tree/TreePath.java,
javax/swing/tree/TreeSelectionModel.java,
javax/swing/tree/VariableHeightLayoutCache.java,
javax/swing/undo/AbstractUndoableEdit.java,
javax/swing/undo/CompoundEdit.java,
javax/swing/undo/StateEdit.java,
javax/swing/undo/UndoManager.java,
javax/swing/undo/UndoableEditSupport.java:
New versions from classpath.
* javax/swing/table/JTableHeader.java:
New file from classpath.
* Makefile.am
(java_awt_sources): Added javax/swing/table/JTableHeader.java.
* Makefile.in: Regenerated.

From-SVN: r67769

109 files changed:
libjava/ChangeLog
libjava/javax/swing/AbstractAction.java
libjava/javax/swing/AbstractButton.java
libjava/javax/swing/AbstractCellEditor.java
libjava/javax/swing/AbstractListModel.java
libjava/javax/swing/BorderFactory.java
libjava/javax/swing/Box.java
libjava/javax/swing/BoxLayout.java
libjava/javax/swing/ButtonGroup.java
libjava/javax/swing/DefaultButtonModel.java
libjava/javax/swing/DefaultListModel.java
libjava/javax/swing/DefaultListSelectionModel.java
libjava/javax/swing/FocusManager.java
libjava/javax/swing/ImageIcon.java
libjava/javax/swing/InputMap.java
libjava/javax/swing/JApplet.java
libjava/javax/swing/JButton.java
libjava/javax/swing/JCheckBox.java
libjava/javax/swing/JCheckBoxMenuItem.java
libjava/javax/swing/JColorChooser.java
libjava/javax/swing/JComboBox.java
libjava/javax/swing/JComponent.java
libjava/javax/swing/JDesktopPane.java
libjava/javax/swing/JDialog.java
libjava/javax/swing/JEditorPane.java
libjava/javax/swing/JFileChooser.java
libjava/javax/swing/JFormattedTextField.java
libjava/javax/swing/JFrame.java
libjava/javax/swing/JLabel.java
libjava/javax/swing/JLayeredPane.java
libjava/javax/swing/JList.java
libjava/javax/swing/JMenuBar.java
libjava/javax/swing/JMenuItem.java
libjava/javax/swing/JOptionPane.java
libjava/javax/swing/JPanel.java
libjava/javax/swing/JPasswordField.java
libjava/javax/swing/JPopupMenu.java
libjava/javax/swing/JProgressBar.java
libjava/javax/swing/JRadioButton.java
libjava/javax/swing/JRadioButtonMenuItem.java
libjava/javax/swing/JRootPane.java
libjava/javax/swing/JScrollBar.java
libjava/javax/swing/JScrollPane.java
libjava/javax/swing/JSeparator.java
libjava/javax/swing/JSlider.java
libjava/javax/swing/JTabbedPane.java
libjava/javax/swing/JTable.java
libjava/javax/swing/JTextField.java
libjava/javax/swing/JToggleButton.java
libjava/javax/swing/JToolBar.java
libjava/javax/swing/JToolTip.java
libjava/javax/swing/JTree.java
libjava/javax/swing/JViewport.java
libjava/javax/swing/JWindow.java
libjava/javax/swing/KeyStroke.java
libjava/javax/swing/ListSelectionModel.java
libjava/javax/swing/LookAndFeel.java
libjava/javax/swing/RepaintManager.java
libjava/javax/swing/ScrollPaneLayout.java
libjava/javax/swing/SizeRequirements.java
libjava/javax/swing/SwingConstants.java
libjava/javax/swing/Timer.java
libjava/javax/swing/UIDefaults.java
libjava/javax/swing/UIManager.java
libjava/javax/swing/border/AbstractBorder.java
libjava/javax/swing/border/CompoundBorder.java
libjava/javax/swing/colorchooser/AbstractColorChooserPanel.java
libjava/javax/swing/colorchooser/ColorChooserComponentFactory.java
libjava/javax/swing/colorchooser/ColorSelectionModel.java
libjava/javax/swing/colorchooser/DefaultColorSelectionModel.java
libjava/javax/swing/event/AncestorEvent.java
libjava/javax/swing/event/HyperlinkEvent.java
libjava/javax/swing/event/InternalFrameAdapter.java
libjava/javax/swing/event/InternalFrameEvent.java
libjava/javax/swing/event/ListDataEvent.java
libjava/javax/swing/event/MouseInputAdapter.java
libjava/javax/swing/event/SwingPropertyChangeSupport.java
libjava/javax/swing/event/TableModelEvent.java
libjava/javax/swing/event/TreeWillExpandListener.java
libjava/javax/swing/event/UndoableEditEvent.java
libjava/javax/swing/filechooser/FileFilter.java
libjava/javax/swing/filechooser/FileSystemView.java
libjava/javax/swing/filechooser/FileView.java
libjava/javax/swing/plaf/BorderUIResource.java
libjava/javax/swing/plaf/basic/BasicDefaults.java
libjava/javax/swing/table/AbstractTableModel.java
libjava/javax/swing/table/DefaultTableCellRenderer.java
libjava/javax/swing/table/DefaultTableColumnModel.java
libjava/javax/swing/table/DefaultTableModel.java
libjava/javax/swing/table/TableColumn.java
libjava/javax/swing/text/JTextComponent.java
libjava/javax/swing/tree/AbstractLayoutCache.java
libjava/javax/swing/tree/DefaultMutableTreeNode.java
libjava/javax/swing/tree/DefaultTreeCellEditor.java
libjava/javax/swing/tree/DefaultTreeCellRenderer.java
libjava/javax/swing/tree/DefaultTreeModel.java
libjava/javax/swing/tree/DefaultTreeSelectionModel.java
libjava/javax/swing/tree/FixedHeightLayoutCache.java
libjava/javax/swing/tree/TreeCellEditor.java
libjava/javax/swing/tree/TreeModel.java
libjava/javax/swing/tree/TreeNode.java
libjava/javax/swing/tree/TreePath.java
libjava/javax/swing/tree/TreeSelectionModel.java
libjava/javax/swing/tree/VariableHeightLayoutCache.java
libjava/javax/swing/undo/AbstractUndoableEdit.java
libjava/javax/swing/undo/CompoundEdit.java
libjava/javax/swing/undo/StateEdit.java
libjava/javax/swing/undo/UndoManager.java
libjava/javax/swing/undo/UndoableEditSupport.java

index 9b4af5b8fad467b5f7d23c47c7def142c36f76ad..242b5cd12faaca29bd693c0dbdec2235b5905f92 100644 (file)
@@ -1,3 +1,120 @@
+2003-06-11  Michael Koch  <konqueror@gmx.de>
+
+       * javax/swing/AbstractAction.java,
+       javax/swing/AbstractButton.java,
+       javax/swing/AbstractCellEditor.java,
+       javax/swing/AbstractListModel.java,
+       javax/swing/BorderFactory.java,
+       javax/swing/Box.java,
+       javax/swing/BoxLayout.java,
+       javax/swing/ButtonGroup.java,
+       javax/swing/DefaultButtonModel.java,
+       javax/swing/DefaultListModel.java,
+       javax/swing/DefaultListSelectionModel.java,
+       javax/swing/FocusManager.java,
+       javax/swing/ImageIcon.java,
+       javax/swing/InputMap.java,
+       javax/swing/JApplet.java,
+       javax/swing/JButton.java,
+       javax/swing/JCheckBox.java,
+       javax/swing/JCheckBoxMenuItem.java,
+       javax/swing/JColorChooser.java,
+       javax/swing/JComboBox.java,
+       javax/swing/JComponent.java,
+       javax/swing/JDesktopPane.java,
+       javax/swing/JDialog.java,
+       javax/swing/JEditorPane.java,
+       javax/swing/JFileChooser.java,
+       javax/swing/JFormattedTextField.java,
+       javax/swing/JFrame.java,
+       javax/swing/JLabel.java,
+       javax/swing/JLayeredPane.java,
+       javax/swing/JList.java,
+       javax/swing/JMenuBar.java,
+       javax/swing/JMenuItem.java,
+       javax/swing/JOptionPane.java,
+       javax/swing/JPanel.java,
+       javax/swing/JPasswordField.java,
+       javax/swing/JPopupMenu.java,
+       javax/swing/JProgressBar.java,
+       javax/swing/JRadioButton.java,
+       javax/swing/JRadioButtonMenuItem.java,
+       javax/swing/JRootPane.java,
+       javax/swing/JScrollBar.java,
+       javax/swing/JScrollPane.java,
+       javax/swing/JSeparator.java,
+       javax/swing/JSlider.java,
+       javax/swing/JTabbedPane.java,
+       javax/swing/JTable.java,
+       javax/swing/JTextField.java,
+       javax/swing/JToggleButton.java,
+       javax/swing/JToolBar.java,
+       javax/swing/JToolTip.java,
+       javax/swing/JTree.java,
+       javax/swing/JViewport.java,
+       javax/swing/JWindow.java,
+       javax/swing/KeyStroke.java,
+       javax/swing/ListSelectionModel.java,
+       javax/swing/LookAndFeel.java,
+       javax/swing/RepaintManager.java,
+       javax/swing/ScrollPaneLayout.java,
+       javax/swing/SizeRequirements.java,
+       javax/swing/SwingConstants.java,
+       javax/swing/Timer.java,
+       javax/swing/UIDefaults.java,
+       javax/swing/UIManager.java,
+       javax/swing/border/AbstractBorder.java,
+       javax/swing/border/CompoundBorder.java,
+       javax/swing/colorchooser/AbstractColorChooserPanel.java,
+       javax/swing/colorchooser/ColorChooserComponentFactory.java,
+       javax/swing/colorchooser/ColorSelectionModel.java,
+       javax/swing/colorchooser/DefaultColorSelectionModel.java,
+       javax/swing/event/AncestorEvent.java,
+       javax/swing/event/HyperlinkEvent.java,
+       javax/swing/event/InternalFrameAdapter.java,
+       javax/swing/event/InternalFrameEvent.java,
+       javax/swing/event/ListDataEvent.java,
+       javax/swing/event/MouseInputAdapter.java,
+       javax/swing/event/SwingPropertyChangeSupport.java,
+       javax/swing/event/TableModelEvent.java,
+       javax/swing/event/TreeWillExpandListener.java,
+       javax/swing/event/UndoableEditEvent.java,
+       javax/swing/filechooser/FileFilter.java,
+       javax/swing/filechooser/FileSystemView.java,
+       javax/swing/filechooser/FileView.java,
+       javax/swing/plaf/BorderUIResource.java,
+       javax/swing/plaf/basic/BasicDefaults.java,
+       javax/swing/table/AbstractTableModel.java,
+       javax/swing/table/DefaultTableCellRenderer.java,
+       javax/swing/table/DefaultTableColumnModel.java,
+       javax/swing/table/DefaultTableModel.java,
+       javax/swing/table/TableColumn.java,
+       javax/swing/text/JTextComponent.java,
+       javax/swing/tree/AbstractLayoutCache.java,
+       javax/swing/tree/DefaultMutableTreeNode.java,
+       javax/swing/tree/DefaultTreeCellEditor.java,
+       javax/swing/tree/DefaultTreeCellRenderer.java,
+       javax/swing/tree/DefaultTreeModel.java,
+       javax/swing/tree/DefaultTreeSelectionModel.java,
+       javax/swing/tree/FixedHeightLayoutCache.java,
+       javax/swing/tree/TreeCellEditor.java,
+       javax/swing/tree/TreeModel.java,
+       javax/swing/tree/TreeNode.java,
+       javax/swing/tree/TreePath.java,
+       javax/swing/tree/TreeSelectionModel.java,
+       javax/swing/tree/VariableHeightLayoutCache.java,
+       javax/swing/undo/AbstractUndoableEdit.java,
+       javax/swing/undo/CompoundEdit.java,
+       javax/swing/undo/StateEdit.java,
+       javax/swing/undo/UndoManager.java,
+       javax/swing/undo/UndoableEditSupport.java:
+       New versions from classpath.
+       * javax/swing/table/JTableHeader.java:
+       New file from classpath.
+       * Makefile.am
+       (java_awt_sources): Added javax/swing/table/JTableHeader.java.
+       * Makefile.in: Regenerated.
+
 2003-06-11  Michael Koch  <konqueror@gmx.de>
 
        * java/nio/MappedByteBuffer.java,
index cf9308d0685b59349adf970d3cc21ffb8e4d4bc1..7ba652b926a2117dbeb1aaf328189a5d19f4884f 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
 import java.awt.event.*;
 import java.beans.*;
 import java.io.*;
@@ -207,12 +207,4 @@ public abstract class AbstractAction
        public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {
                changeSupport.removePropertyChangeListener(listener);
        } // removePropertyChangeListener()
-
-       /**
-        * actionPerformed
-        * @param event TODO
-        */
-       public abstract void actionPerformed(ActionEvent event);
-
-
-} // AbstractAction
+}
index b675d808a423ce5c72248cea7750a1418a52e7a3..951650dbdbd45e4feb1e0573da07b1a39f88e1fa 100644 (file)
@@ -35,18 +35,33 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.awt.*;
-import java.awt.event.*;
 
-import javax.swing.event.*;
-import javax.swing.plaf.*;
-import javax.swing.text.*;
-import javax.accessibility.*;
+package javax.swing;
 
-import java.util.*;
-import java.beans.*;
+import java.awt.Graphics;
+import java.awt.Image;
+import java.awt.Insets;
+import java.awt.ItemSelectable;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+import java.awt.event.MouseEvent;
+import java.beans.PropertyChangeListener;
+import javax.accessibility.AccessibleAction;
+import javax.accessibility.AccessibleIcon;
+import javax.accessibility.AccessibleStateSet;
+import javax.accessibility.AccessibleRelationSet;
+import javax.accessibility.AccessibleText;
+import javax.accessibility.AccessibleValue;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.plaf.ButtonUI;
+import javax.swing.text.AttributeSet;
 
 /**
  * Provides basic button functionality
@@ -54,7 +69,7 @@ import java.beans.*;
  * @author Ronald Veldema (rveldema@cs.vu.nl)
  */
 public abstract class AbstractButton extends JComponent
-                       implements ItemSelectable, SwingConstants
+  implements ItemSelectable, SwingConstants
 {
        Icon default_icon, pressed_button, disabled_button,
        selected_button, disabled_selected_button, current_icon;
index e25e97b18b37df11a8c12a2b20f8a6a37ae2b4cb..026ab30f8047feb8dbe766a5cf0b3da7b9b19322 100644 (file)
@@ -35,12 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.io.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.io.Serializable;
+import java.util.EventObject;
+import javax.swing.event.CellEditorListener;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.EventListenerList;
 
 /**
  * AbstractCellEditor
index 4e227b4dda7f7139ab1c86da86548b61eb4c2e6b..da85a4def9524d3a727fd9a5e60bb78b27f61476 100644 (file)
@@ -189,17 +189,4 @@ public abstract class AbstractListModel
   {
     return (ListDataListener[]) getListeners (ListDataListener.class);
   }
-
-  /**
-   * getElementAt
-   * @param index TODO
-   * @returns Object
-   */
-  public abstract Object getElementAt (int index);
-
-  /**
-   * getSize
-   * @returns int
-   */
-  public abstract int getSize ();
 }
index 808144fdd7ad504c7c01fb5b9817661101fbcb72..1cc6cbf420d4ac879b86c9c6e55ad5be6311ada0 100644 (file)
@@ -38,332 +38,406 @@ exception statement from your version. */
 
 package javax.swing;
 
-import java.awt.*;
-import java.awt.font.*;
-import javax.swing.border.*;
-
+import java.awt.Color;
+import java.awt.Font;
+import javax.swing.border.BevelBorder;
+import javax.swing.border.Border;
+import javax.swing.border.CompoundBorder;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.EtchedBorder;
+import javax.swing.border.LineBorder;
+import javax.swing.border.MatteBorder;
+import javax.swing.border.TitledBorder;
 
 public class BorderFactory
 {
+  /**
+   * Creates a line border withe the specified color.
+   *
+   * @param color A color to use for the line.
+   *
+   * @return The Border object
+   */ 
   public static Border createLineBorder(Color color)
-  { /*
-    Creates a line border withe the specified color.
-
-    Parameters:
-    color - a Color to use for the lineReturns:
-    the Border object
-createLineBorder
-    */ 
-    return null;
- }
-
-public static Border createLineBorder(Color color,
-                                      int thickness)
-  { /*
-
-    Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color).
-
-    Parameters:
-    color - a Color to use for the linethickness - an int specifying the width in pixelsReturns:
-    the Border object
-createRaisedBevelBorder
-    */ 
+  {
     return null;
   }
 
+  /**
+   * Creates a line border withe the specified color and width. The width
+   * applies to all 4 sides of the border. To specify widths individually for
+   * the top, bottom, left, and right, use
+   * createMatteBorder(int,int,int,int,Color).
+   *
+   * @param color A color to use for the line.
+   * @param thickness An int specifying the width in pixels.
+   *
+   * @return The Border object
+   */ 
+  public static Border createLineBorder (Color color, int thickness)
+  {
+    return new LineBorder (color, thickness);
+  }
 
-public static Border createRaisedBevelBorder()
-  { /*
-
-    Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.)
-
-    Returns:
-    the Border object
-createLoweredBevelBorder
-
-    */ 
-    return null;
- }
-
-public static Border createLoweredBevelBorder()
-  { /*
-
-    Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.)
-
-    Returns:
-    the Border object
-createBevelBorder
-
-    */ 
-    return null;
- }
-
-public static Border createBevelBorder(int type)
-
-  { /*
-    Create a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.).
-
-    Parameters:
-    type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDReturns:
-    the Border object
-createBevelBorder
-
-    */ 
-    return null;
- }
-
-public static Border createBevelBorder(int type,
-                                       Color highlight,
-                                       Color shadow)
-  { /*
-
-    Create a beveled border of the specified type, using the specified highlighting and shadowing. The outer edge of the highlighted area uses a brighter shade of the highlight color. The inner edge of the shadow area uses a brighter shade of the shadaw color.
-
-    Parameters:
-    type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDhighlight - a Color object for highlightsshadow - a Color object for shadowsReturns:
-    the Border object
-createBevelBorder
-
-    */ 
-    return null;
- }
-
-public static Border createBevelBorder(int type,
-                                       Color highlightOuter,
-                                       Color highlightInner,
-                                       Color shadowOuter,
-                                       Color shadowInner)
-  { /*
-
-    Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.
-
-    Parameters:
-    type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDhighlightOuter - a Color object for the outer edge of the highlight areahighlightInner - a Color object for the inner edge of the highlight areashadowOuter - a Color object for the outer edge of the shadow areashadowInner - a Color object for the inner edge of the shadow areaReturns:
-    the Border object
-createEtchedBorder
-    */ 
-    return null;
- }
-
-
-public static Border createEtchedBorder()
-  { /*
-
-    Create a border with an "etched" look using the component's current background color for highlighting and shading.
-
-    Returns:
-    the Border object
-createEtchedBorder
-
-    */ 
-    return null;
- }
-
-public static Border createEtchedBorder(Color highlight,
-                                        Color shadow)
-  { /*
-
-    Create a border with an "etched" look using the specified highlighting and shading colors.
-
-    Parameters:
-    highlight - a Color object for the border highlightsshadow - a Color object for the border shadowsReturns:
-    the Border object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-  public static TitledBorder createTitledBorder(String title)
-  { /*
-    Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.
-
-    Parameters:
-    title - a String containing the text of the titleReturns:
-    the TitledBorder object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-  public static TitledBorder createTitledBorder(Border border)
-  { /*
-
-    Create a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and default justification (left) and using the default font, text color, and border determined by the current look and feel. (The Motif and Windows look and feels use an etched border; The Java look and feel use a gray border.)
-
-    Parameters:
-    border - the Border object to add the title toReturns:
-    the TitledBorder object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-public static TitledBorder createTitledBorder(Border border,
-                                              String title)
-  { /*
-
-    Add a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.
-
-    Parameters:
-    border - the Border object to add the title totitle - a String containing the text of the titleReturns:
-    the TitledBorder object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-public static TitledBorder createTitledBorder(Border border,
-                                              String title,
-                                              int titleJustification,
-                                              int titlePosition)
-  { /*
-
-    Add a title to an existing border, specifying the text of the title along with its positioning, using the default font and text color determined by the current look and feel.
-
-    Parameters:
-    border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).Returns:
-    the TitledBorder object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-public static TitledBorder createTitledBorder(Border border,
-                                              String title,
-                                              int titleJustification,
-                                              int titlePosition,
-                                              Font titleFont)
-  { /*
-
-    Add a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.
-
-    Parameters:
-    border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).titleFont - a Font object specifying the title fontReturns:
-    the TitledBorder object
-createTitledBorder
-
-    */ 
-    return null;
- }
-
-public static TitledBorder createTitledBorder(Border border,
-                                              String title,
-                                              int titleJustification,
-                                              int titlePosition,
-                                              Font titleFont,
-                                              Color titleColor)
-  { /*
-
-    Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.
-
-    Parameters:
-    border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).titleFont - a Font object specifying the title fonttitleColor - a Color object specifying the title colorReturns:
-    the TitledBorder object
-createEmptyBorder
-
-    */ 
-    return null;
- }
-
-public static Border createEmptyBorder()
-  { /*
-
-    Creates an empty border that takes up no space. (The width of the top, bottom, left, and right sides are all zero.)
-
-    Returns:
-    the Border object
-createEmptyBorder
-
-    */ 
-    return null;
- }
-
-public static Border createEmptyBorder(int top,
-                                       int left,
-                                       int bottom,
-                                       int right)
-  { /*
-
-    Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides.
+  /**
+   * Created a border with a raised beveled edge, using brighter shades of
+   * the component's current background color for highlighting, and darker
+   * shading for shadows. (In a raised border, highlights are on top and
+   * shadows are underneath.)
+   *
+   * @return The Border object
+   */ 
+  public static Border createRaisedBevelBorder ()
+  {
+    return new BevelBorder (BevelBorder.RAISED);
+  }
 
-    Parameters:
-    top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns:
-    the Border object
-createCompoundBorder
+  /**
+   * Created a border with a lowered beveled edge, using brighter shades of
+   * the component's current background color for highlighting, and darker
+   * shading for shadows. (In a lowered border, shadows are on top and
+   * highlights are underneath.)
+   *
+   * @return The Border object
+   */ 
+  public static Border createLoweredBevelBorder ()
+  {
+    return new BevelBorder (BevelBorder.LOWERED);
+  }
 
-    */ 
-    return null;
- }
+  /**
+   * Create a beveled border of the specified type, using brighter shades of
+   * the component's current background color for highlighting, and darker
+   * shading for shadows. (In a lowered border, shadows are on top and
+   * highlights are underneath.).
+   *
+   * @param type An int specifying either BevelBorder.LOWERED or
+   * BevelBorder.RAISED
+   *
+   * @Return The Border object
+   */ 
+  public static Border createBevelBorder (int type)
+  {
+    return new BevelBorder (type);
+  }
 
-public static CompoundBorder createCompoundBorder()
-  { /*
+  /**
+   * Create a beveled border of the specified type, using the specified
+   * highlighting and shadowing. The outer edge of the highlighted area uses
+   * a brighter shade of the highlight color. The inner edge of the shadow
+   * area uses a brighter shade of the shadaw color.
+   *
+   * @param type An int specifying either BevelBorder.LOWERED or
+   * BevelBorder.RAISED
+   * @param highlight A Color object for highlights
+   * @param shadow A Color object for shadows
+   *
+   * @return The Border object
+  */ 
+  public static Border createBevelBorder (int type, Color highlight,
+                                          Color shadow)
+  {
+    return new BevelBorder (type, highlight, shadow);
+  }
 
-    Create a compound border with a null inside edge and a null outside edge.
+  /**
+   * Create a beveled border of the specified type, using the specified colors
+   * for the inner and outer highlight and shadow areas.
+   *
+   * @param type An int specifying either BevelBorder.LOWERED or
+   * BevelBorder.RAISED
+   * @param highlightOuter A Color object for the outer edge of the
+   * highlight area
+   * @param highlightInner A Color object for the inner edge of the
+   * highlight area
+   * @param shadowOuter A Color object for the outer edge of the shadow area
+   * @param shadowInner A Color object for the inner edge of the shadow area
+   *
+   * @return The Border object
+   */ 
+  public static Border createBevelBorder (int type, Color highlightOuter,
+                                          Color highlightInner,
+                                          Color shadowOuter, Color shadowInner)
+  {
+    return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter,
+                           shadowInner);
+  }
 
-    Returns:
-    the CompoundBorder object
-createCompoundBorder
-    */ 
-    return null;
- }
+  /**
+   * Create a border with an "etched" look using the component's current
+   * background color for highlighting and shading.
+   *
+   * @return The Border object
+   */ 
+  public static Border createEtchedBorder ()
+  {
+    return new EtchedBorder ();
+  }
 
+  /**
+   * Create a border with an "etched" look using the component's current
+   * background color for highlighting and shading.
+   *
+   * @return The Border object
+   */ 
+  public static Border createEtchedBorder (int etchType)
+  {
+    return new EtchedBorder (etchType);
+  }
 
-public static CompoundBorder createCompoundBorder(Border outsideBorder,
-                                                  Border insideBorder)
-  { /*
+  /**
+   * Create a border with an "etched" look using the specified highlighting and
+   * shading colors.
+   *
+   * @param highlight A Color object for the border highlights
+   * @param shadow A Color object for the border shadows
+   *
+   * @return The Border object
+   */ 
+  public static Border createEtchedBorder (Color highlight, Color shadow)
+  {
+    return new EtchedBorder (highlight, shadow);
+  }
 
-    Create a compound border specifying the border objects to use for the outside and inside edges.
+  /**
+   * Create a border with an "etched" look using the specified highlighting and
+   * shading colors.
+   *
+   * @param highlight A Color object for the border highlights
+   * @param shadow A Color object for the border shadows
+   *
+   * @return The Border object
+   */ 
+  public static Border createEtchedBorder (int etchType, Color highlight,
+                                          Color shadow)
+  {
+    return new EtchedBorder (etchType, highlight, shadow);
+  }
 
-    Parameters:
-    outsideBorder - a Border object for the outer edge of the compound borderinsideBorder - a Border object for the inner edge of the compound borderReturns:
-    the CompoundBorder object
-createMatteBorder
-    */ 
-    return null;
- }
+  /**
+   * Create a new title border specifying the text of the title, using the
+   * default border (etched), using the default text position (sitting on the
+   * top line) and default justification (left) and using the default font and
+   * text color determined by the current look and feel.
+   *
+   * @param title A String containing the text of the title
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (String title)
+  {
+    return new TitledBorder (title);
+  }
 
+  /**
+   * Create a new title border with an empty title specifying the border
+   * object, using the default text position (sitting on the top line) and
+   * default justification (left) and using the default font, text color,
+   * and border determined by the current look and feel. (The Motif and Windows
+   * look and feels use an etched border; The Java look and feel use a
+   * gray border.)
+   *
+   * @param border The Border object to add the title to
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (Border border)
+  {
+    return new TitledBorder (border);
+  }
 
-public static MatteBorder createMatteBorder(int top,
-                                            int left,
-                                            int bottom,
-                                            int right,
-                                            Color color)
-  { /*
+  /**
+   * Add a title to an existing border, specifying the text of the title, using
+   * the default positioning (sitting on the top line) and default
+   * justification (left) and using the default font and text color determined
+   * by the current look and feel.
+   *
+   * @param order The Border object to add the title to
+   * @param title A String containing the text of the title
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (Border border, String title)
+  {
+    return new TitledBorder (border, title);
+  }
 
-    Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.)
+  /**
+   * Add a title to an existing border, specifying the text of the title along
+   * with its positioning, using the default font and text color determined by
+   * the current look and feel.
+   *
+   * @param border The Border object to add the title to
+   * @param title A String containing the text of the title
+   * @param titleJustification An int specifying the left/right position of
+   * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
+   * TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
+   * @param titlePosition An int specifying the vertical position of the text
+   * in relation to the border -- one of: TitledBorder.ABOVE_TOP,
+   * TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP,
+   * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
+   * line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (Border border, String title,
+                                                int titleJustification,
+                                                int titlePosition)
+  {
+    return new TitledBorder (border, title, titleJustification, titlePosition);
+  }
 
-    Parameters:
-    top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelscolor - a Color to use for the borderReturns:
-    the MatteBorder object
-createMatteBorder
+  /**
+   * Add a title to an existing border, specifying the text of the title along
+   * with its positioning and font, using the default text color determined by
+   * the current look and feel.
+   *
+   * @param border - the Border object to add the title to
+   * @param title - a String containing the text of the title
+   * @param titleJustification - an int specifying the left/right position of
+   * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
+   * TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
+   * @param titlePosition - an int specifying the vertical position of the
+   * text in relation to the border -- one of: TitledBorder.ABOVE_TOP,
+   * TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP,
+   * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
+   * line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
+   * @param titleFont - a Font object specifying the title font
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (Border border, String title,
+                                                 int titleJustification,
+                                                 int titlePosition,
+                                                 Font titleFont)
+  {
+    return new TitledBorder (border, title, titleJustification, titlePosition,
+                            titleFont);
+  }
 
-    */ 
-    return null;
- }
+  /**
+   * Add a title to an existing border, specifying the text of the title along
+   * with its positioning, font, and color.
+   *
+   * @param border - the Border object to add the title to
+   * @param title - a String containing the text of the title
+   * @param titleJustification - an int specifying the left/right position of
+   * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
+   * TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
+   * @param titlePosition - an int specifying the vertical position of the text
+   * in relation to the border -- one of: TitledBorder.ABOVE_TOP,
+   * TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP,
+   * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
+   * line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
+   * @param titleFont - a Font object specifying the title font
+   * @param titleColor - a Color object specifying the title color
+   *
+   * @return The TitledBorder object
+   */ 
+  public static TitledBorder createTitledBorder (Border border,
+                                                 String title,
+                                                 int titleJustification,
+                                                 int titlePosition,
+                                                 Font titleFont,
+                                                 Color titleColor)
+  {
+    return new TitledBorder (border, title, titleJustification, titlePosition,
+                            titleFont, titleColor);
+  }
 
-public static MatteBorder createMatteBorder(int top,
-                                            int left,
-                                            int bottom,
-                                            int right,
-                                            Icon tileIcon)
-  { /*
+  /**
+   * Creates an empty border that takes up no space. (The width of the top,
+   * bottom, left, and right sides are all zero.)
+   *
+   * @return The Border object
+   */ 
+  public static Border createEmptyBorder ()
+  {
+    return new EmptyBorder (0, 0, 0, 0);
+  }
 
-    Create a matte-look border that consists of multiple tiles of a specified icon. Multiple copies of the icon are placed side-by-side to fill up the border area.
+  /**
+   * Creates an empty border that takes up no space but which does no drawing,
+   * specifying the width of the top, left, bottom, and right sides.
+   *
+   * @param top An int specifying the width of the top in pixels
+   * @param left An int specifying the width of the left side in pixels
+   * @param bottom An int specifying the width of the right side in pixels
+   * @param right An int specifying the width of the bottom in pixels
+   *
+   * @return The Border object
+   */ 
+  public static Border createEmptyBorder (int top, int left, int bottom,
+                                         int right)
+  {
+    return new EmptyBorder (top, left, bottom, right);
+  }
 
-    Note:
-    If the icon doesn't load, the border area is painted gray.
+  /**
+   * Create a compound border with a null inside edge and a null outside edge.
+   *
+   * @return The CompoundBorder object
+   */ 
+  public static CompoundBorder createCompoundBorder ()
+  {
+    return new CompoundBorder ();
+  }
 
-    Parameters:
-    top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelstileIcon - the Icon object used for the border tilesReturns:
-    the MatteBorder object
+  /**
+   * Create a compound border specifying the border objects to use for the
+   * outside and inside edges.
+   *
+   * @param outsideBorder A Border object for the outer edge of the
+   * compound border
+   * @param insideBorder A Border object for the inner edge of the
+   * compound border
+   *
+   * @return The CompoundBorder object
+   */ 
+  public static CompoundBorder createCompoundBorder (Border outsideBorder,
+                                                    Border insideBorder)
+  {
+    return new CompoundBorder (outsideBorder, insideBorder);
+  }
 
-    */ 
-    return null;
- }
+  /**
+   * Create a matte-look border using a solid color. (The difference between
+   * this border and a line border is that you can specify the individual
+   * border dimensions.)
+   *
+   * @param top An int specifying the width of the top in pixels
+   * @param left An int specifying the width of the left side in pixels
+   * @param bottom An int specifying the width of the right side in pixels
+   * @param right An int specifying the width of the bottom in pixels
+   * @param color A Color to use for the border
+   *
+   * @return The MatteBorder object
+   */ 
+  public static MatteBorder createMatteBorder (int top, int left, int bottom,
+                                              int right, Color color)
+  {
+    return new MatteBorder (top, left, bottom, right, color);
+  }
 
+  /**
+   * Create a matte-look border that consists of multiple tiles of a specified
+   * icon. Multiple copies of the icon are placed side-by-side to fill up the
+   * border area.
+   *
+   * Note:
+   * If the icon doesn't load, the border area is painted gray.
+   *
+   * @param top An int specifying the width of the top in pixels
+   * @param left An int specifying the width of the left side in pixels
+   * @param bottom An int specifying the width of the right side in pixels
+   * @param right An int specifying the width of the bottom in pixels
+   * @param tileIcon The Icon object used for the border tiles
+   *
+   * @return The MatteBorder object
+   */ 
+  public static MatteBorder createMatteBorder (int top, int left, int bottom,
+                                              int right, Icon tileIcon)
+  {
+    return new MatteBorder (top, left, bottom, right, tileIcon);
+  }
 }
index a425db50b65818cdabbbba3101272c334c9ee2ae..eee96b1cdc89f3a562c3b318300adb09128657ff 100644 (file)
@@ -35,14 +35,17 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
+import javax.accessibility.Accessible;
+
 /**
  * Needs some work I guess....
  *
  * @author Ronald Veldema (rveldema@cs.vu.nl)
  */
-public class Box extends JComponent
+public class Box extends JComponent implements Accessible
 {
     Box(int a)
     {
index 00d9cb438a275c9442027df84be9cb88ebf85314..23009fe68b0def573352d8a456001e135fd59432 100644 (file)
@@ -35,9 +35,15 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
+import java.awt.Container;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.GridLayout;
+import java.awt.LayoutManager2;
+import java.io.Serializable;
 
 /**
  * A layout for swing components.
@@ -46,7 +52,7 @@ import java.awt.*;
  *
  * @author Ronald Veldema (rveldema@cs.vu.nl)
  */
-public class BoxLayout implements LayoutManager2
+public class BoxLayout implements LayoutManager2, Serializable
 {
     GridLayout      gridbag;
     
index 502d0840933f77c890a93b73a0e404f0ff68e0ee..c872ab76a4045285e229af5ec1d205f9de348e09 100644 (file)
@@ -35,12 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.io.*;
-import java.util.*;
-import javax.swing.event.*;
+package javax.swing;
 
+import java.io.Serializable;
+import java.util.Enumeration;
+import java.util.Vector;
 
 public class ButtonGroup implements Serializable 
 {
index 9d6f4089da7204f0e14f7d42c2f1b13426d4e0d5..52b78b33782a77c4d6b03df1d280a1947199b51f 100644 (file)
@@ -35,15 +35,22 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.util.*;
-import java.awt.event.*;
-import java.awt.*;
-import javax.swing.event.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+import java.io.Serializable;
+import java.util.EventListener;
+import java.util.Vector;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.EventListenerList;
 
 public class DefaultButtonModel
-  implements ButtonModel, java.io.Serializable
+  implements ButtonModel, Serializable
 {
   static final long serialVersionUID = -5342609566534980231L;
 
index 3a84163590311391d2ad8a58dce66e36c6d18de7..43846a5cdbe9e942c32236ddd870a4053da91aae 100644 (file)
@@ -35,17 +35,21 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.NoSuchElementException;
+import java.util.Vector;
 
 /**
  * DefaultListModel
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class DefaultListModel extends AbstractListModel {
+public class DefaultListModel extends AbstractListModel
+{
 
        //-------------------------------------------------------------
        // Variables --------------------------------------------------
index 64ae505fd12aaafe5adc8c10108eac7be1fa2d7c..2da790d247c9edb17b0724a4b36f6cacee629cdf 100644 (file)
@@ -35,12 +35,16 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import javax.swing.event.*;
-import java.util.*;
+import java.io.Serializable;
+import java.util.EventListener;
+import java.util.Vector;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.ListSelectionListener;
 
-public class DefaultListSelectionModel implements ListSelectionModel
+public class DefaultListSelectionModel implements Cloneable, ListSelectionModel, Serializable
 {
     int mode = SINGLE_SELECTION;
 
index c770bd0246e06094308d948a71057d07f5b0c473..6cbfa10f9d6d82a79f02a3d47301d94d498e1687 100644 (file)
@@ -35,18 +35,20 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.awt.event.*;
+import java.awt.Component;
+import java.awt.DefaultKeyboardFocusManager;
+import java.awt.event.KeyEvent;
 
 /**
  * FocusManager
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public abstract class FocusManager {
+public abstract class FocusManager extends DefaultKeyboardFocusManager
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index ded11a13424576248de05508150b00bab0104305..872558d08dddc54a8f09e22dc3ff73a68f9e1235 100644 (file)
@@ -35,12 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.awt.*;
-import java.awt.image.*;
 
+package javax.swing;
 
+import java.awt.Component;
+import java.awt.Graphics;
+import java.awt.Image;
+import java.awt.MediaTracker;
+import java.awt.Toolkit;
+import java.io.Serializable;
+import java.net.URL;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
 
 public class ImageIcon implements Icon
 {
index 861fe57ea849af9b1adfb03d4b3538479c06102c..d748fb53e0218ea2cacd102685b2de0a95cf948f 100644 (file)
@@ -35,11 +35,19 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.util.*;
-import java.io.*;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
 
 /**
  * InputMap
index 094123a2c7b63f3011692c4a131f55f58c7cdd64..ed450ced7a5f6cf2f33ea975203298e52c6e5484 100644 (file)
@@ -35,18 +35,19 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.applet.*;
-import java.awt.*;
-import java.awt.event.*;
 
+package javax.swing;
 
+import java.applet.Applet;
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.LayoutManager;
+import java.awt.event.KeyEvent;
+import java.awt.event.WindowEvent;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
-
 
 public class JApplet extends Applet
 {
index 9bfe32edaa9e29a8fec205dbe669be343dc1fa13..9c43e6d0bb995a90d5a0fb3dece03375a7f808e6 100644 (file)
@@ -49,6 +49,8 @@ import javax.accessibility.*;
  */
 public class JButton extends AbstractButton implements Accessible 
 {
+  private static final long serialVersionUID = -1907255238954382202L;
+
     boolean def, is_def;
 
     
index 4e6810ca22ee07e7be358010c2cc7e5afc9186ae..4d2cee7e02bc7613e2b46fbdee222bfff802662a 100644 (file)
@@ -35,12 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.plaf.*;
-import javax.accessibility.*;
+import javax.accessibility.AccessibleContext;
 
 /**
  * An instance of JCheckbox can be added to a panel, frame etc
index ac3b6600cbf0fd854cc959a2c04b4019e25e14f7..0b767785fa46379f61cb4193bfb2101dfef3a30a 100644 (file)
@@ -46,7 +46,8 @@ import javax.accessibility.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible {
+public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index c9c22f18c57d8159b4f71094edc75224a5c85d10..8881dc3555d911537cbd3cc78f0d7959df2ed4fc 100644 (file)
@@ -35,15 +35,20 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.awt.event.*;
-import java.io.*;
-import javax.accessibility.*;
-import javax.swing.colorchooser.*;
-import javax.swing.plaf.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.event.ActionListener;
+import java.io.IOException;
+import java.io.ObjectOutputStream;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.colorchooser.AbstractColorChooserPanel;
+import javax.swing.colorchooser.ColorSelectionModel;
+import javax.swing.plaf.ColorChooserUI;
 
 /**
  * JColorChooser
index 4837e972087954ac138ccc23be75daba3cd75a6c..c854520d07db80c8e2d35fc26299686cee372bbd 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
 import java.awt.*;
 import java.awt.event.*;
 import java.beans.*;
@@ -52,8 +52,11 @@ import javax.swing.plaf.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JComboBox extends JComponent implements ItemSelectable, 
-               ListDataListener, ActionListener, Accessible {
+public class JComboBox extends JComponent
+  implements ItemSelectable, ListDataListener, ActionListener, Accessible
+{
+  private static final long serialVersionUID = 5654585963292734470L;
+
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
@@ -766,6 +769,7 @@ public class JComboBox extends JComponent implements ItemSelectable,
        /**
         * isFocusTraversable
         * @returns boolean
+         * @deprecated
         */
        public boolean isFocusTraversable() {
                return false; // TODO
index 119e385919382c0e6873260ac829dd5ddf633c2f..7cfa7435d7be80e524e682d2fdfea99e70ad3e9c 100644 (file)
@@ -35,21 +35,44 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.awt.*;
-import java.awt.peer.*;
-import java.awt.event.*;
-import java.io.*;
 
-import javax.swing.event.*;
-import javax.swing.border.*;
-import javax.swing.plaf.*;
-
-import java.util.*;
-import java.beans.*;
+package javax.swing;
 
-import javax.accessibility.*;
+import java.awt.AWTEvent;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.awt.Insets;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.event.ActionListener;
+import java.awt.event.ContainerEvent;
+import java.awt.event.ContainerListener;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
+import java.awt.peer.LightweightPeer;
+import java.beans.PropertyChangeListener;
+import java.beans.PropertyVetoException;
+import java.beans.VetoableChangeListener;
+import java.io.Serializable;
+import java.util.Vector;
+import java.util.Hashtable;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleExtendedComponent;
+import javax.accessibility.AccessibleKeyBinding;
+import javax.accessibility.AccessibleRole;
+import javax.accessibility.AccessibleStateSet;
+import javax.swing.event.AncestorListener;
+import javax.swing.event.EventListenerList;
+import javax.swing.border.Border;
+import javax.swing.plaf.ComponentUI;
 
 /**
  * Every component in swing inherits from this class (JLabel, JButton, etc).
index af979f3084a32fd85396cdce7f10d6e01f9672b4..4ad265c9bd945b9ff8fccdb37868b98aba9decb1 100644 (file)
@@ -47,7 +47,8 @@ import javax.swing.plaf.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JDesktopPane extends JLayeredPane implements Accessible {
+public class JDesktopPane extends JLayeredPane implements Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index 61b9d40a49ba7c6628def7d39c09a9f538d40a70..11f27b239e0ee53f7e5316a0b01dd3abc0fa4060 100644 (file)
@@ -35,16 +35,21 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
+package javax.swing;
 
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dialog;
+import java.awt.Dimension;
+import java.awt.Frame;
+import java.awt.Graphics;
+import java.awt.LayoutManager;
+import java.awt.event.KeyEvent;
+import java.awt.event.WindowEvent;
 import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
 
 /**
  * Unlike JComponent derivatives, JDialog inherits from
index a2db3ee9007134ba5146afc6a4a42abc574f9f35..bce9dc70640a8eea77b07b0c47d12c8d1aea599b 100644 (file)
@@ -35,15 +35,19 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.io.*;
-import java.net.*;
-import javax.swing.text.*;
-import javax.swing.event.*;
-import java.awt.event.*;
-import java.awt.*;
-import javax.accessibility.*;
+import java.awt.Dimension;
+import java.awt.event.KeyEvent;
+import java.io.InputStream;
+import java.net.URL;
+import javax.accessibility.AccessibleContext;
+import javax.swing.text.EditorKit;
+import javax.swing.text.JTextComponent;
+import javax.swing.text.PlainEditorKit;
+import javax.swing.event.HyperlinkEvent;
+import javax.swing.event.HyperlinkListener;
 
 public class JEditorPane extends JTextComponent
 {
index cfa435c6d414813e1da8d6fe703af7fb3e6831c6..988e75b7743aaa1b3cdd198a700c19167753cfb7 100644 (file)
@@ -35,17 +35,22 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.awt.event.*;
-import java.io.*;
-import java.util.*;
-import javax.accessibility.*;
-import javax.swing.filechooser.*;
+import java.awt.Component;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.io.IOException;
+import java.io.ObjectOutputStream;
+import java.util.Vector;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
 import javax.swing.filechooser.FileFilter;
-import javax.swing.plaf.*;
+import javax.swing.filechooser.FileSystemView;
+import javax.swing.filechooser.FileView;
+import javax.swing.plaf.FileChooserUI;
 
 /**
  * JFileChooser
index c7838e80a36f1315ae372ca12c8215657f882d94..f26af99e60edbacb165f5f631d74f6dfe8ff39ab 100644 (file)
@@ -41,6 +41,7 @@ package javax.swing;
 import java.awt.event.FocusEvent;
 import java.io.Serializable;
 import java.text.Format;
+import java.text.ParseException;
 import javax.swing.text.Document;
 import javax.swing.text.DocumentFilter;
 import javax.swing.text.NavigationFilter;
index 947bfab0e6ce4b89ee6ae7f77640412cd6e9cbb8..9f4436ffb0768d1df6a22a25cc522fe5dec5a48d 100644 (file)
@@ -35,15 +35,20 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
+package javax.swing;
 
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.Frame;
+import java.awt.Graphics;
+import java.awt.GraphicsConfiguration;
+import java.awt.LayoutManager;
+import java.awt.event.KeyEvent;
+import java.awt.event.WindowEvent;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
 
 /**
  * Unlike JComponent derivatives, JFrame inherits from
index a4d6fa16faf2643bc87c3938f18515cc8701ff91..c49615c463888c9c54b6cfabbb63ef222dd8fb67 100644 (file)
@@ -35,19 +35,16 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.awt.*;
-import javax.swing.plaf.*;
 
+package javax.swing;
 
+import java.awt.Component;
+import java.awt.Image;
+import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
-
+import javax.swing.plaf.LabelUI;
 
-public class JLabel extends JComponent implements SwingConstants
+public class JLabel extends JComponent implements Accessible, SwingConstants
 {
     String text;
     Icon icon;
index ca49378dbb30e70651a5d03e0f85f59594c8b3f0..69217804ac1494112c676c94f753240935a661ca 100644 (file)
@@ -35,11 +35,13 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
+import java.awt.Component;
+import javax.accessibility.Accessible;
 
-public class JLayeredPane extends JComponent
+public class JLayeredPane extends JComponent implements Accessible
 {
     JLayeredPane()
     {
index b12e3c3d73f173c34f0a769f54ae7c456dc1f8d3..22d35a5a2c04800e9548e2547e6abd6c6c024202 100644 (file)
@@ -1,5 +1,5 @@
 /* JList.java -- 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -35,21 +35,21 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import javax.swing.event.*;
-
-import java.awt.*;
-import javax.swing.plaf.*;
-import java.util.*;
 
+package javax.swing;
 
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Rectangle;
+import java.util.Vector;
+import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
+import javax.swing.event.ListDataEvent;
+import javax.swing.event.ListDataListener;
+import javax.swing.event.ListSelectionListener;
+import javax.swing.plaf.ListUI;
 
-public class JList extends JComponent implements Scrollable
+public class JList extends JComponent implements Accessible, Scrollable
 {
     Color select_back, select_fore;
     ListCellRenderer render;
@@ -143,14 +143,13 @@ public class JList extends JComponent implements Scrollable
     
     public void setListData(final Vector listData)
     {
-       // XXX - FIXME Don't also name this AL, workaround for gcj 3.1.
-       class ALData extends AbstractListModel 
+       class AL extends AbstractListModel 
        {
            public int getSize()              { return listData.size(); }
            public Object getElementAt(int i) { return listData.elementAt(i); }
        };
        
-        setModel (new ALData());
+        setModel (new AL());
     }
     
     
index dcceb9e31222dfa5247618e9e78e650ddba21bc8..24440db598adfa4ea3a23ab1c4468f8b529d1153 100644 (file)
@@ -35,8 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
+import java.awt.Component;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
+import javax.accessibility.Accessible;
+
 public class JMenuBar extends JComponent
 {
   JMenuBar()
index 7d3bfef9a7a919b743880da4a8a5a933f245c862..db09f22972f045544169378d16186eab83a741a1 100644 (file)
@@ -35,16 +35,26 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.awt.event.*;
-import java.beans.*;
-import java.io.*;
-import javax.accessibility.*;
-import javax.swing.event.*;
-import javax.swing.plaf.*;
+import java.awt.Component;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
+import java.beans.PropertyChangeListener;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.MenuDragMouseEvent;
+import javax.swing.event.MenuDragMouseListener;
+import javax.swing.event.MenuKeyEvent;
+import javax.swing.event.MenuKeyListener;
+import javax.swing.plaf.MenuItemUI;
 
 /**
  * JMenuItem
index 71904021a9e5c72fb884bd50997fb1689c12cafd..5dc10c7dc037b9764deaebc8e97447b2c1ca334c 100644 (file)
@@ -35,14 +35,16 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import javax.swing.plaf.*;
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Dialog;
+import java.awt.Frame;
+import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
+import javax.swing.plaf.OptionPaneUI;
 
 public class JOptionPane extends JComponent 
 {
index b50271628b4d36b2ffb1e243296461171c5cb069..56cc1f09e26a0771deb3235ec26ff86961a8e827 100644 (file)
@@ -35,22 +35,21 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
-import javax.swing.plaf.*;
+package javax.swing;
 
+import java.awt.FlowLayout;
+import java.awt.LayoutManager;
+import javax.swing.plaf.PanelUI;
+import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
 
 /**
  * An instance of JPanel can be added to a panel, frame etc
  *
  * @author Ronald Veldema (rveldema@cs.vu.nl)
  */
-public class JPanel extends JComponent
+public class JPanel extends JComponent implements Accessible
 {
     public JPanel()
     {
index 3e28a8fc1068c27e45cbfb15a4ee368dbc17b49e..40fb921f280d90d8d6df9474584da25dbe892b6d 100644 (file)
@@ -218,6 +218,7 @@ public class JPasswordField extends JTextField {
        /**
         * getText
         * @returns String
+         * @deprecated
         */
        public String getText() {
                return null; // TODO
@@ -229,6 +230,7 @@ public class JPasswordField extends JTextField {
         * @param length TODO
         * @exception BadLocationException TODO
         * @returns String
+         * @deprecated
         */
        public String getText(int offset, int length) throws BadLocationException {
                return null; // TODO
index a787332f17650c1db616ca42ce043366c130a0b9..d5c6023205e53a52a7b994fdefeabb9f089378bb 100644 (file)
@@ -51,7 +51,8 @@ import javax.swing.plaf.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JPopupMenu extends JComponent implements Accessible, MenuElement {
+public class JPopupMenu extends JComponent implements Accessible, MenuElement
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index 6558bf83abc15e2510d8fd167c7b1f81af140349..2c4d834a6dd334cf2b3156dcf6b8fb32b2398ca9 100644 (file)
@@ -49,7 +49,8 @@ import javax.swing.plaf.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JProgressBar extends JComponent implements SwingConstants, Accessible {
+public class JProgressBar extends JComponent implements SwingConstants, Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index 7671b1d3f7b220345892364d188d3c9c1be67388..14bfcebb1fd97d1211d612197d4d50cfb390b111 100644 (file)
@@ -35,12 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.plaf.*;
-import javax.accessibility.*;
+import javax.accessibility.AccessibleContext;
 
 public class JRadioButton extends JToggleButton
 {
index 208b678ee5c9de07d44ad3ae3d2a8e64d0ae06bb..d619bfdd051a958c1bd3b92800e33664df6c20d5 100644 (file)
@@ -46,7 +46,8 @@ import javax.accessibility.*;
  * @author     Andrew Selkirk
  * @version    1.0
  */
-public class JRadioButtonMenuItem extends JMenuItem implements Accessible {
+public class JRadioButtonMenuItem extends JMenuItem implements Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index e7216d706a24aa9307ef8b2051ac4f465bb3d13a..f0121b8ce922f2ccddf30f1373f3d60540ea6ffa 100644 (file)
@@ -35,15 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
+package javax.swing;
 
-import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.LayoutManager;
+import java.awt.LayoutManager2;
+import java.io.Serializable;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
 
 /**
  * This class is where JComponents are added to.
index 482ed8f62bf64bb8c4e11951e22e3b19cb185f28..1cf6667d483814ef7c4cf98716731e378ea10484 100644 (file)
@@ -35,8 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
+import java.awt.Adjustable;
+import java.awt.event.AdjustmentListener;
+import javax.accessibility.Accessible;
 
 public class JScrollBar extends JComponent
 {
index 70cbd2d6ef7e2845ea779d5bda3b36cc527e8590..33cdba127dc4d00bd4196d6c1607469599079e87 100644 (file)
@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
-import javax.swing.plaf.*;
+package javax.swing;
 
+import java.awt.Component;
+import javax.accessibility.Accessible;
+import javax.swing.plaf.ScrollPaneUI;
 
-public class JScrollPane extends JComponent
+public class JScrollPane extends JComponent implements Accessible, ScrollPaneConstants
 {
     protected JViewport  columnHeader;
     protected JViewport  rowHeader;
index a49a77faa528f13cb7d29b1c65f715f44bdc0fd1..a0a010aa3049ee117b8c893144c2f01adf0f264a 100644 (file)
@@ -48,7 +48,8 @@ import javax.swing.plaf.*;
  * @version    1.0
  */
 public class JSeparator extends JComponent 
-               implements SwingConstants, Accessible {
+  implements SwingConstants, Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index 58475b67f16bfe9fc0201dbff668a537b00744b7..c9fc022fa6ad7d274f3318258d04586ca38c1f8c 100644 (file)
@@ -35,14 +35,22 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.io.*;
-import java.util.*;
-import javax.accessibility.*;
-import javax.swing.event.*;
-import javax.swing.plaf.*;
+import java.io.IOException;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
+import java.util.Dictionary;
+import java.util.Hashtable;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.accessibility.AccessibleStateSet;
+import javax.accessibility.AccessibleValue;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.plaf.SliderUI;
 
 /**
  * JSlider
index 915ec93258f4de2a56449e6afddb9340c7a97dd9..9264a76e9c54a3ddc785a10408a90f9c10af68ec 100644 (file)
@@ -35,19 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.util.*;
-import javax.swing.plaf.*;
-import java.awt.*;
 
+package javax.swing;
 
+import java.awt.Component;
+import java.util.Vector;
+import javax.accessibility.Accessible;
 import javax.accessibility.AccessibleContext;
-import javax.accessibility.AccessibleRole;
-import javax.accessibility.AccessibleState;
-import javax.accessibility.AccessibleStateSet;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.plaf.TabbedPaneUI;
 
-public class JTabbedPane extends JComponent
+public class JTabbedPane extends JComponent implements Accessible, SwingConstants
 {
     class Tab
     {
index a6ed0cc79b496c11f38918a59000c25e0928e5ed..55c6043ff8f4ce99bbdb7d3286342974a2ce3f65 100644 (file)
@@ -35,10 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
+import java.awt.Color;
+import java.awt.Component;
 import java.awt.Dimension;
 import java.awt.Rectangle;
+import java.util.Hashtable;
 import java.util.Vector;
 import javax.accessibility.Accessible;
 import javax.swing.event.ChangeEvent;
@@ -49,9 +53,10 @@ import javax.swing.event.TableColumnModelEvent;
 import javax.swing.event.TableColumnModelListener;
 import javax.swing.event.TableModelEvent;
 import javax.swing.event.TableModelListener;
+import javax.swing.table.JTableHeader;
 import javax.swing.table.TableModel;
+import javax.swing.table.TableCellEditor;
 import javax.swing.table.TableColumnModel;
-import javax.swing.table.DefaultTableModel;
 
 public class JTable extends JComponent
   implements TableModelListener, Scrollable, TableColumnModelListener,
index 806aa27dfb3b8d8b1337e7563dc561ac3a009ec8..edc3ea7735bda754df0f161459b606a324723598 100644 (file)
@@ -35,12 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.event.*;
-import java.util.*;
+package javax.swing;
 
-import javax.accessibility.*;
+import java.awt.event.ActionListener;
+import java.util.Vector;
+import javax.accessibility.AccessibleStateSet;
+import javax.swing.text.Document;
+import javax.swing.text.JTextComponent;
 
 public class JTextField extends JEditorPane
 {
index d0e90cb59c846bfb1988577b99ab072ba827da23..63972c1cad5c3451b0e58c6d83b15e426337754f 100644 (file)
@@ -35,14 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.plaf.*;
-import javax.accessibility.*;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.plaf.ButtonUI;
 
-public class JToggleButton extends AbstractButton
+public class JToggleButton extends AbstractButton implements Accessible
 {
     public JToggleButton()
     {
index f5b18d900acb57d000f8d1e90f01dafacd71c95d..a92157efbf21131aec39845b76c3207d15752d9d 100644 (file)
@@ -50,7 +50,8 @@ import javax.swing.plaf.*;
  * @version    1.0
  */
 public class JToolBar extends JComponent 
-               implements SwingConstants, Accessible {
+  implements SwingConstants, Accessible
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index d245df99fe480aca638b176063656b34b721eace..54e09cf0c60d5d49f4151e7720f5d35c6cf9d6f2 100644 (file)
@@ -35,12 +35,13 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.*;
+package javax.swing;
 
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
 
-public class JToolTip extends JComponent
+public class JToolTip extends JComponent implements Accessible
 {
     String text;
 
index f474c2f69ac98c77878f05da2ab9c4c46ff85612..432612db8084773b94c90897804f3006f2853707 100644 (file)
@@ -35,11 +35,28 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import javax.swing.plaf.*;
-import javax.accessibility.*;
+import java.awt.Dimension;
+import java.awt.Rectangle;
+import java.io.Serializable;
+import java.util.Hashtable;
+import java.util.Vector;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.event.TreeModelEvent;
+import javax.swing.event.TreeModelListener;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
+import javax.swing.plaf.TreeUI;
+import javax.swing.tree.DefaultTreeSelectionModel;
+import javax.swing.tree.TreeCellEditor;
+import javax.swing.tree.TreeCellRenderer;
+import javax.swing.tree.TreeModel;
+import javax.swing.tree.TreeNode;
+import javax.swing.tree.TreePath;
+import javax.swing.tree.TreeSelectionModel;
 
 public class JTree extends JComponent implements Scrollable, Accessible
 {
index c4a8df6e15c711e322b5c646be1a27f84c6c43c5..43ed91e688312ac680c1835c855af2717dbe9893 100644 (file)
@@ -35,11 +35,17 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import javax.swing.plaf.*;
-import java.awt.*;
+package javax.swing;
 
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Graphics;
+import java.awt.Image;
+import java.awt.Point;
+import java.awt.Rectangle;
+import javax.accessibility.Accessible;
+import javax.swing.plaf.ViewportUI;
 
 public class JViewport extends JComponent
 {
index c74e33870c018bfbb03f947114465887df211974..50d0c316895add42a0e22b4fed0308c037d794d3 100644 (file)
@@ -35,11 +35,22 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import java.awt.*;
-import java.awt.event.*;
-import javax.accessibility.*;
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.Frame;
+import java.awt.Graphics;
+import java.awt.GraphicsConfiguration;
+import java.awt.LayoutManager;
+import java.awt.Window;
+import java.awt.event.KeyEvent;
+import java.awt.event.WindowEvent;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
 
 /**
  * Unlike JComponent derivatives, JWindow inherits from
index 7fe06995a9f98ba15e1b0aca49ba716254dbeffb..c3053aa289ef4f922b64e8a3cc4bef7b8fac419b 100644 (file)
@@ -37,9 +37,9 @@ exception statement from your version. */
 
 package javax.swing;
 
-// Imports
-import java.awt.event.*;
-import java.io.*;
+import java.awt.AWTKeyStroke;
+import java.awt.event.KeyEvent;
+import java.io.Serializable;
 
 /**
  * KeyStroke
index e4b985b93e026c67d308b603e7fb568254663ca6..f4568479387f59f68950c61c856d4acaf260df7b 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
+package javax.swing;
 
-import javax.swing.event.*;
+import javax.swing.event.ListSelectionListener;
 
 public interface ListSelectionModel
 {
index cd9d201dce6c737c54826813013f9a53d016dbe2..b841a1780750890a3e09a77ea934668b6923d5de 100644 (file)
@@ -35,9 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-import javax.swing.text.*;
+import java.awt.Component;
+import javax.swing.text.JTextComponent;
 
 public abstract class LookAndFeel
 {
index cce32b5a018187971810efaa0476131a207c2e4a..55d62ae5f8093408be15ea44988f90fdf9b51b5d 100644 (file)
@@ -35,11 +35,15 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.util.*;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.Image;
+import java.awt.Rectangle;
+import java.util.Hashtable;
+import java.util.Vector;
 
 /**
  * RepaintManager
index bd65471d05f3225ce9ccdb8a445015872ea47e88..d6cc479de0b8dd77ed14946cdc7e4cd5281e6306 100644 (file)
@@ -35,12 +35,15 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.awt.*;
-import java.io.*;
-import javax.swing.plaf.*;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.LayoutManager;
+import java.awt.Rectangle;
+import java.io.Serializable;
 
 /**
  * ScrollPaneLayout
index da6d1129d0f9fa5d90c01d4c16dd3ec9eb95478e..eb641fbd1c7a41d751778203bf5b529a2153a69d 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing;
 
-// Imports
-import java.io.*;
+import java.io.Serializable;
 
 /**
  * SizeRequirements
index dbdd71043f1be38e25810ed931d4f898d6d51bb2..fb7c23b497013ae92ad676b965b7676163359116 100644 (file)
@@ -35,11 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
 
+package javax.swing;
 
-public  interface SwingConstants
+public interface SwingConstants
 {
     public static final int CENTER       = 0;
     public static final int TOP          = 1;
index 1d52405218f145127413de4f63369cecf1934cb7..80eb13a1a44b30b368834a236493ed35865aacea 100644 (file)
@@ -35,13 +35,17 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
 
-import java.awt.event.*;
-import java.util.*;
+package javax.swing;
 
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.Serializable;
+import java.util.EventListener;
+import java.util.Vector;
+import javax.swing.event.EventListenerList;
 
-public class Timer
+public class Timer implements Serializable
 {
   int ticks;
   static boolean verbose;
index de36203c9dcfef548054a00922be67ead5635a0b..71f0955fcfcdefe336577dab061c7bb99b4a3bd4 100644 (file)
@@ -77,7 +77,7 @@ public class UIDefaults extends Hashtable
     Object createValue(UIDefaults table);
   } // interface LazyValue
 
-  public static class ProxyLazyValue
+  public static class ProxyLazyValue implements LazyValue
   {
     public ProxyLazyValue(String s)
     {
@@ -101,6 +101,8 @@ public class UIDefaults extends Hashtable
     }
   } // class ProxyLazyValue
 
+  private static final long serialVersionUID = 7341222528856548117L;
+
   public UIDefaults()
   {
   }
index 8feaccf30e3f8731de5920665504baba51b1b5cb..8c4f9cc4af7c52bca6ee3b36c47d91a4f04f8007 100644 (file)
@@ -35,19 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-package javax.swing;
-
-import java.io.*;
-import java.awt.*;
-
-import javax.swing.border.*;
-import javax.swing.plaf.*;
-import javax.swing.plaf.basic.*;
-import javax.swing.plaf.metal.*;
 
+package javax.swing;
 
-import java.beans.*;
-
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Insets;
+import java.beans.PropertyChangeListener;
+import java.io.Serializable;
+import javax.swing.border.Border;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.metal.MetalLookAndFeel;
 
 public class UIManager implements Serializable
 {
index fad3aa288ef53284470164d73cb594d7d9bc13a8..663fb1130e0a1df7ff26a1b43828187740b456ab 100644 (file)
@@ -1,5 +1,5 @@
 /* AbstractBorder.java -- 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -44,85 +44,149 @@ import java.awt.Insets;
 import java.awt.Rectangle;
 import java.io.Serializable;
 
-public abstract class AbstractBorder implements Border, Serializable
+
+/**
+ * An invisible zero-width border, serving as a base class for
+ * implementing more interesting borders.
+ *
+ * @author Sascha Brawer (brawer@dandelis.ch)
+ * @author Ronald Veldema (rveldema@cs.vu.nl)
+ */
+public abstract class AbstractBorder
+  implements Border, Serializable
 {
   static final long serialVersionUID = -545885975315191844L;
 
+
+  /**
+   * Constructs a new AbstractBorder.
+   */
   public AbstractBorder ()
   {
   }
 
-    public void paintBorder(Component c,
-                           Graphics g,
-                           int x,
-                           int y,
-                           int width,
-                           int height) 
-    {
-       System.out.println("HMMMMM, abstract-border.paintBorder");
-    }
 
+  /**
+   * Performs nothing, because the default implementation provided by
+   * this class is an invisible, zero-width border. Subclasses will
+   * likely want to override this method, but they are not required
+   * for doing so.
+   *
+   * @param c the component whose border is to be painted.
+   * @param g the graphics for painting.
+   * @param x the horizontal position for painting the border.
+   * @param y the vertical position for painting the border.
+   * @param width the width of the available area for painting the border.
+   * @param height the height of the available area for painting the border.
+   */
+  public void paintBorder (Component c, Graphics g,
+                           int x, int y, int width, int height) 
+  {
+    /* A previous version of Classpath had emitted a warning when
+     * this method was called. The warning was removed because it is
+     * perfectly legal for a subclass to not override the paintBorder
+     * method. An example would be EmptyBorder.
+     */
+  }
 
-    public Insets getBorderInsets(Component c, Insets insets) 
-    {
-       if (insets == null)
-           insets = new Insets(0,0,0,0);
-        
-       insets.left = insets.top = insets.right = insets.bottom = 5;
 
-        return insets;
-    }
+  /**
+   * Determines the insets of this border. The implementation provided
+   * by AbstractButton returns Insets for a zero-width border, whose
+   * <code>left</code>, <code>right</code>, <code>top</code> and
+   * <code>bottom</code> fields are all zero.
+   *
+   * @param c the component whose border is to be measured.
+   *
+   * @return a newly created Insets object, indicating a zero-width
+   *         border.
+   */
+  public Insets getBorderInsets (Component c)
+  {
+    return new Insets (0, 0, 0, 0);
+  }
 
-    public Insets getBorderInsets(Component c)
-    {
-        return getBorderInsets(c, new Insets(0,0,0,0));
-    }
 
+  /**
+   * Determines the insets of this border. The implementation provided
+   * by AbstractButton sets the <code>left</code>, <code>right</code>,
+   * <code>top</code> and <code>bottom</code> fields of the passed
+   * <code>insets</code> parameter to zero.
+   *
+   * @param c the component in the center of this border.
+   *
+   * @param insets an Insets object for holding the insets of this
+   *        border.
+   *
+   * @return the <code>insets</code> object.
+   */
+  public Insets getBorderInsets (Component c, Insets insets) 
+  {
+    insets.left = insets.right = insets.top = insets.bottom = 0;
+    return insets;
+  }
 
-    public boolean isBorderOpaque() 
-    {   return false;   }
 
-    public Rectangle getInteriorRectangle(Component c,
-                                         int x,
-                                         int y,
-                                         int width, 
-                                         int height) 
-    {
-        return getInteriorRectangle(c,
-                                   this,
-                                   x,
-                                   y,
-                                   width,
-                                   height);
-    }
+  /**
+   * Determines whether or not this border is opaque. An opaque border
+   * fills every pixel in its area when painting. Partially
+   * translucent borders must return <code>false</code>, or ugly
+   * artifacts can appear on screen. The default implementation
+   * provided by AbstractBorder always returns <code>false</code>.
+   *
+   * @return <code>false</code>.
+   */
+  public boolean isBorderOpaque () 
+  {
+    return false;
+  }
 
-        
-    public static Rectangle getInteriorRectangle(Component c,
-                                                Border b,
-                                                int x,
-                                                int y,
-                                                int width,
-                                                int height)
+
+  /**
+   * Returns a rectangle that covers the specified area minus this
+   * border.  Components that wish to determine an area into which
+   * they can safely draw without intersecting with a border might
+   * want to use this helper method.
+   *
+   * @param c the component in the center of this border.
+   * @param x the horizontal position of the border.
+   * @param y the vertical position of the border.
+   * @param width the width of the available area for the border.
+   * @param height the height of the available area for the border.
+   */
+  public Rectangle getInteriorRectangle (Component c,
+                                         int x, int y, int width, int height) 
+  {
+    return getInteriorRectangle (c, this, x, y, width, height);
+  }
+
+  
+  /**
+   * Returns a rectangle that covers the specified area minus a
+   * border.  Components that wish to determine an area into which
+   * they can safely draw without intersecting with a border might
+   * want to use this helper method.
+   *
+   * @param c the component in the center of this border.
+   * @param x the horizontal position of the border.
+   * @param y the vertical position of the border.
+   * @param width the width of the available area for the border.
+   * @param height the height of the available area for the border.
+   */
+  public static Rectangle getInteriorRectangle (Component c, Border b,
+                                                int x, int y, int width, int height)
+  {
+    Insets borderInsets;
+
+    if (b != null)
     {
-       if(b != null)
-           {
-               Insets insets = b.getBorderInsets(c);
-               
-               int w = insets.right - insets.left;
-               int h = insets.top   - insets.bottom;
-
-               return new Rectangle(x + insets.left,
-                                    y + insets.top,
-                                    width - w,
-                                    height - h);
-           }
-        else
-            {
-               return new Rectangle(x,
-                                    y,
-                                    width,
-                                    height);
-           }
+      borderInsets = b.getBorderInsets (c);
+      x += borderInsets.left;
+      y += borderInsets.top;
+      width -= borderInsets.left + borderInsets.right;
+      height -= borderInsets.top + borderInsets.bottom;
     }
-}
 
+    return new Rectangle (x, y, width, height);
+  }
+}
index bf6a8caaefe5dfe31c721b3cf7c9e96e8c5acc37..102a220e103209d27a301e373c5b7021c52d0aa6 100644 (file)
@@ -1,5 +1,5 @@
 /* CompoundBorder.java -- 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -42,45 +42,212 @@ import java.awt.Component;
 import java.awt.Graphics;
 import java.awt.Insets;
 
-public class CompoundBorder extends AbstractBorder
+/**
+ * A Border that is composed of an interior and an exterior border,
+ * where the interior border is tightly nested into the exterior.
+ *
+ * @author Sascha Brawer (brawer@dandelis.ch)
+ */
+public class CompoundBorder
+  extends AbstractBorder
 {
+  static final long serialVersionUID = 9054540377030555103L;
+
+
+  /**
+   * The inside border, which is painted between the bordered
+   * Component and the outside border. It is valid for
+   * <code>insideBorder</code> to be <code>null</code>.
+   */
   protected Border insideBorder;
+
+
+  /**
+   * The outside border, which is painted outside both the
+   * bordered Component and the inside border. It is valid for
+   * <code>outsideBorder</code> to be <code>null</code>.
+   */
   protected Border outsideBorder;
 
+
+  /**
+   * Constructs a CompoundBorder whose inside and outside borders
+   * are both <code>null</code>. While this does not really make
+   * any sense (there exists a class EmptyBorder as well, and not
+   * every Component needs to have a border at all), the API
+   * specification requires the existence of this constructor.
+   *
+   * @see EmptyBorder
+   */
   public CompoundBorder ()
   {
     this (null, null);
   }
 
+
+  /**
+   * Constructs a CompoundBorder with the specified inside and
+   * outside borders.
+   *
+   * @param outsideBorder the outside border, which is painted to the
+   *        outside of both <code>insideBorder</code> and the bordered
+   *        compoonent. It is acceptable to pass <code>null</code>, in
+   *        which no outside border is painted.
+   *
+   * @param insideBorder the inside border, which is painted to
+   *        between <code>outsideBorder</code> and the bordered
+   *        component. It is acceptable to pass <code>null</code>, in
+   *        which no intside border is painted.
+   */
   public CompoundBorder (Border outsideBorder, Border insideBorder)
   {
     this.outsideBorder = outsideBorder;
     this.insideBorder = insideBorder;
   }
+
+
+  /**
+   * Determines whether or not this border is opaque. An opaque
+   * border fills every pixel in its area when painting. Partially
+   * translucent borders must return <code>false</code>, or ugly
+   * artifacts can appear on screen.
+   *
+   * @return <code>true</code> if both the inside and outside borders
+   *         are opaque, or <code>false</code> otherwise.
+   */
+  public boolean isBorderOpaque ()
+  {
+    /* While it would be safe to assume true for the opacity of
+     * a null border, this behavior would not be according to
+     * the API specification. Also, it is pathological to have
+     * null borders anyway.
+     */
+    if ((insideBorder == null) || (outsideBorder == null))
+      return false;
+
+    return insideBorder.isBorderOpaque()
+      && outsideBorder.isBorderOpaque();
+  }
     
-    public Insets getBorderInsets(Component  c,
-                                 Insets s)
+
+  /**
+   * Paints the compound border by first painting the outside border,
+   * then painting the inside border tightly nested into the outside. 
+   *
+   * @param c the component whose border is to be painted.
+   * @param g the graphics for painting.
+   * @param x the horizontal position for painting the border.
+   * @param y the vertical position for painting the border.
+   * @param width the width of the available area for painting the border.
+   * @param height the height of the available area for painting the border.
+   */
+  public void paintBorder(Component c, Graphics g,
+                          int x, int y, int width, int height)
+  {
+    /* If there is an outside border, paint it and reduce the
+     * bounding box by its insets.
+     */
+    if (outsideBorder != null)
     {
-       if (s == null)
-           s = new Insets(0,0,0,0);
-       
-       s.left = s.right = s.top = s.bottom = 5;
-       
-       return s;
+      Insets outsideInsets;
+
+      outsideBorder.paintBorder(c, g, x, y, width, height);
+      outsideInsets = outsideBorder.getBorderInsets(c);
+
+      x += outsideInsets.left;
+      y += outsideInsets.top;
+
+      /* Reduce width and height by the respective extent of the
+       * outside border.
+       */
+      width -= outsideInsets.left + outsideInsets.right;
+      height -= outsideInsets.top + outsideInsets.bottom;
     }
-    
-    public boolean isBorderOpaque()
+
+    if (insideBorder != null)
+      insideBorder.paintBorder(c, g, x, y, width, height);
+  }
+
+
+  /**
+   * Changes the specified insets to the insets of this border,
+   * which is the sum of the insets of the inside and the outside
+   * border.
+   *
+   * @param c the component in the center of this border.
+   * @param insets an Insets object for holding the added insets.
+   *
+   * @return the <code>insets</code> object.
+   */
+  public Insets getBorderInsets(Component c, Insets insets)
+  {
+    Insets borderInsets;
+
+    if (insets == null)
+      insets = new Insets (0,0,0,0);
+    else
+      insets.left = insets.right = insets.top = insets.bottom = 0;
+
+    /* If there is an outside border, add it to insets. */
+    if (outsideBorder != null)
     {
-       return false;
+      borderInsets = outsideBorder.getBorderInsets(c);
+      insets.left += borderInsets.left;
+      insets.right += borderInsets.right;
+      insets.top += borderInsets.top;
+      insets.bottom += borderInsets.bottom;
     }
-    
-    public void paintBorder(Component  c, 
-                           Graphics  g,
-                           int  x,
-                           int  y,
-                           int  width,
-                           int  height)
+
+    /* If there is an inside border, add it to insets. */
+    if (insideBorder != null)
     {
+      borderInsets = insideBorder.getBorderInsets(c);
+      insets.left += borderInsets.left;
+      insets.right += borderInsets.right;
+      insets.top += borderInsets.top;
+      insets.bottom += borderInsets.bottom;
     }
+
+    return insets;
+  }
+
+
+  /**
+   * Determines the insets of this border, which is the sum of the
+   * insets of the inside and the outside border.
+   *
+   * @param c the component in the center of this border.
+   */
+  public Insets getBorderInsets (Component c)
+  {
+    /* It is not clear why CompoundBorder does not simply inherit
+     * the implementation from AbstractBorder. However, we want
+     * to be compatible with the API specification, which overrides
+     * the getBorderInsets(Component) method.
+     */
+    return getBorderInsets (c, null);
+  }
+
+
+  /**
+   * Returns the outside border, which is painted outside both the
+   * bordered Component and the inside border. It is valid for the
+   * result to be <code>null</code>.
+   */
+  public Border getOutsideBorder ()
+  {
+    return outsideBorder;
+  }
+
+
+  /**
+   * Returns the inside border, which is painted between the bordered
+   * Component and the outside border. It is valid for the result to
+   * be <code>null</code>.
+   */
+  public Border getInsideBorder ()
+  {
+    return insideBorder;
+  }
 }
 
index 94503207af41be0bbb1134d6ea2a5e1495b2179c..c39801dc10a51146d1f9eade369bab56468cb88f 100644 (file)
@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.colorchooser;
 
-// Imports
-import java.awt.*;
-import java.io.*;
-import javax.swing.*;
-import javax.swing.event.*;
+import java.awt.Color;
+import java.awt.Graphics;
+import javax.swing.Icon;
+import javax.swing.JColorChooser;
+import javax.swing.JPanel;
 
 /**
  * AbstractColorChooserPanel
index 122612e5669065eee4f7fd3c57fad2046ce835d8..ffd8718eac0b99dca3b9d035fd95ab9f6d77cab1 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.colorchooser;
 
-// Imports
-import javax.swing.*;
+import javax.swing.JComponent;
 
 /**
  * ColorChooserComponentFactory
index 8139a18c720c84a2aa20a73bd4a5ac9877012a80..d04266b07a93bf79437846b69c5e21cce2dcd501 100644 (file)
@@ -35,11 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.colorchooser;
 
-// Imports
-import java.awt.*;
-import javax.swing.event.*;
+import java.awt.Color;
+import javax.swing.event.ChangeListener;
 
 /**
  * ColorSelectionModel
index 1df4e325e942ad0f2a679a6125f6e4c26803d771..1aa51fd64c09f1aad3d62440d2868e6f46390b1c 100644 (file)
@@ -1,4 +1,4 @@
-/* BoundedRangeModel.java --
+/* DefaultColorSelectionModel.java --
    Copyright (C) 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
@@ -35,12 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.colorchooser;
 
-// Imports
-import java.awt.*;
-import java.io.*;
-import javax.swing.event.*;
+import java.awt.Color;
+import java.io.Serializable;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.EventListenerList;
 
 /**
  * DefaultColorSelectionModel
index a1f5ae19fbdc7f798b7e5fe486bccd34caf154b5..0c86badc764b1763c9684a60df6217544bb154d0 100644 (file)
@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
-import javax.swing.*;
-import java.awt.*;
+import java.awt.AWTEvent;
+import java.awt.Container;
+import javax.swing.JComponent;
 
 /**
  * Ancestor Event
index ae356bb92a901d8d857320c7d248bb9872c46f8a..26ccaa81c509de13f1c76ebce545e10d7c450bb8 100644 (file)
@@ -35,18 +35,20 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
-import java.net.*;
-import java.util.*;
+import java.net.URL;
+import java.util.EventObject;
+import javax.swing.text.Element;
 
 /**
  * HyperlinkEvent
  * @author Andrew Selkirk
  * @author Ronald Veldema
  */
-public class HyperlinkEvent extends EventObject {
+public class HyperlinkEvent extends EventObject
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index d314cadc068442d91f3e7f23dabf5a6a13228999..76f3d89da3d3bbfe34d8bf2aa8ca5c50bd4be076 100644 (file)
@@ -35,14 +35,15 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
 /**
  * InternalFrameAdapter
  * @author Andrew Selkirk
  */
-public class InternalFrameAdapter      extends         Object
-                                                                       implements      InternalFrameListener {
+public abstract class InternalFrameAdapter implements InternalFrameListener
+{
 
        //-------------------------------------------------------------
        // Initialization ---------------------------------------------
index f974cb52ff3c5db0773eccf38c95d30dca5acf07..345568b7b610649177d46858e1dde2108b2968a7 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
 import java.awt.AWTEvent;
 import javax.swing.JInternalFrame;
 
index 5849f7dc8980060dbaaa6459d207aef56eb28bcf..4c6e39f00a3dc80f9dce4377b33a8df52c1d4a6e 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
 import java.util.EventObject;
 
 /**
index 087f01c17d6828ecbba1502ccafa7941d4129fb2..23caed0a8d906a749830e50e8989c43a957913cf 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
 import java.awt.event.MouseEvent;
 
 /**
index 2bb0d64aca68c081d2203811d678f04879de24ae..9092158df32e7bb89dc4c6dbe33c9a8dcc018fa4 100644 (file)
@@ -49,6 +49,8 @@ import java.util.*;
 public final   class SwingPropertyChangeSupport
                                extends PropertyChangeSupport {
 
+  private static final long serialVersionUID = 7162625831330845068L;
+
        //-------------------------------------------------------------
        // Variables --------------------------------------------------
        //-------------------------------------------------------------
index 2316c28a75ca72c4bd6712cd87b7a952259c1e72..c5989558099821a8871de5a0c137533a06227e7c 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
 import java.util.EventObject;
 import javax.swing.table.TableModel;
 
index c70c6c6d4a5d941eb3e10e5cf406c234e31b15b9..e11416dbf1f0b45e5f7dab7a5489ba91f3efcfb3 100644 (file)
@@ -35,10 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.event;
 
-// Imports
 import java.util.EventListener;
+import javax.swing.tree.ExpandVetoException;
 
 /**
  * TreeWillExpandListener interface
index 43ed56a4953aebaa67138bb757d2fa4e6018871a..7fb7a9e3abb8558589ad2e2ab0cd50a3f7ad8c46 100644 (file)
@@ -48,6 +48,8 @@ import javax.swing.undo.*;
  */
 public class UndoableEditEvent extends EventObject {
 
+  private static final long serialVersionUID = 4418044561759134484L;
+
        //-------------------------------------------------------------
        // Variables --------------------------------------------------
        //-------------------------------------------------------------
index 9f624b3c8143382f4f5f9191f9b22cac3f1b1cfd..7e0be6d1b06c7643f1bb12f1c1b91c8cd9f6a447 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.filechooser;
 
-// Imports
-import java.io.*;
+import java.io.File;
 
 /**
  * FileFilter
index 20abe09259cc937a3a067ec293a56d3aa5fefbaf..759149756fccc8656548c053403c79d807dc2956 100644 (file)
@@ -35,10 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.filechooser;
 
-// Imports
-import java.io.*;
+import java.io.File;
+import java.io.IOException;
+import javax.swing.Icon;
 
 /**
  * FileSystemView
index 77d28eb6bba59a0932eb743b6a860c73d1f936d0..7ff8ab0b9bbd51f37a6dc6cbe5e4796aa9de2383 100644 (file)
@@ -35,11 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.filechooser;
 
-// Imports
-import java.io.*;
-import javax.swing.*;
+import java.io.File;
+import javax.swing.Icon;
 
 /**
  * FileView
index 46c65faf3816c5bd7a4f2f02ca607d343a6d4020..3dc092db93d7c4b9bb370e6238e55adfb04832df 100644 (file)
@@ -67,7 +67,6 @@ public class BorderUIResource
      */
     public BorderUIResource(Border delegate)
     {
-       super ();
        this.delegate = delegate;
     }
 
@@ -128,7 +127,7 @@ public class BorderUIResource
                                     Color highlight, 
                                     Color shadow) 
        {
-           super (bevelType);
+         super (bevelType, highlight, shadow);
        }
        public BevelBorderUIResource(int bevelType,
                                     Color highlightOuter,
@@ -136,7 +135,8 @@ public class BorderUIResource
                                     Color shadowOuter,
                                     Color shadowInner) 
        {
-           super (bevelType);
+         super (bevelType, highlightOuter, highlightInner, shadowOuter,
+                shadowInner);
        }
     }
 
@@ -191,7 +191,7 @@ public class BorderUIResource
        public EtchedBorderUIResource(int etchType, Color highlight, 
                                      Color shadow)
        {
-         super (etchType);
+          super (etchType, highlight, shadow);
        }
 
     }
@@ -210,7 +210,7 @@ public class BorderUIResource
        public LineBorderUIResource(Color color,
                                    int thickness)
        {
-          super (color); 
+          super (color, thickness);
        }
     }
 
@@ -224,12 +224,13 @@ public class BorderUIResource
        public MatteBorderUIResource(int top, int left, int bottom, 
                                     int right, Color color)
        {
-         super (top, left, bottom, right, color);
+          super (new Insets (top, left, bottom, right), color);
        }
        public MatteBorderUIResource(int top, int left, int bottom,
                                     int right, Icon tileIcon)
        {
-         super (top, left, bottom, right, tileIcon);
+          super (new Insets (top, left, bottom, right), tileIcon);
+
        }
        public MatteBorderUIResource(Icon tileIcon)
        {
@@ -254,24 +255,24 @@ public class BorderUIResource
        }
        TitledBorderUIResource(Border border, String title)
        {
-          super (border);
+          super (border, title);
        }
        TitledBorderUIResource(Border border, String title,
                               int titleJustification, int titlePosition)
        {
-          super (border);
+          super (border, title, titleJustification, titlePosition);
        }
        TitledBorderUIResource(Border border, String title,
                               int titleJustification, int titlePosition,
                               Font titleFont)
        {
-          super (border);
+          super (border, title, titleJustification, titlePosition, titleFont);
        }
        TitledBorderUIResource(Border border, String title,
                               int titleJustification, int titlePosition,
                               Font titleFont, Color titleColor)
        {
-          super (border);
+          super (border, title, titleJustification, titlePosition, titleFont, titleColor);
        }
     }
 }
index 1be8d5bdf84d0ff60c90db0dedf0cd6e5d58bbaa..046a7316c93abfdcff7f9136425bc3c11735f368 100644 (file)
@@ -38,9 +38,12 @@ exception statement from your version. */
 
 package javax.swing.plaf.basic;
 
-import javax.swing.*;
-import java.awt.*;
-import javax.swing.border.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Graphics;
+import java.awt.Insets;
+import javax.swing.UIDefaults;
+import javax.swing.border.MatteBorder;
 
 class BasicBorder extends MatteBorder
 {
index 08eeb829a743947ce3b308b65cc80b34f5f97806..2f7ce40ce87ad53f599714777effca4d751248f1 100644 (file)
@@ -35,12 +35,14 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.table;
 
-// Imports
-import java.io.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.io.Serializable;
+import java.util.EventListener;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.TableModelEvent;
+import javax.swing.event.TableModelListener;
 
 /**
  * AbstractTableModel
index a7bcc5c36b7cb17aa28b8f4332ec107f1adb505a..fdecedd8acfe86f1b393cc043da773534f8472b3 100644 (file)
@@ -37,10 +37,13 @@ exception statement from your version. */
 
 
 package javax.swing.table;
+
 import java.awt.Component;
 import java.io.Serializable;
 import javax.swing.JLabel;
 import javax.swing.JTable;
+import javax.swing.border.Border;
+
 /**
  * STUBBED
  */
index 9ab2fff81166bebb76ce15b1ceca6692b76615b9..2946829f99cc2252e241c4b4e8777ac897a86207 100644 (file)
@@ -35,14 +35,22 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.table;
 
-// Imports
-import java.beans.*;
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.event.*;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.Serializable;
+import java.util.Enumeration;
+import java.util.EventListener;
+import java.util.Vector;
+import javax.swing.ListSelectionModel;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
+import javax.swing.event.TableColumnModelEvent;
+import javax.swing.event.TableColumnModelListener;
 
 /**
  * DefaultTableColumnModel
index 1587310856efab2e6f7b7acf0a51eba76ff89cba..473229bea1d94a350ca04987e1596ef2a452c579 100644 (file)
@@ -35,12 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.table;
 
-// Imports
-import java.io.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.io.Serializable;
+import java.util.Vector;
+import javax.swing.event.TableModelEvent;
 
 /**
  * DefaultTableModel
index f5ace625675847853a5ee07aff2d1a7a6912f232..d228d8aae92dd79b674e1ed632a7dd97c05c1e8d 100644 (file)
@@ -35,12 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.table;
 
-// Imports
-import java.beans.*;
-import java.io.*;
-import javax.swing.event.*;
+import java.beans.PropertyChangeListener;
+import java.io.Serializable;
+import javax.swing.event.SwingPropertyChangeSupport;
 
 /**
  * TableColumn
index 9a6d350f0485831f56c6b9481188abe95f322c0d..a747e99ac89293087636eb4d29a575a849df7613 100644 (file)
@@ -43,13 +43,20 @@ import java.awt.Dimension;
 import java.awt.Image;
 import java.awt.Rectangle;
 import java.awt.Point;
-import javax.accessibility.*;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.accessibility.AccessibleStateSet;
+import javax.accessibility.AccessibleText;
 import javax.swing.Icon;
 import javax.swing.JComponent;
 import javax.swing.KeyStroke;
 import javax.swing.Scrollable;
 import javax.swing.UIManager;
-import javax.swing.event.*;
+import javax.swing.event.CaretEvent;
+import javax.swing.event.CaretListener;
+import javax.swing.event.DocumentEvent;
+import javax.swing.event.DocumentListener;
 import javax.swing.plaf.TextUI;
 
 public abstract class JTextComponent extends JComponent
index 5be988ca6049a44381f14b31f29aa539db88a1b2..4362684fda317c71c11af0470e11207840ab6941 100644 (file)
@@ -35,18 +35,19 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.awt.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.awt.Rectangle;
+import java.util.Enumeration;
+import javax.swing.event.TreeModelEvent;
 
 /**
  * AbstractLayoutCache
  * @author Andrew Selkirk
  */
-public abstract class AbstractLayoutCache implements RowMapper {
+public abstract class AbstractLayoutCache implements RowMapper
+{
 
        //-------------------------------------------------------------
        // Classes ----------------------------------------------------
index 0c2b5459f9921f92f26bea35fa2ca3ce8f0e4e00..01be46aecedc995fc7e90d3763e63ad0d2bc3589 100644 (file)
@@ -35,11 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.io.*;
-import java.util.*;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.Random;
+import java.util.Stack;
+import java.util.Vector;
 
 /**
  * DefaultMutableTreeNode
index 732077b3adb1a84ed473d39d18167407a4340f30..6d922a424375a8fd8f3c881a57e0e3fb1d00fe80 100644 (file)
@@ -35,16 +35,29 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.awt.*;
-import java.awt.event.*;
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.border.*;
-import javax.swing.event.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.util.EventObject;
+import javax.swing.Icon;
+import javax.swing.JTextField;
+import javax.swing.JTree;
+import javax.swing.border.Border;
+import javax.swing.event.CellEditorListener;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
 
 /**
  * DefaultTreeCellEditor
index 6de55deae3228c2b2c25c0a95d9a5ae4188ec10f..f0eb454db5ca2b036f77043cf41938aedc8e0693 100644 (file)
@@ -35,11 +35,18 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.awt.*;
-import javax.swing.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.awt.Rectangle;
+import javax.swing.Icon;
+import javax.swing.JLabel;
+import javax.swing.JTree;
 
 /**
  * DefaultTreeCellRenderer
index d905be96cb87a62ab4df0272d697c8aecc3141f7..4f546acca3ea147c1c9eee3938665413f32c8a5c 100644 (file)
@@ -35,12 +35,16 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.io.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
+import java.util.EventListener;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.TreeModelListener;
 
 /**
  * DefaultTreeModel
index 9b5358241bddb5676f9e85b76b97c9721d14c070..79f642afc28da3533f04416bca7e827349454a10 100644 (file)
@@ -35,14 +35,21 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.beans.*;
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.event.*;
+import java.beans.PropertyChangeListener;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
+import java.util.EventListener;
+import java.util.Vector;
+import javax.swing.DefaultListSelectionModel;
+import javax.swing.event.SwingPropertyChangeSupport;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
 
 /**
  * DefaultTreeSelectionModel
index 279eec0278ba71a5a5bb079fcb5c2d00ee44216b..dae34229c3a87c3caf6d6fa3898833b02867f575 100644 (file)
@@ -35,12 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.awt.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.awt.Rectangle;
+import java.util.Enumeration;
+import javax.swing.event.TreeModelEvent;
 
 /**
  * FixedHeightLayoutCache
index c55b97d339a882df558926e015f6e85d2ac0aefa..503cd2d4deb95f6f1ff24ed070e91e4d1377115c 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
 import java.awt.Component;
 import javax.swing.JTree;
 
index 6763544fb9ea85ac00465b326a03e871fb26ce03..5c3a12516d6a18f97c0258fbbeb61318e3a1b54d 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import javax.swing.event.*;
+import javax.swing.event.TreeModelListener;
 
 /**
  * TreeModel interface
index 46464d2d73ee50124700d2fb61d283401c2755df..4fd7ec630c6c49e7692c4152434c0527ce5cb998 100644 (file)
@@ -35,10 +35,10 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.util.*;
+import java.util.Enumeration;
 
 /**
  * TreeNode interface
index 77627db77b11442a503d2fce2f0e15edd7698531..ba0a00ba95e16757710488e97d8971db8001faf5 100644 (file)
@@ -35,10 +35,13 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.io.*;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.Serializable;
 
 /**
  * TreePath
index ef8e0b44772edbc834cdc5161d7204d993c8bb45..3f28450d86fcc8c2de69a9bbe82a150f67f477fc 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
 import java.beans.PropertyChangeListener;
 import javax.swing.event.TreeSelectionListener;
 
index 8e9015399a6213ec6f5fd78d6ef103412536eb2f..445faa9c230d40ff646577e6c52f7dd352d7821d 100644 (file)
@@ -35,12 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.tree;
 
-// Imports
-import java.awt.*;
-import java.util.*;
-import javax.swing.event.*;
+import java.awt.Rectangle;
+import java.util.Enumeration;
+import javax.swing.event.TreeModelEvent;
 
 /**
  * VariableHeightLayoutCache
index 68c28130e0f59602138c94ea60b7911452a120d4..d845e4341bbe705a5410232623a75fbebf206c40 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.undo;
 
-// Imports
 import java.io.Serializable;
 
 /**
index 37a7c4ca4eb3b1ccd99e44c4e898726ad3215afc..be612dad77b7a87c1bc8b18492399a9a9c600c75 100644 (file)
@@ -35,9 +35,9 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.undo;
 
-// Imports
 import java.util.Vector;
 
 /**
index f617bc3a455482184116a5986c6aafbdddc0e62a..6a32fbdb48d1f96ba02aee679b42a1e0517d1264 100644 (file)
@@ -35,10 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.undo;
 
-// Imports
-import java.util.*;
+import java.util.Hashtable;
+import java.util.Iterator;
 
 /**
  * StateEdit
index f13cd3b3faaab25ae517070a238ac706892cb674..56e1c1b72475fb952dd590a5b9390f769f8204af 100644 (file)
@@ -35,10 +35,11 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.undo;
 
-// Imports
-import javax.swing.event.*;
+import javax.swing.event.UndoableEditEvent;
+import javax.swing.event.UndoableEditListener;
 
 /**
  * UndoManager
index f09f3ffad4b00b9f634413226374642cc1933928..4e12c7c6b169897026ec1499866b9dbba7219bc2 100644 (file)
@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
+
 package javax.swing.undo;
 
-// Imports
-import java.util.*;
-import javax.swing.event.*;
+import java.util.Vector;
+import javax.swing.event.UndoableEditEvent;
+import javax.swing.event.UndoableEditListener;
 
 /**
  * UndoableEditSupport