AbstractAction.java, [...]: New versions from classpath.

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
This commit is contained in:
Michael Koch 2003-06-11 13:20:41 +00:00 committed by Michael Koch
parent 658cf52f51
commit d6c2458f4e
109 changed files with 1492 additions and 806 deletions

View 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> 2003-06-11 Michael Koch <konqueror@gmx.de>
* java/nio/MappedByteBuffer.java, * java/nio/MappedByteBuffer.java,

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports
import java.awt.event.*; import java.awt.event.*;
import java.beans.*; import java.beans.*;
import java.io.*; import java.io.*;
@ -207,12 +207,4 @@ public abstract class AbstractAction
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(listener); changeSupport.removePropertyChangeListener(listener);
} // removePropertyChangeListener() } // removePropertyChangeListener()
}
/**
* actionPerformed
* @param event TODO
*/
public abstract void actionPerformed(ActionEvent event);
} // AbstractAction

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Graphics;
import java.awt.event.*; import java.awt.Image;
import java.awt.Insets;
import javax.swing.event.*; import java.awt.ItemSelectable;
import javax.swing.plaf.*; import java.awt.Point;
import javax.swing.text.*; import java.awt.Rectangle;
import javax.accessibility.*; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.*; import java.awt.event.FocusEvent;
import java.beans.*; 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 * Provides basic button functionality
@ -54,7 +69,7 @@ import java.beans.*;
* @author Ronald Veldema (rveldema@cs.vu.nl) * @author Ronald Veldema (rveldema@cs.vu.nl)
*/ */
public abstract class AbstractButton extends JComponent public abstract class AbstractButton extends JComponent
implements ItemSelectable, SwingConstants implements ItemSelectable, SwingConstants
{ {
Icon default_icon, pressed_button, disabled_button, Icon default_icon, pressed_button, disabled_button,
selected_button, disabled_selected_button, current_icon; selected_button, disabled_selected_button, current_icon;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.io.Serializable;
import java.io.*; import java.util.EventObject;
import java.util.*; import javax.swing.event.CellEditorListener;
import javax.swing.event.*; import javax.swing.event.ChangeEvent;
import javax.swing.event.EventListenerList;
/** /**
* AbstractCellEditor * AbstractCellEditor

View file

@ -189,17 +189,4 @@ public abstract class AbstractListModel
{ {
return (ListDataListener[]) getListeners (ListDataListener.class); return (ListDataListener[]) getListeners (ListDataListener.class);
} }
/**
* getElementAt
* @param index TODO
* @returns Object
*/
public abstract Object getElementAt (int index);
/**
* getSize
* @returns int
*/
public abstract int getSize ();
} }

View file

@ -38,332 +38,406 @@ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Color;
import java.awt.font.*; import java.awt.Font;
import javax.swing.border.*; 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 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) 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; return null;
} }
/**
public static Border createRaisedBevelBorder() * 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
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.) * createMatteBorder(int,int,int,int,Color).
*
Returns: * @param color A color to use for the line.
the Border object * @param thickness An int specifying the width in pixels.
createLoweredBevelBorder *
* @return The Border object
*/ */
return null; public static Border createLineBorder (Color color, int thickness)
} {
return new LineBorder (color, thickness);
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.) * Created a border with a raised beveled edge, using brighter shades of
* the component's current background color for highlighting, and darker
Returns: * shading for shadows. (In a raised border, highlights are on top and
the Border object * shadows are underneath.)
createBevelBorder *
* @return The Border object
*/ */
return null; public static Border createRaisedBevelBorder ()
} {
return new BevelBorder (BevelBorder.RAISED);
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.). * Created a border with a lowered beveled edge, using brighter shades of
* the component's current background color for highlighting, and darker
Parameters: * shading for shadows. (In a lowered border, shadows are on top and
type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDReturns: * highlights are underneath.)
the Border object *
createBevelBorder * @return The Border object
*/
*/ public static Border createLoweredBevelBorder ()
return null; {
} return new BevelBorder (BevelBorder.LOWERED);
}
public static Border createBevelBorder(int type,
Color highlight, /**
Color shadow) * 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
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. * highlights are underneath.).
*
Parameters: * @param type An int specifying either BevelBorder.LOWERED or
type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDhighlight - a Color object for highlightsshadow - a Color object for shadowsReturns: * BevelBorder.RAISED
the Border object *
createBevelBorder * @Return The Border object
*/
*/ public static Border createBevelBorder (int type)
return null; {
} return new BevelBorder (type);
}
public static Border createBevelBorder(int type,
Color highlightOuter, /**
Color highlightInner, * Create a beveled border of the specified type, using the specified
Color shadowOuter, * highlighting and shadowing. The outer edge of the highlighted area uses
Color shadowInner) * a brighter shade of the highlight color. The inner edge of the shadow
{ /* * area uses a brighter shade of the shadaw color.
*
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
Parameters: * @param highlight A Color object for highlights
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: * @param shadow A Color object for shadows
the Border object *
createEtchedBorder * @return The Border object
*/ */
return null; public static Border createBevelBorder (int type, Color highlight,
} Color shadow)
{
return new BevelBorder (type, highlight, shadow);
public static Border createEtchedBorder() }
{ /*
/**
Create a border with an "etched" look using the component's current background color for highlighting and shading. * Create a beveled border of the specified type, using the specified colors
* for the inner and outer highlight and shadow areas.
Returns: *
the Border object * @param type An int specifying either BevelBorder.LOWERED or
createEtchedBorder * BevelBorder.RAISED
* @param highlightOuter A Color object for the outer edge of the
*/ * highlight area
return null; * @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
public static Border createEtchedBorder(Color highlight, * @param shadowInner A Color object for the inner edge of the shadow area
Color shadow) *
{ /* * @return The Border object
*/
Create a border with an "etched" look using the specified highlighting and shading colors. public static Border createBevelBorder (int type, Color highlightOuter,
Color highlightInner,
Parameters: Color shadowOuter, Color shadowInner)
highlight - a Color object for the border highlightsshadow - a Color object for the border shadowsReturns: {
the Border object return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter,
createTitledBorder shadowInner);
}
*/
return null; /**
} * Create a border with an "etched" look using the component's current
* background color for highlighting and shading.
public static TitledBorder createTitledBorder(String title) *
{ /* * @return The Border object
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. */
public static Border createEtchedBorder ()
Parameters: {
title - a String containing the text of the titleReturns: return new EtchedBorder ();
the TitledBorder object }
createTitledBorder
/**
*/ * Create a border with an "etched" look using the component's current
return null; * background color for highlighting and shading.
} *
* @return The Border object
public static TitledBorder createTitledBorder(Border border) */
{ /* public static Border createEtchedBorder (int etchType)
{
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.) return new EtchedBorder (etchType);
}
Parameters:
border - the Border object to add the title toReturns: /**
the TitledBorder object * Create a border with an "etched" look using the specified highlighting and
createTitledBorder * shading colors.
*
*/ * @param highlight A Color object for the border highlights
return null; * @param shadow A Color object for the border shadows
} *
* @return The Border object
public static TitledBorder createTitledBorder(Border border, */
String title) public static Border createEtchedBorder (Color highlight, Color shadow)
{ /* {
return new EtchedBorder (highlight, shadow);
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: * Create a border with an "etched" look using the specified highlighting and
the TitledBorder object * shading colors.
createTitledBorder *
* @param highlight A Color object for the border highlights
*/ * @param shadow A Color object for the border shadows
return null; *
} * @return The Border object
*/
public static TitledBorder createTitledBorder(Border border, public static Border createEtchedBorder (int etchType, Color highlight,
String title, Color shadow)
int titleJustification, {
int titlePosition) return new EtchedBorder (etchType, highlight, shadow);
{ /* }
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. /**
* Create a new title border specifying the text of the title, using the
Parameters: * default border (etched), using the default text position (sitting on the
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: * top line) and default justification (left) and using the default font and
the TitledBorder object * text color determined by the current look and feel.
createTitledBorder *
* @param title A String containing the text of the title
*/ *
return null; * @return The TitledBorder object
} */
public static TitledBorder createTitledBorder (String title)
public static TitledBorder createTitledBorder(Border border, {
String title, return new TitledBorder (title);
int titleJustification, }
int titlePosition,
Font titleFont) /**
{ /* * Create a new title border with an empty title specifying the border
* object, using the default text position (sitting on the top line) and
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. * default justification (left) and using the default font, text color,
* and border determined by the current look and feel. (The Motif and Windows
Parameters: * look and feels use an etched border; The Java look and feel use a
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: * gray border.)
the TitledBorder object *
createTitledBorder * @param border The Border object to add the title to
*
*/ * @return The TitledBorder object
return null; */
} public static TitledBorder createTitledBorder (Border border)
{
public static TitledBorder createTitledBorder(Border border, return new TitledBorder (border);
String title, }
int titleJustification,
int titlePosition, /**
Font titleFont, * Add a title to an existing border, specifying the text of the title, using
Color titleColor) * 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.
Add a title to an existing border, specifying the text of the title along with its positioning, font, and color. *
* @param order The Border object to add the title to
Parameters: * @param title A String containing the text of the title
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 * @return The TitledBorder object
createEmptyBorder */
public static TitledBorder createTitledBorder (Border border, String title)
*/ {
return null; return new TitledBorder (border, title);
} }
public static Border createEmptyBorder() /**
{ /* * 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
Creates an empty border that takes up no space. (The width of the top, bottom, left, and right sides are all zero.) * the current look and feel.
*
Returns: * @param border The Border object to add the title to
the Border object * @param title A String containing the text of the title
createEmptyBorder * @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).
return null; * @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,
public static Border createEmptyBorder(int top, * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
int left, * line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
int bottom, *
int right) * @return The TitledBorder object
{ /* */
public static TitledBorder createTitledBorder (Border border, String title,
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. int titleJustification,
int 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 pixelsReturns: return new TitledBorder (border, title, titleJustification, titlePosition);
the Border object }
createCompoundBorder
/**
*/ * Add a title to an existing border, specifying the text of the title along
return null; * with its positioning and font, using the default text color determined by
} * the current look and feel.
*
public static CompoundBorder createCompoundBorder() * @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
Create a compound border with a null inside edge and a null outside edge. * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
* TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
Returns: * @param titlePosition - an int specifying the vertical position of the
the CompoundBorder object * text in relation to the border -- one of: TitledBorder.ABOVE_TOP,
createCompoundBorder * TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP,
*/ * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
return null; * line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
} * @param titleFont - a Font object specifying the title font
*
* @return The TitledBorder object
public static CompoundBorder createCompoundBorder(Border outsideBorder, */
Border insideBorder) public static TitledBorder createTitledBorder (Border border, String title,
{ /* int titleJustification,
int titlePosition,
Create a compound border specifying the border objects to use for the outside and inside edges. Font titleFont)
{
Parameters: return new TitledBorder (border, title, titleJustification, titlePosition,
outsideBorder - a Border object for the outer edge of the compound borderinsideBorder - a Border object for the inner edge of the compound borderReturns: titleFont);
the CompoundBorder object }
createMatteBorder
*/ /**
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
public static MatteBorder createMatteBorder(int top, * @param title - a String containing the text of the title
int left, * @param titleJustification - an int specifying the left/right position of
int bottom, * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
int right, * TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
Color color) * @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,
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.) * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom
* line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
Parameters: * @param titleFont - a Font object specifying the title font
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: * @param titleColor - a Color object specifying the title color
the MatteBorder object *
createMatteBorder * @return The TitledBorder object
*/
*/ public static TitledBorder createTitledBorder (Border border,
return null; String title,
} int titleJustification,
int titlePosition,
public static MatteBorder createMatteBorder(int top, Font titleFont,
int left, Color titleColor)
int bottom, {
int right, return new TitledBorder (border, title, titleJustification, titlePosition,
Icon tileIcon) titleFont, titleColor);
{ /* }
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. (The width of the top,
Note: * bottom, left, and right sides are all zero.)
If the icon doesn't load, the border area is painted gray. *
* @return The Border object
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: public static Border createEmptyBorder ()
the MatteBorder object {
return new EmptyBorder (0, 0, 0, 0);
*/ }
return null;
} /**
* 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);
}
/**
* 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 ();
}
/**
* 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);
}
/**
* 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);
}
} }

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.accessibility.Accessible;
/** /**
* Needs some work I guess.... * Needs some work I guess....
* *
* @author Ronald Veldema (rveldema@cs.vu.nl) * @author Ronald Veldema (rveldema@cs.vu.nl)
*/ */
public class Box extends JComponent public class Box extends JComponent implements Accessible
{ {
Box(int a) Box(int a)
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; 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. * A layout for swing components.
@ -46,7 +52,7 @@ import java.awt.*;
* *
* @author Ronald Veldema (rveldema@cs.vu.nl) * @author Ronald Veldema (rveldema@cs.vu.nl)
*/ */
public class BoxLayout implements LayoutManager2 public class BoxLayout implements LayoutManager2, Serializable
{ {
GridLayout gridbag; GridLayout gridbag;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.io.*; import java.io.Serializable;
import java.util.*; import java.util.Enumeration;
import javax.swing.event.*; import java.util.Vector;
public class ButtonGroup implements Serializable public class ButtonGroup implements Serializable
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.util.*; import java.awt.event.ActionEvent;
import java.awt.event.*; import java.awt.event.ActionListener;
import java.awt.*; import java.awt.event.ItemEvent;
import javax.swing.event.*; 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 public class DefaultButtonModel
implements ButtonModel, java.io.Serializable implements ButtonModel, Serializable
{ {
static final long serialVersionUID = -5342609566534980231L; static final long serialVersionUID = -5342609566534980231L;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.util.ArrayList;
import java.util.*; import java.util.Enumeration;
import java.util.NoSuchElementException;
import java.util.Vector;
/** /**
* DefaultListModel * DefaultListModel
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class DefaultListModel extends AbstractListModel { public class DefaultListModel extends AbstractListModel
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Variables -------------------------------------------------- // Variables --------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.swing.event.*; import java.io.Serializable;
import java.util.*; 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; int mode = SINGLE_SELECTION;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Component;
import java.awt.*; import java.awt.DefaultKeyboardFocusManager;
import java.awt.event.*; import java.awt.event.KeyEvent;
/** /**
* FocusManager * FocusManager
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public abstract class FocusManager { public abstract class FocusManager extends DefaultKeyboardFocusManager
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Component;
import java.awt.image.*; 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 public class ImageIcon implements Icon
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.io.IOException;
import java.util.*; import java.io.ObjectInputStream;
import java.io.*; 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 * InputMap

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.applet.*; import java.applet.Applet;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.event.*; 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.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
public class JApplet extends Applet public class JApplet extends Applet
{ {

View file

@ -49,6 +49,8 @@ import javax.accessibility.*;
*/ */
public class JButton extends AbstractButton implements Accessible public class JButton extends AbstractButton implements Accessible
{ {
private static final long serialVersionUID = -1907255238954382202L;
boolean def, is_def; boolean def, is_def;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import javax.accessibility.AccessibleContext;
import java.awt.event.*;
import javax.swing.plaf.*;
import javax.accessibility.*;
/** /**
* An instance of JCheckbox can be added to a panel, frame etc * An instance of JCheckbox can be added to a panel, frame etc

View file

@ -46,7 +46,8 @@ import javax.accessibility.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible { public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Color;
import java.awt.*; import java.awt.Component;
import java.awt.event.*; import java.awt.event.ActionListener;
import java.io.*; import java.io.IOException;
import javax.accessibility.*; import java.io.ObjectOutputStream;
import javax.swing.colorchooser.*; import javax.accessibility.Accessible;
import javax.swing.plaf.*; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.swing.colorchooser.AbstractColorChooserPanel;
import javax.swing.colorchooser.ColorSelectionModel;
import javax.swing.plaf.ColorChooserUI;
/** /**
* JColorChooser * JColorChooser

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports
import java.awt.*; import java.awt.*;
import java.awt.event.*; import java.awt.event.*;
import java.beans.*; import java.beans.*;
@ -52,8 +52,11 @@ import javax.swing.plaf.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JComboBox extends JComponent implements ItemSelectable, public class JComboBox extends JComponent
ListDataListener, ActionListener, Accessible { implements ItemSelectable, ListDataListener, ActionListener, Accessible
{
private static final long serialVersionUID = 5654585963292734470L;
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------
@ -766,6 +769,7 @@ public class JComboBox extends JComponent implements ItemSelectable,
/** /**
* isFocusTraversable * isFocusTraversable
* @returns boolean * @returns boolean
* @deprecated
*/ */
public boolean isFocusTraversable() { public boolean isFocusTraversable() {
return false; // TODO return false; // TODO

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.AWTEvent;
import java.awt.peer.*; import java.awt.Color;
import java.awt.event.*; import java.awt.Component;
import java.io.*; import java.awt.Container;
import java.awt.Dimension;
import javax.swing.event.*; import java.awt.FlowLayout;
import javax.swing.border.*; import java.awt.Font;
import javax.swing.plaf.*; import java.awt.Graphics;
import java.awt.Insets;
import java.util.*; import java.awt.Point;
import java.beans.*; import java.awt.Rectangle;
import java.awt.event.ActionListener;
import javax.accessibility.*; 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). * Every component in swing inherits from this class (JLabel, JButton, etc).

View file

@ -47,7 +47,8 @@ import javax.swing.plaf.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JDesktopPane extends JLayeredPane implements Accessible { public class JDesktopPane extends JLayeredPane implements Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.event.*; 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.Accessible;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
/** /**
* Unlike JComponent derivatives, JDialog inherits from * Unlike JComponent derivatives, JDialog inherits from

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.io.*; import java.awt.Dimension;
import java.net.*; import java.awt.event.KeyEvent;
import javax.swing.text.*; import java.io.InputStream;
import javax.swing.event.*; import java.net.URL;
import java.awt.event.*; import javax.accessibility.AccessibleContext;
import java.awt.*; import javax.swing.text.EditorKit;
import javax.accessibility.*; 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 public class JEditorPane extends JTextComponent
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Component;
import java.awt.*; import java.awt.event.ActionListener;
import java.awt.event.*; import java.io.File;
import java.io.*; import java.io.IOException;
import java.util.*; import java.io.ObjectOutputStream;
import javax.accessibility.*; import java.util.Vector;
import javax.swing.filechooser.*; import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.swing.filechooser.FileFilter; 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 * JFileChooser

View file

@ -41,6 +41,7 @@ package javax.swing;
import java.awt.event.FocusEvent; import java.awt.event.FocusEvent;
import java.io.Serializable; import java.io.Serializable;
import java.text.Format; import java.text.Format;
import java.text.ParseException;
import javax.swing.text.Document; import javax.swing.text.Document;
import javax.swing.text.DocumentFilter; import javax.swing.text.DocumentFilter;
import javax.swing.text.NavigationFilter; import javax.swing.text.NavigationFilter;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.event.*; 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.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
/** /**
* Unlike JComponent derivatives, JFrame inherits from * Unlike JComponent derivatives, JFrame inherits from

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Component;
import javax.swing.plaf.*; import java.awt.Image;
import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole; import javax.swing.plaf.LabelUI;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
public class JLabel extends JComponent implements Accessible, SwingConstants
public class JLabel extends JComponent implements SwingConstants
{ {
String text; String text;
Icon icon; Icon icon;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; 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() JLayeredPane()
{ {

View file

@ -1,5 +1,5 @@
/* JList.java -- /* JList.java --
Copyright (C) 2002 Free Software Foundation, Inc. Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.swing.event.*; import java.awt.Color;
import java.awt.Dimension;
import java.awt.*; import java.awt.Rectangle;
import javax.swing.plaf.*; import java.util.Vector;
import java.util.*; import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole; import javax.swing.event.ListDataEvent;
import javax.accessibility.AccessibleState; import javax.swing.event.ListDataListener;
import javax.accessibility.AccessibleStateSet; 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; Color select_back, select_fore;
ListCellRenderer render; ListCellRenderer render;
@ -143,14 +143,13 @@ public class JList extends JComponent implements Scrollable
public void setListData(final Vector listData) public void setListData(final Vector listData)
{ {
// XXX - FIXME Don't also name this AL, workaround for gcj 3.1. class AL extends AbstractListModel
class ALData extends AbstractListModel
{ {
public int getSize() { return listData.size(); } public int getSize() { return listData.size(); }
public Object getElementAt(int i) { return listData.elementAt(i); } public Object getElementAt(int i) { return listData.elementAt(i); }
}; };
setModel (new ALData()); setModel (new AL());
} }

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; 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 public class JMenuBar extends JComponent
{ {
JMenuBar() JMenuBar()

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Component;
import java.awt.*; import java.awt.event.KeyEvent;
import java.awt.event.*; import java.awt.event.MouseEvent;
import java.beans.*; import java.beans.PropertyChangeListener;
import java.io.*; import java.io.IOException;
import javax.accessibility.*; import java.io.ObjectInputStream;
import javax.swing.event.*; import java.io.ObjectOutputStream;
import javax.swing.plaf.*; 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 * JMenuItem

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.BorderLayout;
import javax.swing.plaf.*; import java.awt.Component;
import java.awt.Dialog;
import java.awt.Frame;
import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole; import javax.swing.plaf.OptionPaneUI;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
public class JOptionPane extends JComponent public class JOptionPane extends JComponent
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.FlowLayout;
import javax.swing.plaf.*; import java.awt.LayoutManager;
import javax.swing.plaf.PanelUI;
import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext; 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 * An instance of JPanel can be added to a panel, frame etc
* *
* @author Ronald Veldema (rveldema@cs.vu.nl) * @author Ronald Veldema (rveldema@cs.vu.nl)
*/ */
public class JPanel extends JComponent public class JPanel extends JComponent implements Accessible
{ {
public JPanel() public JPanel()
{ {

View file

@ -218,6 +218,7 @@ public class JPasswordField extends JTextField {
/** /**
* getText * getText
* @returns String * @returns String
* @deprecated
*/ */
public String getText() { public String getText() {
return null; // TODO return null; // TODO
@ -229,6 +230,7 @@ public class JPasswordField extends JTextField {
* @param length TODO * @param length TODO
* @exception BadLocationException TODO * @exception BadLocationException TODO
* @returns String * @returns String
* @deprecated
*/ */
public String getText(int offset, int length) throws BadLocationException { public String getText(int offset, int length) throws BadLocationException {
return null; // TODO return null; // TODO

View file

@ -51,7 +51,8 @@ import javax.swing.plaf.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JPopupMenu extends JComponent implements Accessible, MenuElement { public class JPopupMenu extends JComponent implements Accessible, MenuElement
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View file

@ -49,7 +49,8 @@ import javax.swing.plaf.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JProgressBar extends JComponent implements SwingConstants, Accessible { public class JProgressBar extends JComponent implements SwingConstants, Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import javax.accessibility.AccessibleContext;
import java.awt.event.*;
import javax.swing.plaf.*;
import javax.accessibility.*;
public class JRadioButton extends JToggleButton public class JRadioButton extends JToggleButton
{ {

View file

@ -46,7 +46,8 @@ import javax.accessibility.*;
* @author Andrew Selkirk * @author Andrew Selkirk
* @version 1.0 * @version 1.0
*/ */
public class JRadioButtonMenuItem extends JMenuItem implements Accessible { public class JRadioButtonMenuItem extends JMenuItem implements Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.event.*; import java.awt.Component;
import java.awt.Container;
import javax.accessibility.AccessibleContext; import java.awt.Dimension;
import javax.accessibility.AccessibleRole; import java.awt.LayoutManager;
import javax.accessibility.AccessibleState; import java.awt.LayoutManager2;
import javax.accessibility.AccessibleStateSet; import java.io.Serializable;
import javax.accessibility.Accessible;
import javax.accessibility.AccessibleComponent;
/** /**
* This class is where JComponents are added to. * This class is where JComponents are added to.

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.Adjustable;
import java.awt.event.AdjustmentListener;
import javax.accessibility.Accessible;
public class JScrollBar extends JComponent public class JScrollBar extends JComponent
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Component;
import javax.swing.plaf.*; import javax.accessibility.Accessible;
import javax.swing.plaf.ScrollPaneUI;
public class JScrollPane extends JComponent implements Accessible, ScrollPaneConstants
public class JScrollPane extends JComponent
{ {
protected JViewport columnHeader; protected JViewport columnHeader;
protected JViewport rowHeader; protected JViewport rowHeader;

View file

@ -48,7 +48,8 @@ import javax.swing.plaf.*;
* @version 1.0 * @version 1.0
*/ */
public class JSeparator extends JComponent public class JSeparator extends JComponent
implements SwingConstants, Accessible { implements SwingConstants, Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.io.IOException;
import java.io.*; import java.io.ObjectOutputStream;
import java.util.*; import java.io.Serializable;
import javax.accessibility.*; import java.util.Dictionary;
import javax.swing.event.*; import java.util.Hashtable;
import javax.swing.plaf.*; 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 * JSlider

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.util.*; import java.awt.Component;
import javax.swing.plaf.*; import java.util.Vector;
import java.awt.*; import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole; import javax.swing.event.ChangeEvent;
import javax.accessibility.AccessibleState; import javax.swing.event.ChangeListener;
import javax.accessibility.AccessibleStateSet; import javax.swing.plaf.TabbedPaneUI;
public class JTabbedPane extends JComponent public class JTabbedPane extends JComponent implements Accessible, SwingConstants
{ {
class Tab class Tab
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension; import java.awt.Dimension;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.util.Hashtable;
import java.util.Vector; import java.util.Vector;
import javax.accessibility.Accessible; import javax.accessibility.Accessible;
import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeEvent;
@ -49,9 +53,10 @@ import javax.swing.event.TableColumnModelEvent;
import javax.swing.event.TableColumnModelListener; import javax.swing.event.TableColumnModelListener;
import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener; import javax.swing.event.TableModelListener;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableModel; import javax.swing.table.TableModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableColumnModel; import javax.swing.table.TableColumnModel;
import javax.swing.table.DefaultTableModel;
public class JTable extends JComponent public class JTable extends JComponent
implements TableModelListener, Scrollable, TableColumnModelListener, implements TableModelListener, Scrollable, TableColumnModelListener,

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.event.*; import java.awt.event.ActionListener;
import java.util.*; import java.util.Vector;
import javax.accessibility.AccessibleStateSet;
import javax.accessibility.*; import javax.swing.text.Document;
import javax.swing.text.JTextComponent;
public class JTextField extends JEditorPane public class JTextField extends JEditorPane
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import javax.accessibility.Accessible;
import java.awt.event.*; import javax.accessibility.AccessibleContext;
import javax.swing.plaf.*; import javax.swing.plaf.ButtonUI;
import javax.accessibility.*;
public class JToggleButton extends AbstractButton public class JToggleButton extends AbstractButton implements Accessible
{ {
public JToggleButton() public JToggleButton()
{ {

View file

@ -50,7 +50,8 @@ import javax.swing.plaf.*;
* @version 1.0 * @version 1.0
*/ */
public class JToolBar extends JComponent public class JToolBar extends JComponent
implements SwingConstants, Accessible { implements SwingConstants, Accessible
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
public class JToolTip extends JComponent implements Accessible
public class JToolTip extends JComponent
{ {
String text; String text;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.Dimension;
import javax.swing.plaf.*; import java.awt.Rectangle;
import javax.accessibility.*; 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 public class JTree extends JComponent implements Scrollable, Accessible
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.swing.plaf.*; import java.awt.Component;
import java.awt.*; 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 public class JViewport extends JComponent
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.event.*; import java.awt.Component;
import javax.accessibility.*; 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 * Unlike JComponent derivatives, JWindow inherits from

View file

@ -37,9 +37,9 @@ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.AWTKeyStroke;
import java.awt.event.*; import java.awt.event.KeyEvent;
import java.io.*; import java.io.Serializable;
/** /**
* KeyStroke * KeyStroke

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.*;
public interface ListSelectionModel public interface ListSelectionModel
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import javax.swing.text.*; import java.awt.Component;
import javax.swing.text.JTextComponent;
public abstract class LookAndFeel public abstract class LookAndFeel
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Component;
import java.awt.*; import java.awt.Dimension;
import java.util.*; import java.awt.Image;
import java.awt.Rectangle;
import java.util.Hashtable;
import java.util.Vector;
/** /**
* RepaintManager * RepaintManager

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.awt.Component;
import java.awt.*; import java.awt.Container;
import java.io.*; import java.awt.Dimension;
import javax.swing.plaf.*; import java.awt.LayoutManager;
import java.awt.Rectangle;
import java.io.Serializable;
/** /**
* ScrollPaneLayout * ScrollPaneLayout

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
// Imports import java.io.Serializable;
import java.io.*;
/** /**
* SizeRequirements * SizeRequirements

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ 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 CENTER = 0;
public static final int TOP = 1; public static final int TOP = 1;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.awt.event.*; import java.awt.event.ActionEvent;
import java.util.*; 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 implements Serializable
public class Timer
{ {
int ticks; int ticks;
static boolean verbose; static boolean verbose;

View file

@ -77,7 +77,7 @@ public class UIDefaults extends Hashtable
Object createValue(UIDefaults table); Object createValue(UIDefaults table);
} // interface LazyValue } // interface LazyValue
public static class ProxyLazyValue public static class ProxyLazyValue implements LazyValue
{ {
public ProxyLazyValue(String s) public ProxyLazyValue(String s)
{ {
@ -101,6 +101,8 @@ public class UIDefaults extends Hashtable
} }
} // class ProxyLazyValue } // class ProxyLazyValue
private static final long serialVersionUID = 7341222528856548117L;
public UIDefaults() public UIDefaults()
{ {
} }

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing; package javax.swing;
import java.io.*; import java.awt.Color;
import java.awt.*; import java.awt.Dimension;
import java.awt.Font;
import javax.swing.border.*; import java.awt.Insets;
import javax.swing.plaf.*; import java.beans.PropertyChangeListener;
import javax.swing.plaf.basic.*; import java.io.Serializable;
import javax.swing.plaf.metal.*; import javax.swing.border.Border;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.metal.MetalLookAndFeel;
import java.beans.*;
public class UIManager implements Serializable public class UIManager implements Serializable
{ {

View file

@ -1,5 +1,5 @@
/* AbstractBorder.java -- /* AbstractBorder.java --
Copyright (C) 2002 Free Software Foundation, Inc. Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
@ -44,85 +44,149 @@ import java.awt.Insets;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.io.Serializable; 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; static final long serialVersionUID = -545885975315191844L;
/**
* Constructs a new AbstractBorder.
*/
public AbstractBorder () public AbstractBorder ()
{ {
} }
public void paintBorder(Component c,
Graphics g, /**
int x, * Performs nothing, because the default implementation provided by
int y, * this class is an invisible, zero-width border. Subclasses will
int width, * likely want to override this method, but they are not required
int height) * 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.
*/
}
/**
* 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);
}
/**
* 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;
}
/**
* 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;
}
/**
* 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)
{ {
System.out.println("HMMMMM, abstract-border.paintBorder"); 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);
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;
}
public Insets getBorderInsets(Component c)
{
return getBorderInsets(c, new Insets(0,0,0,0));
}
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);
}
public static Rectangle getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
{
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);
}
}
} }

View file

@ -1,5 +1,5 @@
/* CompoundBorder.java -- /* CompoundBorder.java --
Copyright (C) 2002 Free Software Foundation, Inc. Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
@ -42,45 +42,212 @@ import java.awt.Component;
import java.awt.Graphics; import java.awt.Graphics;
import java.awt.Insets; 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; 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; 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 () public CompoundBorder ()
{ {
this (null, null); 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) public CompoundBorder (Border outsideBorder, Border insideBorder)
{ {
this.outsideBorder = outsideBorder; this.outsideBorder = outsideBorder;
this.insideBorder = insideBorder; 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) Insets outsideInsets;
s = new Insets(0,0,0,0);
outsideBorder.paintBorder(c, g, x, y, width, height);
s.left = s.right = s.top = s.bottom = 5; outsideInsets = outsideBorder.getBorderInsets(c);
return s; 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, /* If there is an inside border, add it to insets. */
Graphics g, if (insideBorder != null)
int x,
int y,
int width,
int height)
{ {
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;
}
} }

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.colorchooser; package javax.swing.colorchooser;
// Imports import java.awt.Color;
import java.awt.*; import java.awt.Graphics;
import java.io.*; import javax.swing.Icon;
import javax.swing.*; import javax.swing.JColorChooser;
import javax.swing.event.*; import javax.swing.JPanel;
/** /**
* AbstractColorChooserPanel * AbstractColorChooserPanel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.colorchooser; package javax.swing.colorchooser;
// Imports import javax.swing.JComponent;
import javax.swing.*;
/** /**
* ColorChooserComponentFactory * ColorChooserComponentFactory

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.colorchooser; package javax.swing.colorchooser;
// Imports import java.awt.Color;
import java.awt.*; import javax.swing.event.ChangeListener;
import javax.swing.event.*;
/** /**
* ColorSelectionModel * ColorSelectionModel

View file

@ -1,4 +1,4 @@
/* BoundedRangeModel.java -- /* DefaultColorSelectionModel.java --
Copyright (C) 2002 Free Software Foundation, Inc. Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath. 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.colorchooser; package javax.swing.colorchooser;
// Imports import java.awt.Color;
import java.awt.*; import java.io.Serializable;
import java.io.*; import javax.swing.event.ChangeEvent;
import javax.swing.event.*; import javax.swing.event.ChangeListener;
import javax.swing.event.EventListenerList;
/** /**
* DefaultColorSelectionModel * DefaultColorSelectionModel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports import java.awt.AWTEvent;
import javax.swing.*; import java.awt.Container;
import java.awt.*; import javax.swing.JComponent;
/** /**
* Ancestor Event * Ancestor Event

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports import java.net.URL;
import java.net.*; import java.util.EventObject;
import java.util.*; import javax.swing.text.Element;
/** /**
* HyperlinkEvent * HyperlinkEvent
* @author Andrew Selkirk * @author Andrew Selkirk
* @author Ronald Veldema * @author Ronald Veldema
*/ */
public class HyperlinkEvent extends EventObject { public class HyperlinkEvent extends EventObject
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
/** /**
* InternalFrameAdapter * InternalFrameAdapter
* @author Andrew Selkirk * @author Andrew Selkirk
*/ */
public class InternalFrameAdapter extends Object public abstract class InternalFrameAdapter implements InternalFrameListener
implements InternalFrameListener { {
//------------------------------------------------------------- //-------------------------------------------------------------
// Initialization --------------------------------------------- // Initialization ---------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports
import java.awt.AWTEvent; import java.awt.AWTEvent;
import javax.swing.JInternalFrame; import javax.swing.JInternalFrame;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports
import java.util.EventObject; import java.util.EventObject;
/** /**

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
/** /**

View file

@ -49,6 +49,8 @@ import java.util.*;
public final class SwingPropertyChangeSupport public final class SwingPropertyChangeSupport
extends PropertyChangeSupport { extends PropertyChangeSupport {
private static final long serialVersionUID = 7162625831330845068L;
//------------------------------------------------------------- //-------------------------------------------------------------
// Variables -------------------------------------------------- // Variables --------------------------------------------------
//------------------------------------------------------------- //-------------------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports
import java.util.EventObject; import java.util.EventObject;
import javax.swing.table.TableModel; import javax.swing.table.TableModel;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.event; package javax.swing.event;
// Imports
import java.util.EventListener; import java.util.EventListener;
import javax.swing.tree.ExpandVetoException;
/** /**
* TreeWillExpandListener interface * TreeWillExpandListener interface

View file

@ -48,6 +48,8 @@ import javax.swing.undo.*;
*/ */
public class UndoableEditEvent extends EventObject { public class UndoableEditEvent extends EventObject {
private static final long serialVersionUID = 4418044561759134484L;
//------------------------------------------------------------- //-------------------------------------------------------------
// Variables -------------------------------------------------- // Variables --------------------------------------------------
//------------------------------------------------------------- //-------------------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.filechooser; package javax.swing.filechooser;
// Imports import java.io.File;
import java.io.*;
/** /**
* FileFilter * FileFilter

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.filechooser; package javax.swing.filechooser;
// Imports import java.io.File;
import java.io.*; import java.io.IOException;
import javax.swing.Icon;
/** /**
* FileSystemView * FileSystemView

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.filechooser; package javax.swing.filechooser;
// Imports import java.io.File;
import java.io.*; import javax.swing.Icon;
import javax.swing.*;
/** /**
* FileView * FileView

View file

@ -67,7 +67,6 @@ public class BorderUIResource
*/ */
public BorderUIResource(Border delegate) public BorderUIResource(Border delegate)
{ {
super ();
this.delegate = delegate; this.delegate = delegate;
} }
@ -128,7 +127,7 @@ public class BorderUIResource
Color highlight, Color highlight,
Color shadow) Color shadow)
{ {
super (bevelType); super (bevelType, highlight, shadow);
} }
public BevelBorderUIResource(int bevelType, public BevelBorderUIResource(int bevelType,
Color highlightOuter, Color highlightOuter,
@ -136,7 +135,8 @@ public class BorderUIResource
Color shadowOuter, Color shadowOuter,
Color shadowInner) Color shadowInner)
{ {
super (bevelType); super (bevelType, highlightOuter, highlightInner, shadowOuter,
shadowInner);
} }
} }
@ -191,7 +191,7 @@ public class BorderUIResource
public EtchedBorderUIResource(int etchType, Color highlight, public EtchedBorderUIResource(int etchType, Color highlight,
Color shadow) Color shadow)
{ {
super (etchType); super (etchType, highlight, shadow);
} }
} }
@ -210,7 +210,7 @@ public class BorderUIResource
public LineBorderUIResource(Color color, public LineBorderUIResource(Color color,
int thickness) int thickness)
{ {
super (color); super (color, thickness);
} }
} }
@ -224,12 +224,13 @@ public class BorderUIResource
public MatteBorderUIResource(int top, int left, int bottom, public MatteBorderUIResource(int top, int left, int bottom,
int right, Color color) 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, public MatteBorderUIResource(int top, int left, int bottom,
int right, Icon tileIcon) int right, Icon tileIcon)
{ {
super (top, left, bottom, right, tileIcon); super (new Insets (top, left, bottom, right), tileIcon);
} }
public MatteBorderUIResource(Icon tileIcon) public MatteBorderUIResource(Icon tileIcon)
{ {
@ -254,24 +255,24 @@ public class BorderUIResource
} }
TitledBorderUIResource(Border border, String title) TitledBorderUIResource(Border border, String title)
{ {
super (border); super (border, title);
} }
TitledBorderUIResource(Border border, String title, TitledBorderUIResource(Border border, String title,
int titleJustification, int titlePosition) int titleJustification, int titlePosition)
{ {
super (border); super (border, title, titleJustification, titlePosition);
} }
TitledBorderUIResource(Border border, String title, TitledBorderUIResource(Border border, String title,
int titleJustification, int titlePosition, int titleJustification, int titlePosition,
Font titleFont) Font titleFont)
{ {
super (border); super (border, title, titleJustification, titlePosition, titleFont);
} }
TitledBorderUIResource(Border border, String title, TitledBorderUIResource(Border border, String title,
int titleJustification, int titlePosition, int titleJustification, int titlePosition,
Font titleFont, Color titleColor) Font titleFont, Color titleColor)
{ {
super (border); super (border, title, titleJustification, titlePosition, titleFont, titleColor);
} }
} }
} }

View file

@ -38,9 +38,12 @@ exception statement from your version. */
package javax.swing.plaf.basic; package javax.swing.plaf.basic;
import javax.swing.*; import java.awt.Color;
import java.awt.*; import java.awt.Component;
import javax.swing.border.*; import java.awt.Graphics;
import java.awt.Insets;
import javax.swing.UIDefaults;
import javax.swing.border.MatteBorder;
class BasicBorder extends MatteBorder class BasicBorder extends MatteBorder
{ {

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.table; package javax.swing.table;
// Imports import java.io.Serializable;
import java.io.*; import java.util.EventListener;
import java.util.*; import javax.swing.event.EventListenerList;
import javax.swing.event.*; import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
/** /**
* AbstractTableModel * AbstractTableModel

View file

@ -37,10 +37,13 @@ exception statement from your version. */
package javax.swing.table; package javax.swing.table;
import java.awt.Component; import java.awt.Component;
import java.io.Serializable; import java.io.Serializable;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JTable; import javax.swing.JTable;
import javax.swing.border.Border;
/** /**
* STUBBED * STUBBED
*/ */

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.table; package javax.swing.table;
// Imports import java.beans.PropertyChangeEvent;
import java.beans.*; import java.beans.PropertyChangeListener;
import java.io.*; import java.io.Serializable;
import java.util.*; import java.util.Enumeration;
import javax.swing.*; import java.util.EventListener;
import javax.swing.event.*; 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 * DefaultTableColumnModel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.table; package javax.swing.table;
// Imports import java.io.Serializable;
import java.io.*; import java.util.Vector;
import java.util.*; import javax.swing.event.TableModelEvent;
import javax.swing.event.*;
/** /**
* DefaultTableModel * DefaultTableModel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.table; package javax.swing.table;
// Imports import java.beans.PropertyChangeListener;
import java.beans.*; import java.io.Serializable;
import java.io.*; import javax.swing.event.SwingPropertyChangeSupport;
import javax.swing.event.*;
/** /**
* TableColumn * TableColumn

View file

@ -43,13 +43,20 @@ import java.awt.Dimension;
import java.awt.Image; import java.awt.Image;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.awt.Point; 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.Icon;
import javax.swing.JComponent; import javax.swing.JComponent;
import javax.swing.KeyStroke; import javax.swing.KeyStroke;
import javax.swing.Scrollable; import javax.swing.Scrollable;
import javax.swing.UIManager; 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; import javax.swing.plaf.TextUI;
public abstract class JTextComponent extends JComponent public abstract class JTextComponent extends JComponent

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.awt.Rectangle;
import java.awt.*; import java.util.Enumeration;
import java.util.*; import javax.swing.event.TreeModelEvent;
import javax.swing.event.*;
/** /**
* AbstractLayoutCache * AbstractLayoutCache
* @author Andrew Selkirk * @author Andrew Selkirk
*/ */
public abstract class AbstractLayoutCache implements RowMapper { public abstract class AbstractLayoutCache implements RowMapper
{
//------------------------------------------------------------- //-------------------------------------------------------------
// Classes ---------------------------------------------------- // Classes ----------------------------------------------------

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.io.IOException;
import java.io.*; import java.io.ObjectInputStream;
import java.util.*; 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 * DefaultMutableTreeNode

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.awt.Color;
import java.awt.*; import java.awt.Component;
import java.awt.event.*; import java.awt.Container;
import java.io.*; import java.awt.Dimension;
import java.util.*; import java.awt.Font;
import javax.swing.*; import java.awt.Graphics;
import javax.swing.border.*; import java.awt.event.ActionEvent;
import javax.swing.event.*; 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 * DefaultTreeCellEditor

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.awt.Color;
import java.awt.*; import java.awt.Component;
import javax.swing.*; 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 * DefaultTreeCellRenderer

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.io.IOException;
import java.io.*; import java.io.ObjectInputStream;
import java.util.*; import java.io.ObjectOutputStream;
import javax.swing.event.*; import java.io.Serializable;
import java.util.EventListener;
import javax.swing.event.EventListenerList;
import javax.swing.event.TreeModelListener;
/** /**
* DefaultTreeModel * DefaultTreeModel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.beans.PropertyChangeListener;
import java.beans.*; import java.io.IOException;
import java.io.*; import java.io.ObjectInputStream;
import java.util.*; import java.io.ObjectOutputStream;
import javax.swing.*; import java.io.Serializable;
import javax.swing.event.*; 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 * DefaultTreeSelectionModel

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import java.awt.Rectangle;
import java.awt.*; import java.util.Enumeration;
import java.util.*; import javax.swing.event.TreeModelEvent;
import javax.swing.event.*;
/** /**
* FixedHeightLayoutCache * FixedHeightLayoutCache

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports
import java.awt.Component; import java.awt.Component;
import javax.swing.JTree; import javax.swing.JTree;

View 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 obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package javax.swing.tree; package javax.swing.tree;
// Imports import javax.swing.event.TreeModelListener;
import javax.swing.event.*;
/** /**
* TreeModel interface * TreeModel interface

Some files were not shown because too many files have changed in this diff Show more