JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Class
javax.swing.JComponent

Packages that use JComponent
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.colorchooser Contains classes and interfaces used by the JColorChooser component. 
javax.swing.event Provides for events fired by Swing components. 
javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel. 
javax.swing.plaf.metal Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. 
javax.swing.plaf.multi Provides user interface objects that combine two or more look and feels. 
javax.swing.table Provides classes and interfaces for dealing with javax.swing.JTable
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.tree Provides classes and interfaces for dealing with javax.swing.JTree
 

Uses of JComponent in javax.swing
 

Subclasses of JComponent in javax.swing
 class AbstractButton
          Defines common behaviors for buttons and menu items.
 class Box
          A lightweight container that uses a BoxLayout object as its layout manager.
static class Box.Filler
          An implementation of a lightweight component that participates in layout but has no view.
 class DefaultListCellRenderer
          Renders an item in a list.
static class DefaultListCellRenderer.UIResource
          A subclass of DefaultListCellRenderer that implements UIResource.
 class JButton
          An implementation of a "push" button.
 class JCheckBox
          An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.
 class JCheckBoxMenuItem
          A menu item that can be selected or deselected.
 class JColorChooser
          JColorChooser provides a pane of controls designed to allow a user to manipulate and select a color.
 class JComboBox
          A component that combines a button or editable field and a drop-down list.
 class JDesktopPane
          A container used to create a multiple-document interface or a virtual desktop.
 class JEditorPane
          A text component to edit various kinds of content.
 class JFileChooser
          JFileChooser provides a simple mechanism for the user to choose a file.
 class JFormattedTextField
          JFormattedTextField extends JTextField adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.
 class JInternalFrame
          A lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.
static class JInternalFrame.JDesktopIcon
          This component represents an iconified version of a JInternalFrame.
 class JLabel
          A display area for a short text string or an image, or both.
 class JLayeredPane
          JLayeredPane adds depth to a JFC/Swing container, allowing components to overlap each other when needed.
 class JList
          A component that allows the user to select one or more objects from a list.
 class JMenu
          An implementation of a menu -- a popup window containing JMenuItems that is displayed when the user selects an item on the JMenuBar.
 class JMenuBar
          An implementation of a menu bar.
 class JMenuItem
          An implementation of an item in a menu.
 class JOptionPane
          JOptionPane makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.
 class JPanel
          JPanel is a generic lightweight container.
 class JPasswordField
          JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
 class JPopupMenu
          An implementation of a popup menu -- a small window that pops up and displays a series of choices.
static class JPopupMenu.Separator
          A popup menu-specific separator.
 class JProgressBar
          A component that, by default, displays an integer value within a bounded interval.
 class JRadioButton
          An implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user.
 class JRadioButtonMenuItem
          An implementation of a radio button menu item.
 class JRootPane
          A lightweight container used behind the scenes by JFrame, JDialog, JWindow, JApplet, and JInternalFrame.
 class JScrollBar
          An implementation of a scrollbar.
 class JScrollPane
          Provides a scrollable view of a lightweight component.
protected  class JScrollPane.ScrollBar
          By default JScrollPane creates scrollbars that are instances of this class.
 class JSeparator
          JSeparator provides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings.
 class JSlider
          A component that lets the user graphically select a value by sliding a knob within a bounded interval.
 class JSpinner
          A single line input field that lets the user select a number or an object value from an ordered sequence.
static class JSpinner.DateEditor
          An editor for a JSpinner whose model is a SpinnerDateModel.
static class JSpinner.DefaultEditor
          A simple base class for more specialized editors that displays a read-only view of the model's current value with a JFormattedTextField.
static class JSpinner.ListEditor
          An editor for a JSpinner whose model is a SpinnerListModel.
static class JSpinner.NumberEditor
          An editor for a JSpinner whose model is a SpinnerNumberModel.
 class JSplitPane
          JSplitPane is used to divide two (and only two) Components.
 class JTabbedPane
          A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.
 class JTable
          The JTable is used to display and edit regular two-dimensional tables of cells.
 class JTextArea
          A JTextArea is a multi-line area that displays plain text.
 class JTextField
          JTextField is a lightweight component that allows the editing of a single line of text.
 class JTextPane
          A text component that can be marked up with attributes that are represented graphically.
 class JToggleButton
          An implementation of a two-state button.
 class JToolBar
          JToolBar provides a component that is useful for displaying commonly used Actions or controls.
static class JToolBar.Separator
          A toolbar-specific separator.
 class JToolTip
          Used to display a "Tip" for a Component.
 class JTree
           A control that displays a set of hierarchical data as an outline.
 class JViewport
          The "viewport" or "porthole" through which you see the underlying information.
 

Fields in javax.swing declared as JComponent
protected  JComponent DefaultCellEditor.editorComponent
          The Swing component being edited.
 

Methods in javax.swing that return JComponent
 JComponent JColorChooser.getPreviewPanel()
          Returns the preview panel that shows a chosen color.
protected  JComponent JSpinner.createEditor(SpinnerModel model)
          This method is called by the constructors to create the JComponent that displays the current value of the sequence.
 JComponent JSpinner.getEditor()
          Returns the component that displays and potentially changes the model's value.
 JComponent JFileChooser.getAccessory()
          Returns the accessory component.
 JComponent JToolTip.getComponent()
          Returns the component the tooltip applies to.
 JComponent ComponentInputMap.getComponent()
          Returns the component the InputMap was created for.
 

Methods in javax.swing with parameters of type JComponent
 void JColorChooser.setPreviewPanel(JComponent preview)
          Sets the current preview panel.
 void DefaultDesktopManager.beginDraggingFrame(JComponent f)
           
 void DefaultDesktopManager.dragFrame(JComponent f, int newX, int newY)
          Moves the visible location of the frame being dragged to the location specified.
 void DefaultDesktopManager.endDraggingFrame(JComponent f)
           
 void DefaultDesktopManager.beginResizingFrame(JComponent f, int direction)
           
 void DefaultDesktopManager.resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          Calls setBoundsForFrame with the new values.
 void DefaultDesktopManager.endResizingFrame(JComponent f)
           
 void DefaultDesktopManager.setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          This moves the JComponent and repaints the damaged areas.
 void JSpinner.setEditor(JComponent editor)
          Changes the JComponent that displays the current value of the SpinnerModel.
 void JFileChooser.setAccessory(JComponent newAccessory)
          Sets the accessory component.
 void ToolTipManager.registerComponent(JComponent component)
          Registers a component for tooltip management.
 void ToolTipManager.unregisterComponent(JComponent component)
          Removes a component from tooltip control.
 void DesktopManager.beginDraggingFrame(JComponent f)
          This method is normally called when the user has indicated that they will begin dragging a component around.
 void DesktopManager.dragFrame(JComponent f, int newX, int newY)
          The user has moved the frame.
 void DesktopManager.endDraggingFrame(JComponent f)
          This method signals the end of the dragging session.
 void DesktopManager.beginResizingFrame(JComponent f, int direction)
          This methods is normally called when the user has indicated that they will begin resizing the frame.
 void DesktopManager.resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          The user has resized the component.
 void DesktopManager.endResizingFrame(JComponent f)
          This method signals the end of the resize session.
 void DesktopManager.setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          This is a primitive reshape method.
static RepaintManager RepaintManager.currentManager(JComponent c)
          Return the RepaintManager for the calling thread given a JComponent.
 void RepaintManager.addInvalidComponent(JComponent invalidComponent)
          Mark the component as in need of layout and queue a runnable for the event dispatching thread that will validate the components first isValidateRoot() ancestor.
 void RepaintManager.removeInvalidComponent(JComponent component)
          Remove a component from the list of invalid components.
 void RepaintManager.addDirtyRegion(JComponent c, int x, int y, int w, int h)
          Add a component in the list of components that should be refreshed.
 Rectangle RepaintManager.getDirtyRegion(JComponent aComponent)
          Return the current dirty region for a component.
 void RepaintManager.markCompletelyDirty(JComponent aComponent)
          Mark a component completely dirty.
 void RepaintManager.markCompletelyClean(JComponent aComponent)
          Mark a component completely clean.
 boolean RepaintManager.isCompletelyDirty(JComponent aComponent)
          Convenience method that returns true if aComponent will be completely painted during the next paintDirtyRegions().
static void LookAndFeel.installColors(JComponent c, String defaultBgName, String defaultFgName)
          Convenience method for initializing a component's foreground and background color properties with values from the current defaults table.
static void LookAndFeel.installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName)
          Convenience method for initializing a components foreground background and font properties with values from the current defaults table.
static void LookAndFeel.installBorder(JComponent c, String defaultBorderName)
          Convenience method for installing a component's default Border object on the specified component if either the border is currently null or already an instance of UIResource.
static void LookAndFeel.uninstallBorder(JComponent c)
          Convenience method for un-installing a component's default border on the specified component if the border is currently an instance of UIResource.
static ComponentInputMap LookAndFeel.makeComponentInputMap(JComponent c, Object[] keys)
          Creates a ComponentInputMap from keys.
 ComponentUI UIDefaults.getUI(JComponent target)
          Creates an ComponentUI implementation for the specified component.
static ComponentUI UIManager.getUI(JComponent target)
          Returns the L&F object that renders the target component.
static String SwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
          Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.
static void SwingUtilities.replaceUIInputMap(JComponent component, int type, InputMap uiInputMap)
          Convenience method to change the UI InputMap for component to uiInputMap.
static void SwingUtilities.replaceUIActionMap(JComponent component, ActionMap uiActionMap)
          Convenience method to change the UI ActionMap for component to uiActionMap.
static InputMap SwingUtilities.getUIInputMap(JComponent component, int condition)
          Returns the InputMap provided by the UI for condition condition in component component.
static ActionMap SwingUtilities.getUIActionMap(JComponent component)
          Returns the ActionMap provided by the UI in component component.
static Rectangle SwingUtilities.calculateInnerArea(JComponent c, Rectangle r)
          Stores the position and size of the inner painting area of the specified component in r and returns r.
 void JToolTip.setComponent(JComponent c)
          Specifies the component that the tooltip describes.
abstract  boolean InputVerifier.verify(JComponent input)
          Checks whether the JComponent's input is valid.
 boolean InputVerifier.shouldYieldFocus(JComponent input)
          Calls verify(input) to ensure that the input is valid.
 void TransferHandler.exportAsDrag(JComponent comp, InputEvent e, int action)
          Causes the Swing drag support to be initiated.
 void TransferHandler.exportToClipboard(JComponent comp, Clipboard clip, int action)
          Causes a transfer from the given component to the given clipboard.
 boolean TransferHandler.importData(JComponent comp, Transferable t)
          Causes a transfer to a component from a clipboard or a DND drop operation.
 boolean TransferHandler.canImport(JComponent comp, DataFlavor[] transferFlavors)
          Indicates whether a component would accept an import of the given set of data flavors prior to actually attempting to import it.
 int TransferHandler.getSourceActions(JComponent c)
          Returns the type of transfer actions supported by the source.
protected  Transferable TransferHandler.createTransferable(JComponent c)
          Creates a Transferable to use as the source for a data transfer.
protected  void TransferHandler.exportDone(JComponent source, Transferable data, int action)
          Invoked after data has been exported.
static void JLayeredPane.putLayer(JComponent c, int layer)
          Sets the layer property on a JComponent.
static int JLayeredPane.getLayer(JComponent c)
          Gets the layer property for a JComponent, it does not cause any side effects like setLayer().
 

Constructors in javax.swing with parameters of type JComponent
DebugGraphics(Graphics graphics, JComponent component)
          Constructs a debug graphics context from an existing graphics context that slows down drawing for the specified component.
ComponentInputMap(JComponent component)
          Creates a ComponentInputMap associated with the specified component.
 

Uses of JComponent in javax.swing.colorchooser
 

Subclasses of JComponent in javax.swing.colorchooser
 class AbstractColorChooserPanel
          This is the abstract superclass for color choosers.
 

Methods in javax.swing.colorchooser that return JComponent
static JComponent ColorChooserComponentFactory.getPreviewPanel()
           
 

Uses of JComponent in javax.swing.event
 

Methods in javax.swing.event that return JComponent
 JComponent AncestorEvent.getComponent()
          Returns the component that the listener was added to.
 

Constructors in javax.swing.event with parameters of type JComponent
AncestorEvent(JComponent source, int id, Container ancestor, Container ancestorParent)
          Constructs an AncestorEvent object to identify a change in an ancestor-component's display-status.
 

Uses of JComponent in javax.swing.plaf
 

Methods in javax.swing.plaf with parameters of type JComponent
 void ComponentUI.installUI(JComponent c)
          Configures the specified component appropriate for the look and feel.
 void ComponentUI.uninstallUI(JComponent c)
          Reverses configuration which was done on the specified component during installUI.
 void ComponentUI.paint(Graphics g, JComponent c)
          Paints the specified component appropriate for the look and feel.
 void ComponentUI.update(Graphics g, JComponent c)
          Notifies this UI delegate that it's time to paint the specified component.
 Dimension ComponentUI.getPreferredSize(JComponent c)
          Returns the specified component's preferred size appropriate for the look and feel.
 Dimension ComponentUI.getMinimumSize(JComponent c)
          Returns the specified component's minimum size appropriate for the look and feel.
 Dimension ComponentUI.getMaximumSize(JComponent c)
          Returns the specified component's maximum size appropriate for the look and feel.
 boolean ComponentUI.contains(JComponent c, int x, int y)
          Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
static ComponentUI ComponentUI.createUI(JComponent c)
          Returns an instance of the UI delegate for the specified component.
 int ComponentUI.getAccessibleChildrenCount(JComponent c)
          Returns the number of accessible children in the object.
 Accessible ComponentUI.getAccessibleChild(JComponent c, int i)
          Returns the ith Accessible child of the object.
 

Constructors in javax.swing.plaf with parameters of type JComponent
ComponentInputMapUIResource(JComponent component)
           
 

Uses of JComponent in javax.swing.plaf.basic
 

Subclasses of JComponent in javax.swing.plaf.basic
 class BasicArrowButton
          JButton object that draws a scaled Arrow in one of the cardinal directions.
 class BasicComboBoxRenderer
          ComboBox renderer
static class BasicComboBoxRenderer.UIResource
          A subclass of BasicComboBoxRenderer that implements UIResource.
 class BasicComboPopup
          This is a basic implementation of the ComboPopup interface.
 class BasicInternalFrameTitlePane
          The class that manages a basic title bar
 class BasicInternalFrameTitlePane.SystemMenuBar
          This inner class is marked "public" due to a compiler bug.
 

Fields in javax.swing.plaf.basic declared as JComponent
protected  JComponent BasicOptionPaneUI.inputComponent
          JComponent provide for input if optionPane.getWantsInput() returns true.
protected  JComponent BasicInternalFrameUI.northPane
           
protected  JComponent BasicInternalFrameUI.southPane
           
protected  JComponent BasicInternalFrameUI.westPane
           
protected  JComponent BasicInternalFrameUI.eastPane
           
 

Methods in javax.swing.plaf.basic that return JComponent
protected  JComponent BasicSpinnerUI.createEditor()
          This method is called by installUI to get the editor component of the JSpinner.
protected  JComponent BasicInternalFrameUI.createNorthPane(JInternalFrame w)
           
protected  JComponent BasicInternalFrameUI.createSouthPane(JInternalFrame w)
           
protected  JComponent BasicInternalFrameUI.createWestPane(JInternalFrame w)
           
protected  JComponent BasicInternalFrameUI.createEastPane(JInternalFrame w)
           
 JComponent BasicInternalFrameUI.getNorthPane()
           
 JComponent BasicInternalFrameUI.getSouthPane()
           
 JComponent BasicInternalFrameUI.getWestPane()
           
 JComponent BasicInternalFrameUI.getEastPane()
           
 

Methods in javax.swing.plaf.basic with parameters of type JComponent
static ComponentUI BasicViewportUI.createUI(JComponent c)
           
 void BasicViewportUI.installUI(JComponent c)
           
 void BasicViewportUI.uninstallUI(JComponent c)
           
protected  void BasicViewportUI.installDefaults(JComponent c)
           
protected  void BasicViewportUI.uninstallDefaults(JComponent c)
           
static ComponentUI BasicTreeUI.createUI(JComponent x)
           
 void BasicTreeUI.installUI(JComponent c)
           
 void BasicTreeUI.uninstallUI(JComponent c)
           
 void BasicTreeUI.paint(Graphics g, JComponent c)
           
protected  void BasicTreeUI.paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
          Paints a vertical line.
protected  void BasicTreeUI.paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
          Paints a horizontal line.
 Dimension BasicTreeUI.getPreferredSize(JComponent c)
          Returns the preferred size to properly display the tree, this is a cover method for getPreferredSize(c, false).
 Dimension BasicTreeUI.getPreferredSize(JComponent c, boolean checkConsistancy)
          Returns the preferred size to represent the tree in c.
 Dimension BasicTreeUI.getMinimumSize(JComponent c)
          Returns the minimum size for this component.
 Dimension BasicTreeUI.getMaximumSize(JComponent c)
          Returns the maximum size for this component, which will be the preferred size if the instance is currently in a JTree, or 0, 0.
static ComponentUI BasicToolTipUI.createUI(JComponent c)
           
 void BasicToolTipUI.installUI(JComponent c)
           
 void BasicToolTipUI.uninstallUI(JComponent c)
           
protected  void BasicToolTipUI.installDefaults(JComponent c)
           
protected  void BasicToolTipUI.uninstallDefaults(JComponent c)
           
protected  void BasicToolTipUI.installListeners(JComponent c)
           
protected  void BasicToolTipUI.uninstallListeners(JComponent c)
           
 void BasicToolTipUI.paint(Graphics g, JComponent c)
           
 Dimension BasicToolTipUI.getPreferredSize(JComponent c)
           
 Dimension BasicToolTipUI.getMinimumSize(JComponent c)
           
 Dimension BasicToolTipUI.getMaximumSize(JComponent c)
           
static ComponentUI BasicToolBarUI.createUI(JComponent c)
           
 void BasicToolBarUI.installUI(JComponent c)
           
 void BasicToolBarUI.uninstallUI(JComponent c)
           
protected  void BasicToolBarUI.installRolloverBorders(JComponent c)
          Installs rollover borders on all the child components of the JComponent.
protected  void BasicToolBarUI.installNonRolloverBorders(JComponent c)
          Installs non-rollover borders on all the child components of the JComponent.
protected  void BasicToolBarUI.installNormalBorders(JComponent c)
          Installs normal borders on all the child components of the JComponent.
 Dimension BasicToolBarUI.getMinimumSize(JComponent c)
           
 Dimension BasicToolBarUI.getPreferredSize(JComponent c)
           
 Dimension BasicToolBarUI.getMaximumSize(JComponent c)
           
static ComponentUI BasicToolBarSeparatorUI.createUI(JComponent c)
           
 void BasicToolBarSeparatorUI.paint(Graphics g, JComponent c)
           
 Dimension BasicToolBarSeparatorUI.getPreferredSize(JComponent c)
           
 Dimension BasicToolBarSeparatorUI.getMinimumSize(JComponent c)
           
 Dimension BasicToolBarSeparatorUI.getMaximumSize(JComponent c)
           
static ComponentUI BasicTextPaneUI.createUI(JComponent c)
          Creates a UI for the JTextPane.
 void BasicTextPaneUI.installUI(JComponent c)
           
static ComponentUI BasicTextAreaUI.createUI(JComponent ta)
          Creates a UI for a JTextArea.
static ComponentUI BasicTableUI.createUI(JComponent c)
           
 void BasicTableUI.installUI(JComponent c)
           
 void BasicTableUI.uninstallUI(JComponent c)
           
 Dimension BasicTableUI.getMinimumSize(JComponent c)
          Return the minimum size of the table.
 Dimension BasicTableUI.getPreferredSize(JComponent c)
          Return the preferred size of the table.
 Dimension BasicTableUI.getMaximumSize(JComponent c)
          Return the maximum size of the table.
 void BasicTableUI.paint(Graphics g, JComponent c)
          Paint a representation of the table instance that was set in installUI().
static ComponentUI BasicTableHeaderUI.createUI(JComponent h)
           
 void BasicTableHeaderUI.installUI(JComponent c)
           
 void BasicTableHeaderUI.uninstallUI(JComponent c)
           
 void BasicTableHeaderUI.paint(Graphics g, JComponent c)
           
 Dimension BasicTableHeaderUI.getMinimumSize(JComponent c)
          Return the minimum size of the header.
 Dimension BasicTableHeaderUI.getPreferredSize(JComponent c)
          Return the preferred size of the header.
 Dimension BasicTableHeaderUI.getMaximumSize(JComponent c)
          Return the maximum size of the header.
static ComponentUI BasicTabbedPaneUI.createUI(JComponent c)
           
 void BasicTabbedPaneUI.installUI(JComponent c)
           
 void BasicTabbedPaneUI.uninstallUI(JComponent c)
           
 Dimension BasicTabbedPaneUI.getPreferredSize(JComponent c)
           
 Dimension BasicTabbedPaneUI.getMinimumSize(JComponent c)
           
 Dimension BasicTabbedPaneUI.getMaximumSize(JComponent c)
           
 void BasicTabbedPaneUI.paint(Graphics g, JComponent c)
           
static ComponentUI BasicSpinnerUI.createUI(JComponent c) <