JavaTM 2 Platform
Standard Ed. 5.0

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.plaf.synth Synth is a skinnable look and feel in which all painting is delegated. 
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
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 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.
 JComponent JSpinner.getEditor()
          Returns the component that displays and potentially changes the model's value.
 JComponent JColorChooser.getPreviewPanel()
          Returns the preview panel that shows a chosen color.
 

Methods in javax.swing with parameters of type JComponent
 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.
 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 DefaultDesktopManager.beginDraggingFrame(JComponent f)
           
 void DesktopManager.beginDraggingFrame(JComponent f)
          This method is normally called when the user has indicated that they will begin dragging a component around.
 void DefaultDesktopManager.beginResizingFrame(JComponent f, int direction)
           
 void DesktopManager.beginResizingFrame(JComponent f, int direction)
          This methods is normally called when the user has indicated that they will begin resizing the frame.
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.
 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.
protected  Transferable TransferHandler.createTransferable(JComponent c)
          Creates a Transferable to use as the source for a data transfer.
static RepaintManager RepaintManager.currentManager(JComponent c)
          Return the RepaintManager for the calling thread given a JComponent.
 void DefaultDesktopManager.dragFrame(JComponent f, int newX, int newY)
          Moves the visible location of the frame being dragged to the location specified.
 void DesktopManager.dragFrame(JComponent f, int newX, int newY)
          The user has moved the frame.
 void DefaultDesktopManager.endDraggingFrame(JComponent f)
           
 void DesktopManager.endDraggingFrame(JComponent f)
          This method signals the end of the dragging session.
 void DefaultDesktopManager.endResizingFrame(JComponent f)
           
 void DesktopManager.endResizingFrame(JComponent f)
          This method signals the end of the resize session.
 void TransferHandler.exportAsDrag(JComponent comp, InputEvent e, int action)
          Causes the Swing drag support to be initiated.
protected  void TransferHandler.exportDone(JComponent source, Transferable data, int action)
          Invoked after data has been exported.
 void TransferHandler.exportToClipboard(JComponent comp, Clipboard clip, int action)
          Causes a transfer from the given component to the given clipboard.
 Rectangle RepaintManager.getDirtyRegion(JComponent aComponent)
          Return the current dirty region for a component.
 Icon LookAndFeel.getDisabledIcon(JComponent component, Icon icon)
          Returns an Icon with a disabled appearance.
 Icon LookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
          Returns an Icon for use by disabled components that are also selected.
static int JLayeredPane.getLayer(JComponent c)
          Gets the layer property for a JComponent, it does not cause any side effects like setLayer().
 int TransferHandler.getSourceActions(JComponent c)
          Returns the type of transfer actions supported by the source.
 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 ActionMap SwingUtilities.getUIActionMap(JComponent component)
          Returns the ActionMap provided by the UI in component component.
static InputMap SwingUtilities.getUIInputMap(JComponent component, int condition)
          Returns the InputMap provided by the UI for condition condition in component component.
 boolean TransferHandler.importData(JComponent comp, Transferable t)
          Causes a transfer to a component from a clipboard or a DND drop operation.
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.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.installProperty(JComponent c, String propertyName, Object propertyValue)
          Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the client program.
 boolean RepaintManager.isCompletelyDirty(JComponent aComponent)
          Convenience method that returns true if aComponent will be completely painted during the next paintDirtyRegions().
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 ComponentInputMap LookAndFeel.makeComponentInputMap(JComponent c, Object[] keys)
          Creates a ComponentInputMap from keys.
 void RepaintManager.markCompletelyClean(JComponent aComponent)
          Mark a component completely clean.
 void RepaintManager.markCompletelyDirty(JComponent aComponent)
          Mark a component completely dirty.
static void JLayeredPane.putLayer(JComponent c, int layer)
          Sets the layer property on a JComponent.
 void ToolTipManager.registerComponent(JComponent component)
          Registers a component for tooltip management.
 void RepaintManager.removeInvalidComponent(JComponent component)
          Remove a component from the list of invalid components.
static void SwingUtilities.replaceUIActionMap(JComponent component, ActionMap uiActionMap)
          Convenience method to change the UI ActionMap for component to uiActionMap.
static void SwingUtilities.replaceUIInputMap(JComponent component, int type, InputMap uiInputMap)
          Convenience method to change the UI InputMap for component to uiInputMap.
 void DefaultDesktopManager.resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          Calls setBoundsForFrame with the new values.
 void DesktopManager.resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          The user has resized the component.
 void JFileChooser.setAccessory(JComponent newAccessory)
          Sets the accessory component.
 void DefaultDesktopManager.setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          This moves the JComponent and repaints the damaged areas.
 void DesktopManager.setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
          This is a primitive reshape method.
 void JToolTip.setComponent(JComponent c)
          Specifies the component that the tooltip describes.
 void JSpinner.setEditor(JComponent editor)
          Changes the JComponent that displays the current value of the SpinnerModel.
 void JColorChooser.setPreviewPanel(JComponent preview)
          Sets the current preview panel.
 boolean InputVerifier.shouldYieldFocus(JComponent input)
          Calls verify(input) to ensure that the input is valid.
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.
 void ToolTipManager.unregisterComponent(JComponent component)
          Removes a component from tooltip control.
abstract  boolean InputVerifier.verify(JComponent input)
          Checks whether the JComponent's input is valid.
 

Constructors in javax.swing with parameters of type JComponent
ComponentInputMap(JComponent component)
          Creates a ComponentInputMap associated with the specified component.
DebugGraphics(Graphics graphics, JComponent component)
          Constructs a debug graphics context from an existing graphics context that slows down drawing for 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
 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.
 Accessible ComponentUI.getAccessibleChild(JComponent c, int i)
          Returns the ith Accessible child of the object.
 int ComponentUI.getAccessibleChildrenCount(JComponent c)
          Returns the number of accessible children in the object.
 Dimension ComponentUI.getMaximumSize(JComponent c)
          Returns the specified component's maximum 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.getPreferredSize(JComponent c)
          Returns the specified component's preferred size appropriate for the look and feel.
 void ComponentUI.installUI(JComponent c)
          Configures the specified component appropriate for the look and feel.
 void ComponentUI.paint(Graphics g, JComponent c)
          Paints 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.update(Graphics g, JComponent c)
          Notifies this UI delegate that it's time to paint the specified component.
 

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 class should be treated as a "protected" inner class.
 

Fields in javax.swing.plaf.basic declared as JComponent
protected  JComponent BasicInternalFrameUI.eastPane
           
protected  JComponent BasicDesktopIconUI.iconPane
          The title pane component used in the desktop icon.
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
           
 

Methods in javax.swing.plaf.basic that return JComponent
protected  JComponent BasicInternalFrameUI.createEastPane(JInternalFrame w)
           
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)
           
 JComponent BasicInternalFrameUI.getEastPane()
           
 JComponent BasicInternalFrameUI.getNorthPane()
           
 JComponent BasicInternalFrameUI.getSouthPane()
           
 JComponent BasicInternalFrameUI.getWestPane()
           
 

Methods in javax.swing.plaf.basic with parameters of type JComponent
protected  ChangeListener BasicMenuUI.createChangeListener(JComponent c)
           
static View BasicHTML.createHTMLView(JComponent c, String html)
          Create an html renderer for the given component and string of html.
protected  MenuDragMouseListener BasicMenuUI.createMenuDragMouseListener(JComponent c)
           
protected  MenuDragMouseListener BasicMenuItemUI.createMenuDragMouseListener(JComponent c)
           
protected  MenuKeyListener BasicMenuUI.createMenuKeyListener(JComponent c)
           
protected  MenuKeyListener BasicMenuItemUI.createMenuKeyListener(JComponent c)
           
protected  MenuListener BasicMenuUI.createMenuListener(JComponent c)
           
protected  MouseInputListener BasicMenuUI.createMouseInputListener(JComponent c)
           
protected  MouseInputListener BasicMenuItemUI.createMouseInputListener(JComponent c)
           
protected  PropertyChangeListener BasicMenuUI.createPropertyChangeListener(JComponent c)
           
static ComponentUI BasicViewportUI.createUI(JComponent c)
           
static ComponentUI BasicToolTipUI.createUI(JComponent c)
           
static ComponentUI BasicToolBarUI.createUI(JComponent c)
           
static ComponentUI BasicToolBarSeparatorUI.createUI(JComponent c)
           
static ComponentUI BasicTextPaneUI.createUI(JComponent c)
          Creates a UI for the JTextPane.
static ComponentUI BasicTextAreaUI.createUI(JComponent ta)
          Creates a UI for a JTextArea.
static ComponentUI BasicTableUI.createUI(JComponent c)
           
static ComponentUI BasicTableHeaderUI.createUI(JComponent h)
           
static ComponentUI BasicTabbedPaneUI.createUI(JComponent c)
           
static ComponentUI BasicSpinnerUI.createUI(JComponent c)
          Returns a new instance of BasicSpinnerUI.
static ComponentUI BasicSliderUI.createUI(JComponent b)
           
static ComponentUI BasicScrollPaneUI.createUI(JComponent x)
           
static ComponentUI BasicScrollBarUI.createUI(JComponent c)
           
static ComponentUI BasicRadioButtonMenuItemUI.createUI(JComponent b)
           
static ComponentUI BasicProgressBarUI.createUI(JComponent x)
           
static ComponentUI BasicSeparatorUI.createUI(JComponent c)
           
static ComponentUI BasicPopupMenuSeparatorUI.createUI(JComponent c)
           
static ComponentUI BasicPanelUI.createUI(JComponent c)
           
static ComponentUI BasicPasswordFieldUI.createUI(JComponent c)
          Creates a UI for a JPasswordField.
static ComponentUI BasicOptionPaneUI.createUI(JComponent x)
          Creates a new BasicOptionPaneUI instance.
static ComponentUI BasicMenuUI.createUI(JComponent x)
           
static ComponentUI BasicCheckBoxMenuItemUI.createUI(JComponent c)
           
static ComponentUI BasicMenuBarUI.createUI(JComponent x)
           
static ComponentUI BasicListUI.createUI(JComponent list)
          Returns a new instance of BasicListUI.
static ComponentUI BasicInternalFrameUI.createUI(JComponent b)
           
static ComponentUI BasicTextFieldUI.createUI(JComponent c)
          Creates a UI for a JTextField.
static ComponentUI BasicFormattedTextFieldUI.createUI(JComponent c)
          Creates a UI for a JFormattedTextField.
static ComponentUI BasicDesktopPaneUI.createUI(JComponent c)
           
static ComponentUI BasicLabelUI.createUI(JComponent c)
           
static ComponentUI BasicDesktopIconUI.createUI(JComponent c)
           
static ComponentUI BasicColorChooserUI.createUI(JComponent c)
           
static ComponentUI BasicToggleButtonUI.createUI(JComponent b)
           
static ComponentUI BasicRadioButtonUI.createUI(JComponent b)
           
static ComponentUI BasicEditorPaneUI.createUI(JComponent c)
          Creates a UI for the JTextPane.
static ComponentUI BasicCheckBoxUI.createUI(JComponent b)
           
static ComponentUI BasicButtonUI.createUI(JComponent c)
           
static ComponentUI BasicComboBoxUI.createUI(JComponent c)
           
static ComponentUI BasicMenuItemUI.createUI(JComponent c)
           
static ComponentUI BasicPopupMenuUI.createUI(JComponent x)
           
static ComponentUI BasicTreeUI.createUI(JComponent x)
           
static ComponentUI BasicRootPaneUI.createUI(JComponent c)
           
static ComponentUI BasicSplitPaneUI.createUI(JComponent x)
          Creates a new BasicSplitPaneUI instance
protected  void BasicInternalFrameUI.deinstallMouseHandlers(JComponent c)
           
 Accessible BasicComboBoxUI.getAccessibleChild(JComponent c, int i)
           
 int BasicComboBoxUI.getAccessibleChildrenCount(JComponent c)
           
 Insets BasicDesktopIconUI.getInsets(