|
Java Platform 1.2 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Component | |
java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
java.awt.dnd | Provides interfaces and classes for supporting drag-and-drop operations. |
java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
java.awt.im | Provides classes and an interface for the input method framework. |
java.beans | Contains classes related to Java Beans development. |
java.beans.beancontext | Provides classes and interfaces relating to bean context. |
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.border | Provides classes and interface for drawing specialized borders around a Swing component. |
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 ``metal'' look-and-feel. |
javax.swing.table | Provides classes and interfaces for dealing with java.awt.swing.JTable. |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
javax.swing.tree | Provides classes and interfaces for dealing with java.awt.swing.JTree. |
Uses of Component in java.applet |
Subclasses of Component in java.applet | |
class |
Applet
An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application. |
Uses of Component in java.awt |
Subclasses of Component in java.awt | |
class |
Button
This class creates a labeled button. |
class |
Canvas
A Canvas component represents a blank rectangular
area of the screen onto which the application can draw or from
which the application can trap input events from the user. |
class |
Checkbox
A check box is a graphical component that can be in either an "on" ( true ) or "off" (false ) state. |
class |
Choice
The Choice class presents a pop-up menu of choices. |
class |
Container
A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components. |
class |
Dialog
A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user. |
class |
FileDialog
The FileDialog class displays a dialog window
from which the user can select a file. |
class |
Frame
A Frame is a top-level window with a title and a border. |
class |
Label
A Label object is a component for placing text in a
container. |
class |
List
The List component presents the user with a
scrolling list of text items. |
class |
Panel
Panel is the simplest container class. |
class |
Scrollbar
The Scrollbar class embodies a scroll bar, a
familiar user-interface object. |
class |
ScrollPane
A container class which implements automatic horizontal and/or vertical scrolling for a single child component. |
class |
TextArea
A TextArea object is a multi-line region
that displays text. |
class |
TextComponent
The TextComponent class is the superclass of
any component that allows the editing of some text. |
class |
TextField
A TextField object is a text component
that allows for the editing of a single line of text. |
class |
Window
A Window object is a top-level window with no borders and no
menubar. |
Methods in java.awt that return Component | |
Component |
Component.getComponentAt(int x,
int y)
Determines if this component or one of its immediate subcomponents contains the (x, y) location, and if so, returns the containing component. |
Component |
Component.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int). |
Component |
Component.getComponentAt(Point p)
Returns the component or subcomponent that contains the specified point. |
Component |
Container.getComponent(int n)
Gets the nth component in this container. |
Component[] |
Container.getComponents()
Gets all the components in this container. |
Component |
Container.add(Component comp)
Adds the specified component to the end of this container. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
Component |
Container.add(Component comp,
int index)
Adds the specified component to this container at the given position. |
Component |
Container.getComponentAt(int x,
int y)
Locates the component that contains the x,y position. |
Component |
Container.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int) . |
Component |
Container.getComponentAt(Point p)
Gets the component that contains the specified point. |
Component |
Container.findComponentAt(int x,
int y)
Locates the visible child component that contains the specified position. |
Component |
Container.findComponentAt(Point p)
Locates the visible child component that contains the specified point. |
Component |
Window.getFocusOwner()
Returns the child component of this Window which has focus if and only if this Window is active. |
Methods in java.awt with parameters of type Component | |
Component |
Container.add(Component comp)
Adds the specified component to the end of this container. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
Component |
Container.add(Component comp,
int index)
Adds the specified component to this container at the given position. |
void |
Container.add(Component comp,
Object constraints)
Adds the specified component to the end of this container. |
void |
Container.add(Component comp,
Object constraints,
int index)
Adds the specified component to this container with the specified constraints at the specified index. |
protected void |
Container.addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this container at the specified index. |
void |
Container.remove(Component comp)
Removes the specified component from this container. |
boolean |
Container.isAncestorOf(Component c)
Checks if the component is contained in the component hierarchy of this container. |
void |
CardLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to this card layout's internal table of names. |
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . |
void |
CardLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
LayoutManager2.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
GridLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
protected java.awt.peer.LightweightPeer |
Toolkit.createComponent(Component target)
Creates a peer for a component or container. |
protected static Container |
Toolkit.getNativeContainer(Component c)
Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight). |
DragGestureRecognizer |
Toolkit.createDragGestureRecognizer(Class abstractRecognizerClass,
DragSource ds,
Component c,
int srcActions,
DragGestureListener dgl)
create a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associate it with the DragSource, Component and DragGestureListener specified subclasses should override this to provide their own implementation |
protected void |
ScrollPane.addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this scroll pane container. |
void |
PopupMenu.show(Component origin,
int x,
int y)
Shows the popup menu at the x, y position relative to an origin component. |
void |
LayoutManager.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
LayoutManager.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
GridBagLayout.setConstraints(Component comp,
GridBagConstraints constraints)
Sets the constraints for the specified component in this layout. |
GridBagConstraints |
GridBagLayout.getConstraints(Component comp)
Gets the constraints for the specified component. |
protected GridBagConstraints |
GridBagLayout.lookupConstraints(Component comp)
Retrieves the constraints for the specified component. |
void |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
GridBagLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
GridBagLayout.removeLayoutComponent(Component comp)
Removes the specified component from this layout. |
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
FlowLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
BorderLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . |
void |
BorderLayout.removeLayoutComponent(Component comp)
Removes the specified component from this border layout. |
Constructors in java.awt with parameters of type Component | |
MediaTracker.MediaTracker(Component comp)
Creates a media tracker to track images for a given component. |
Uses of Component in java.awt.dnd |
Fields in java.awt.dnd declared as Component | |
protected Component |
DragGestureRecognizer.component
|
Methods in java.awt.dnd that return Component | |
Component |
DragGestureEvent.getComponent()
|
Component |
DragGestureRecognizer.getComponent()
|
Component |
DragSourceContext.getComponent()
|
Component |
DropTarget.getComponent()
|
Component |
DropTargetContext.getComponent()
|
Methods in java.awt.dnd with parameters of type Component | |
DragGestureRecognizer |
DragSource.createDragGestureRecognizer(Class recognizerAbstractClass,
Component c,
int actions,
DragGestureListener dgl)
Creates a new DragSourceRecognizer that implements the specified abstract subclass of DragGestureRecognizer, and sets the specified Component and DragGestureListener on the newly created object. |
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c,
int actions,
DragGestureListener dgl)
Creates a new DragSourceRecognizer that implements the default abstract subclass of DragGestureRecognizer for this DragSource, and sets the specified Component and DragGestureListener on the newly created object. |
void |
DragGestureRecognizer.setComponent(Component c)
set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate. |
void |
DropTarget.setComponent(Component c)
Note: this interface is required to permit the safe association of a DropTarget with a Component in one of two ways, either: component.setDropTarget(droptarget);
or droptarget.setComponent(component);
The caller must have AWTPermission.setDropTarget to succeed. |
protected DropTarget.DropTargetAutoScroller |
DropTarget.createDropTargetAutoScroller(Component c,
Point p)
create an embedded autoscroller |
Constructors in java.awt.dnd with parameters of type Component | |
DragGestureRecognizer.DragGestureRecognizer(DragSource ds,
Component c,
int sa,
DragGestureListener dgl)
construct a new DragGestureRecognizer |
|
DragGestureRecognizer.DragGestureRecognizer(DragSource ds,
Component c,
int sa)
construct a new DragGestureRecognizer |
|
DragGestureRecognizer.DragGestureRecognizer(DragSource ds,
Component c)
construct a new DragGestureRecognizer |
|
MouseDragGestureRecognizer.MouseDragGestureRecognizer(DragSource ds,
Component c,
int act,
DragGestureListener dgl)
construct a new MouseDragGestureRecognizer |
|
MouseDragGestureRecognizer.MouseDragGestureRecognizer(DragSource ds,
Component c,
int act)
construct a new MouseDragGestureRecognizer |
|
MouseDragGestureRecognizer.MouseDragGestureRecognizer(DragSource ds,
Component c)
construct a new MouseDragGestureRecognizer |
|
DropTarget.DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act,
FlavorMap fm)
Construct a DropTarget |
|
DropTarget.DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act)
Construct a DropTarget |
|
DropTarget.DropTarget(Component c,
DropTargetListener dtl)
Construct a DropTarget |
|
DropTarget.DropTarget(Component c,
int ops,
DropTargetListener dtl)
Construct a DropTarget |
|
DropTarget.DropTargetAutoScroller.DropTarget.DropTargetAutoScroller(Component c,
Point p)
construct a DropTargetAutoScroller |
Uses of Component in java.awt.event |
Methods in java.awt.event that return Component | |
Component |
ComponentEvent.getComponent()
Returns the originator of the event. |
Component |
ContainerEvent.getChild()
Returns the component that was affected by the event. |
Constructors in java.awt.event with parameters of type Component | |
ComponentEvent.ComponentEvent(Component source,
int id)
Constructs a ComponentEvent object. |
|
ContainerEvent.ContainerEvent(Component source,
int id,
Component child)
Constructs a ContainerEvent object. |
|
PaintEvent.PaintEvent(Component source,
int id,
Rectangle updateRect)
Constructs a PaintEvent object with the specified source component and type. |
|
KeyEvent.KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar)
Constructs a KeyEvent object. |
|
KeyEvent.KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode)
|
|
InputMethodEvent.InputMethodEvent(Component source,
int id,
AttributedCharacterIterator text,
int committedCharacterCount,
TextHitInfo caret,
TextHitInfo visiblePosition)
Constructs an InputMethodEvent with the specified source component, type, text, caret, and visiblePosition. |
|
InputMethodEvent.InputMethodEvent(Component source,
int id,
TextHitInfo caret,
TextHitInfo visiblePosition)
Constructs an InputMethodEvent with the specified source component, type, caret, and visiblePosition. |
|
MouseEvent.MouseEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger)
Constructs a MouseEvent object with the specified source component, type, modifiers, coordinates, and click count. |
|
FocusEvent.FocusEvent(Component source,
int id,
boolean temporary)
Constructs a FocusEvent object and identifies whether or not the change is temporary. |
|
FocusEvent.FocusEvent(Component source,
int id)
Constructs a FocusEvent object and identifies it as a permanent change in focus. |
Uses of Component in java.awt.im |
Methods in java.awt.im with parameters of type Component | |
void |
InputContext.removeNotify(Component client)
Notifies the input context that a client component has been removed from its containment hierarchy, or that input method support has been disabled for the component. |
Uses of Component in java.beans |
Methods in java.beans that return Component | |
Component |
PropertyEditorSupport.getCustomEditor()
A PropertyEditor may chose to make available a full custom Component that edits its property value. |
Component |
PropertyEditor.getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value. |
Uses of Component in java.beans.beancontext |
Methods in java.beans.beancontext that return Component | |
Component |
BeanContextChildComponentProxy.getComponent()
|
Uses of Component in javax.swing |
Subclasses of Component in javax.swing | |
class |
AbstractButton
Defines the common behaviors for the JButton, JToggleButton, JCheckbox, and the JRadioButton classes. |
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 |
CellRendererPane
This class is inserted in between cell renderers and the components that use them. |
class |
DefaultListCellRenderer
Renders an item in a list. |
static class |
DefaultListCellRenderer.UIResource
A subclass of DefaultListCellRenderer that implements UIResource. |
class |
JApplet
An extended version of java.applet.Applet that adds support for interposing input and painting behavior in front of the applets children (see glassPane), support for special children that are managed by a LayeredPane (see rootPane) and for Swing MenuBars. |
class |
JButton
An implementation of a "push" button. |
class |
JCheckBox
An implementation of a CheckBox -- 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
Swing's implementation of a ComboBox -- a combination of a text field and drop-down list that lets the user either type in a value or select it from a list that is displayed when the user asks for it. |
class |
JComponent
The base class for the Swing components. |
class |
JDesktopPane
A container used to create a multiple-document interface or a virtual desktop. |
class |
JDialog
The main class for creating a dialog window. |
class |
JEditorPane
A text component to edit various kinds of content. |
class |
JFileChooser
JFileChooser provides a simple mechanism for the user to chooser a file. |
class |
JFrame
An extended version of java.awt.Frame that adds support for interposing input and painting behavior in front of the frame's children (see glassPane), support for special children that are managed by a LayeredPane (see rootPane) and for Swing MenuBars. |
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 JMenuItem s that
is displayed when the user selects an item on the JMenuBar . |
class |
JMenuBar
An implementation of a MenuBar. |
class |
JMenuItem
An implementation of a MenuItem. |
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 which pops up and displays a series of choices. |
static class |
JPopupMenu.Separator
A popupmenu-specific separator. |
class |
JProgressBar
A component that 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 RadioButtonMenuItem. |
class |
JRootPane
The fundamental component in the container hierarchy. |
class |
JScrollBar
An implementation of a scrollbar. |
class |
JScrollPane
A specialized container that manages a viewport, optional vertical and horizontal scrollbars, and optional row and column heading viewports. |
protected class |
JScrollPane.ScrollBar
By default JScrollPane creates scrollbars that are instances of this class. |
class |
JSeparator
An implementation of a Menu Separator -- 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 slding a knob within a bounded interval. |
class |
JSplitPane
JSplitPane is used to divide two (and only two) Components. |
class |
JTabbedPane
A component which lets the user switch between a group of components by clicking on a tab with a given title and/or icon. |
class |
JTable
JTable is a user-interface component that presents data in a two-dimensional table format. |
class |
JTextArea
A TextArea 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 which 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. |
class |
JWindow
A JWindow is a container that can be displayed anywhere on the user's desktop. |
Fields in javax.swing declared as Component | |
protected Component |
JLabel.labelFor
|
protected Component |
JSplitPane.leftComponent
The left or top component. |
protected Component |
JSplitPane.rightComponent
The right or bottom component. |
protected static Component |
ImageIcon.component
|
protected Component |
ScrollPaneLayout.lowerLeft
The component to display in the lower left corner. |
protected Component |
ScrollPaneLayout.lowerRight
The component to display in the lower right corner. |
protected Component |
ScrollPaneLayout.upperLeft
The component to display in the upper left corner. |
protected Component |
ScrollPaneLayout.upperRight
The component to display in the upper right corner. |
protected Component |
JScrollPane.lowerLeft
The component to display in the lower left corner. |
protected Component |
JScrollPane.lowerRight
The component to display in the lower right corner. |
protected Component |
JScrollPane.upperLeft
The component to display in the upper left corner. |
protected Component |
JScrollPane.upperRight
The component to display in the upper right corner. |
protected Component |
JRootPane.glassPane
The glass pane that overlays the menu bar and content pane, so it can intercept mouse movements and such. |
protected Component |
JTable.editorComp
If editing, Component that is handling the editing. |
Methods in javax.swing that return Component | |
Component |
JComponent.getNextFocusableComponent()
Return the next focusable component or null if the focus manager should choose the next focusable component automatically |
Component |
JLabel.getLabelFor()
Get the component this is labelling. |
Component |
JInternalFrame.getGlassPane()
Returns the glassPane object for this frame. |
Component[] |
JLayeredPane.getComponentsInLayer(int layer)
Returns an array of the components in the specified layer. |
Component |
MenuElement.getComponent()
This method should return the java.awt.Component used to paint the receiving element. |
Component |
RootPaneContainer.getGlassPane()
Returns the glassPane. |
Component |
DefaultFocusManager.getFirstComponent(Container aContainer)
Return the first component that should receive the focus |
Component |
DefaultFocusManager.getLastComponent(Container aContainer)
Return the last component that should receive the focus |
Component |
DefaultFocusManager.getComponentBefore(Container aContainer,
Component aComponent)
Return the component that should receive the focus before aComponent |
Component |
DefaultFocusManager.getComponentAfter(Container aContainer,
Component aComponent)
Return the component the should receive the focus after aComponent |
Component |
JApplet.getGlassPane()
Returns the glassPane object for this applet. |
Component |
MenuSelectionManager.componentForPoint(Component source,
Point sourcePoint)
Returns the component in the currently selected path which contains sourcePoint. |
Component |
JToolBar.getComponentAtIndex(int i)
Returns the component at the specified index. |
Component |
JSplitPane.getLeftComponent()
Returns the component to the left (or above) the divider. |
Component |
JSplitPane.getTopComponent()
Returns the component above, or to the left of the divider. |
Component |
JSplitPane.getRightComponent()
Returns the component to the right (or below) the divider. |
Component |
JSplitPane.getBottomComponent()
Returns the component below, or to the right of the divider. |
Component |
JMenuItem.getComponent()
This method returns the java.awt.Component used to paint this object. |
Component |
DefaultListCellRenderer.getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Component |
JViewport.getView()
Returns the Viewport's one child or null. |
Component |
ListCellRenderer.getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Return a component that has been configured to display the specified value. |
protected Component |
ScrollPaneLayout.addSingletonComponent(Component oldC,
Component newC)
The method used to replace an existing component (if any) with a new one. |
Component |
ScrollPaneLayout.getCorner(String key)
Returns the Component at the specified corner. |
Component |
JMenuBar.getComponentAtIndex(int i)
Returns the component at the specified index. |
Component |
JMenuBar.getComponent()
Implemented to be a MenuElement. |
static Component |
SwingUtilities.getDeepestComponentAt(Component parent,
int x,
int y)
Returns the deepest visible descendent Component of parent
that contains the location x , y . |
static Component |
SwingUtilities.findFocusOwner(Component c)
Return the child component which has focus, if any. |
static Component |
SwingUtilities.getRoot(Component c)
Returns the root component for the current component tree. |
Component |
JScrollPane.getCorner(String key)
Returns the component at the specified corner. |
Component |
DefaultCellEditor.getComponent()
Returns the a reference to the editor component. |
Component |
DefaultCellEditor.getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
|
Component |
DefaultCellEditor.getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
|
Component |
JPopupMenu.getInvoker()
Returns the component which is the 'invoker' of this popup menu. |
Component |
JPopupMenu.getComponentAtIndex(int i)
Returns the component at the specified index. |
Component |
JPopupMenu.getComponent()
|
Component |
Renderer.getComponent()
Returns the component used to render the value. |
Component |
ComboBoxEditor.getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor |
Component |
JWindow.getGlassPane()
Returns the glassPane object for this window. |
protected Component |
JRootPane.createGlassPane()
Called by the constructor methods to create the default glassPane. |
Component |
JRootPane.getGlassPane()
Returns the current glass pane for this JRootPane. |
static Component |
Box.createRigidArea(Dimension d)
Creates an invisible component that's always the specified size. |
static Component |
Box.createHorizontalStrut(int width)
Creates an invisible, fixed-width component. |
static Component |
Box.createVerticalStrut(int height)
Creates an invisible, fixed-height component. |
static Component |
Box.createGlue()
Creates an invisible "glue" component that can be useful in a Box whose visible components have a maximum width (for a horizontal box) or height (for a vertical box). |
static Component |
Box.createHorizontalGlue()
Creates a horizontal glue component. |
static Component |
Box.createVerticalGlue()
Creates a vertical glue component. |
Component |
JTabbedPane.getSelectedComponent()
Returns the currently selected component for this tabbedpane. |
Component |
JTabbedPane.add(Component component)
Adds a component with a tab title defaulting to the name of the component. |
Component |
JTabbedPane.add(String title,
Component component)
Adds a component with the specified tab title. |
Component |
JTabbedPane.add(Component component,
int index)
Adds a component at the specified tab index with a tab title defaulting to the name of the component. |
Component |
JTabbedPane.getComponentAt(int index)
Returns the component at index. |
Component |
JDialog.getGlassPane()
Returns the glassPane object for this dialog. |
Component |
JMenu.add(Component c)
Appends a component to the end of this menu. |
Component |
JMenu.getMenuComponent(int n)
Returns the component at position n |
Component[] |
JMenu.getMenuComponents()
Returns an array of the menu's subcomponents |
Component |
JMenu.getComponent()
This method returns the java.awt.Component used to paint this MenuElement. |
Component |
JTable.getEditorComponent()
If the receiver is currently editing this will return the Component that was returned from the CellEditor. |
Component |
JTable.prepareRenderer(TableCellRenderer renderer,
int row,
int column)
Prepares the specified renderer with an appropriate value from the dataModel, and an appropriate selection value from the selection models. |
Component |
JTable.prepareEditor(TableCellEditor editor,
int row,
int column)
Prepares the specified editor using the value at the specified cell. |
Component |
JFrame.getGlassPane()
Returns the glassPane object for this frame. |
Methods in javax.swing with parameters of type Component | |
void |
JComponent.setNextFocusableComponent(Component aComponent)
Specifies the next component to get the focus after this one, for example, when the tab key is pressed. |
static boolean |
JComponent.isLightweightComponent(Component c)
Returns true if this component is a lightweight, i.e. |
void |
JTextPane.insertComponent(Component c)
Inserts a component into the document as a replacement for the currently selected content. |
abstract void |
FocusManager.processKeyEvent(Component focusedComponent,
KeyEvent anEvent)
This method is called by JComponents when a key event occurs. |
abstract void |
FocusManager.focusNextComponent(Component aComponent)
Cause the focus manager to set the focus on the next focusable component You can call this method to cause the focus manager to focus the next component |
abstract void |
FocusManager.focusPreviousComponent(Component aComponent)
Cause the focus manager to set the focus on the previous focusable component You can call this methid to cause the focus manager to focus the previous component |
void |
JLabel.setLabelFor(Component c)
Set the component this is labelling. |
protected void |
JInternalFrame.addImpl(Component comp,
Object constraints,
int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. |
void |
JInternalFrame.setGlassPane(Component glass)
Sets this JInternalFrame's glassPane property. |
void |
ViewportLayout.addLayoutComponent(String name,
Component c)
Adds the specified component to the layout. |
void |
ViewportLayout.removeLayoutComponent(Component c)
Removes the specified component from the layout. |
protected void |
JLayeredPane.addImpl(Component comp,
Object constraints,
int index)
|
static JLayeredPane |
JLayeredPane.getLayeredPaneAbove(Component c)
Convenience method that returns the first JLayeredPane which contains the specified component. |
void |
JLayeredPane.setLayer(Component c,
int layer)
Sets the layer attribute on the specified component, making it the bottommost component in that layer. |
void |
JLayeredPane.setLayer(Component c,
int layer,
int position)
Sets the layer attribute for the specified component and also sets its position within that layer. |
int |
JLayeredPane.getLayer(Component c)
Returns the layer attribute for the specified Component. |
int |
JLayeredPane.getIndexOf(Component c)
Returns the index of the specified Component. |
void |
JLayeredPane.moveToFront(Component c)
Moves the component to the top of the components in it's current layer (position 0). |
void |
JLayeredPane.moveToBack(Component c)
Moves the component to the bottom of the components in it's current layer (position -1). |
void |
JLayeredPane.setPosition(Component c,
int position)
Moves the component to position within it's current layer,
where 0 is the topmost position within the layer and -1 is the bottommost
position. |
int |
JLayeredPane.getPosition(Component c)
Get the relative position of the component within its layer. |
void |
RootPaneContainer.setGlassPane(Component glassPane)
The glassPane is always the first child of the rootPane and the rootPanes layout manager ensures that it's always as big as the rootPane. |
void |
DefaultFocusManager.processKeyEvent(Component focusedComponent,
KeyEvent anEvent)
|
void |
DefaultFocusManager.focusNextComponent(Component aComponent)
Cause the focus manager to set the focus on the next focusable component |
void |
DefaultFocusManager.focusPreviousComponent(Component aComponent)
Cause the focus manager to set the focus on the previous focusable component |
Component |
DefaultFocusManager.getComponentBefore(Container aContainer,
Component aComponent)
Return the component that should receive the focus before aComponent |
Component |
DefaultFocusManager.getComponentAfter(Container aContainer,
Component aComponent)
Return the component the should receive the focus after aComponent |
boolean |
DefaultFocusManager.compareTabOrder(Component a,
Component b)
Return true if a should be before b in the
"tab" order. |
protected void |
JApplet.addImpl(Component comp,
Object constraints,
int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. |
void |
JApplet.setGlassPane(Component glassPane)
Sets the glassPane property. |
static Color |
JColorChooser.showDialog(Component component,
String title,
Color initialColor)
Shows a modal color-chooser dialog and blocks until the dialog is hidden. |
static JDialog |
JColorChooser.createDialog(Component c,
String title,
boolean modal,
JColorChooser chooserPane,
ActionListener okListener,
ActionListener cancelListener)
Creates and returns a new dialog containing the specified ColorChooser pane along with "OK", "Cancel", and "Reset" buttons. |
static RepaintManager |
RepaintManager.currentManager(Component c)
Return the RepaintManager for the calling thread given a Component. |
Image |
RepaintManager.getOffscreenBuffer(Component c,
int proposedWidth,
int proposedHeight)
Return the offscreen buffer that should be used as a double buffer with the component c
By default there is a double buffer per RepaintManager. |
Component |
MenuSelectionManager.componentForPoint(Component source,
Point sourcePoint)
Returns the component in the currently selected path which contains sourcePoint. |
boolean |
MenuSelectionManager.isComponentPartOfCurrentMenu(Component c)
Return true if c is part of the currently used menu |
int |
JToolBar.getComponentIndex(Component c)
Returns the index of the specified component. |
void |
JToolBar.remove(Component comp)
Remove the Component from the tool bar. |
protected void |
JToolBar.addImpl(Component comp,
Object constraints,
int index)
|
void |
JSplitPane.setLeftComponent(Component comp)
Sets the component to the left (or above) the divider. |
void |
JSplitPane.setTopComponent(Component comp)
Sets the component above, or to the left of the divider. |
void |
JSplitPane.setRightComponent(Component comp)
Sets the component to the right (or below) the divider. |
void |
JSplitPane.setBottomComponent(Component comp)
Sets the component below, or to the right of the divider. |
void |
JSplitPane.remove(Component component)
Removes the child component, component from the
pane. |
protected void |
JSplitPane.addImpl(Component comp,
Object constraints,
int index)
If constraints identifies the left/top or
right/bottom child component, and a component with that identifier
was previously added, it will be removed and then comp
will be added in its place. |
void |
ImageIcon.paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the Icon |
protected void |
JViewport.addImpl(Component child,
Object constraints,
int index)
Sets the Viewport's one lightweight child, which can be null. |
void |
JViewport.remove(Component child)
Removes the Viewport's one lightweight child. |
void |
JViewport.setView(Component view)
Sets the Viewport's one lightweight child ( view ),
which can be null. |
void |
Icon.paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location. |
protected Component |
ScrollPaneLayout.addSingletonComponent(Component oldC,
Component newC)
The method used to replace an existing component (if any) with a new one. |
void |
ScrollPaneLayout.addLayoutComponent(String s,
Component c)
Adds the specified component to the layout. |
void |
ScrollPaneLayout.removeLayoutComponent(Component c)
Removes the specified component from the layout. |
int |
JMenuBar.getComponentIndex(Component c)
Returns the index of the specified component. |
void |
JMenuBar.setSelected(Component sel)
Sets the currently selected component, producing a a change to the selection model. |
int |
JFileChooser.showOpenDialog(Component parent)
Pops up an "Open File" file chooser dialog. |
int |
JFileChooser.showSaveDialog(Component parent)
Pops up a "Save File" file chooser dialog. |
int |
JFileChooser.showDialog(Component parent,
String approveButtonText)
Pops a custom file chooser dialog with a custom ApproveButton. |
static Rectangle |
SwingUtilities.getLocalBounds(Component aComponent)
Return the rectangle (0,0,bounds.width,bounds.height) for the component aComponent |
static Point |
SwingUtilities.convertPoint(Component source,
Point aPoint,
Component destination)
Convert a aPoint in source coordinate system to
destination coordinate system. |
static Point |
SwingUtilities.convertPoint(Component source,
int x,
int y,
Component destination)
Convert the point (x,y) in source coordinate system to
destination coordinate system. |
static Rectangle |
SwingUtilities.convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
static Container |
SwingUtilities.getAncestorOfClass(Class c,
Component comp)
Convenience method for searching above comp in the
component hierarchy and returns the first object of class c it
finds. |
static Container |
SwingUtilities.getAncestorNamed(String name,
Component comp)
Convenience method for searching above comp in the
component hierarchy and returns the first object of name it
finds. |
static Component |
SwingUtilities.getDeepestComponentAt(Component parent,
int x,
int y)
Returns the deepest visible descendent Component of parent
that contains the location x , y . |
static MouseEvent |
SwingUtilities.convertMouseEvent(Component source,
MouseEvent sourceEvent,
Component destination)
Returns a MouseEvent similar to sourceEvent except that its x
and y members have been converted to destination 's coordinate
system. |
static void |
SwingUtilities.convertPointToScreen(Point p,
Component c)
Convert a point from a component's coordinate system to screen coordinates. |
static void |
SwingUtilities.convertPointFromScreen(Point p,
Component c)
Convert a point from a screen coordinates to a component's coordinate system |
static Window |
SwingUtilities.windowForComponent(Component aComponent)
Return aComponent 's window |
static boolean |
SwingUtilities.isDescendingFrom(Component a,
Component b)
Return true if a component a descends from a component b |
static void |
SwingUtilities.paintComponent(Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h)
Paint a component c on an abitrary graphics g in the specified rectangle, specifying the rectangle's upper left corner and size. |
static void |
SwingUtilities.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Paint a component c on an abitrary graphics g in the specified rectangle, specifying a Rectangle object. |
static void |
SwingUtilities.updateComponentTreeUI(Component c)
A simple minded look and feel change: ask each node in the tree to updateUI(), i.e. |
static int |
SwingUtilities.getAccessibleIndexInParent(Component c)
Get the index of this object in its accessible parent. |
static Accessible |
SwingUtilities.getAccessibleAt(Component c,
Point p)
Returns the Accessible child contained at the local coordinate Point, if one exists. |
static AccessibleStateSet |
SwingUtilities.getAccessibleStateSet(Component c)
Get the state of this object. |
static int |
SwingUtilities.getAccessibleChildrenCount(Component c)
Returns the number of accessible children in the object. |
static Accessible |
SwingUtilities.getAccessibleChild(Component c,
int i)
Return the nth Accessible child of the object. |
static Component |
SwingUtilities.findFocusOwner(Component c)
Return the child component which has focus, if any. |
static JRootPane |
SwingUtilities.getRootPane(Component c)
If c is a JRootPane descendant return its JRootPane ancestor. |
static Component |
SwingUtilities.getRoot(Component c)
Returns the root component for the current component tree. |
void |
JScrollPane.setViewportView(Component view)
Creates a viewport if neccessary and then sets its view. |
void |
JScrollPane.setRowHeaderView(Component view)
Creates a row-header viewport if neccessary, sets its view and then adds the row-header viewport to the scrollpane. |
void |
JScrollPane.setColumnHeaderView(Component view)
Creates a column-header viewport if neccessary, sets its view and then adds the column-header viewport to the scrollpane. |
void |
JScrollPane.setCorner(String key,
Component corner)
Adds a child that will appear in one of the scroll panes corners, if there's room. |
void |
JPopupMenu.remove(Component comp)
Removes the specified component from this popup menu. |
void |
JPopupMenu.insert(Component component,
int index)
Inserts the specified component into the menu at a given position. |
void |
JPopupMenu.setInvoker(Component invoker)
Sets the invoker of this popupmenu -- the component in which the popupmenu menu is to be displayed. |
void |
JPopupMenu.show(Component invoker,
int x,
int y)
Display the popupmenu at the position x,y in the coordinate space of the component invoker. |
int |
JPopupMenu.getComponentIndex(Component c)
Returns the index of the specified component. |
void |
JPopupMenu.setSelected(Component sel)
Sets the currently selected component, This will result in a change to the selection model. |
protected void |
JWindow.addImpl(Component comp,
Object constraints,
int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. |
void |
JWindow.setGlassPane(Component glassPane)
Sets the glassPane property. |
static String |
JOptionPane.showInputDialog(Component parentComponent,
Object message)
Shows a question-message dialog requesting input from the user parented to parentComponent . |
static String |
JOptionPane.showInputDialog(Component parentComponent,
Object message,
String title,
int messageType)
Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title
title and message type messageType . |
static Object |
JOptionPane.showInputDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified. |
static void |
JOptionPane.showMessageDialog(Component parentComponent,
Object message)
Brings up a confirmation dialog -- a modal information-message dialog titled "Confirm". |
static void |
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
Brings up a dialog that displays a message using a default icon determined by the messageType parameter. |
static void |
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon)
Brings up a dialog displaying a message, specifying all parameters. |
static int |
JOptionPane.showConfirmDialog(Component parentComponent,
Object message)
Brings up a modal dialog with the options Yes, No and Cancel; with the title, "Select an Option". |
static int |
JOptionPane.showConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType)
Brings up a modal dialog where the number of choices is determined by the optionType parameter. |
static int |
JOptionPane.showConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType)
Brings up a modal dialog where the number of choices is determined by the optionType parameter, where the messageType
parameter determines the icon to display. |
static int |
JOptionPane.showConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon)
Brings up a modal dialog with a specified icon, where the number of choices is determined by the optionType parameter. |
static int |
JOptionPane.showOptionDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
Brings up a modal dialog with a specified icon, where the initial choice is dermined by the initialValue parameter and
the number of choices is determined by the optionType
parameter. |
JDialog |
JOptionPane.createDialog(Component parentComponent,
String title)
Creates and returns a new JDialog wrapping this
centered on the parentComponent in the
parentComponent 's frame. |
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent,
Object message)
Brings up an internal confirmation dialog panel. |
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter. |
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon)
Brings up an internal dialog panel displaying a message, specifying all parameters. |
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent,
Object message)
Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, "Select an Option". |
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType)
Brings up a internal dialog panel where the number of choices is determined by the optionType parameter. |
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType)
Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where
the messageType parameter determines the icon to display. |
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon)
Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType
parameter. |
static int |
JOptionPane.showInternalOptionDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
Brings up an internal dialog panel with a specified icon, where the initial choice is dermined by the initialValue
parameter and the number of choices is determined by the
optionType parameter. |
static String |
JOptionPane.showInternalInputDialog(Component parentComponent,
Object message)
Shows an internal question-message dialog requesting input from the user parented to parentComponent . |
static String |
JOptionPane.showInternalInputDialog(Component parentComponent,
Object message,
String title,
int messageType)
Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title
title and message type messageType . |
static Object |
JOptionPane.showInternalInputDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified. |
JInternalFrame |
JOptionPane.createInternalFrame(Component parentComponent,
String title)
Creates and returns an instance of JInternalFrame. |
static Frame |
JOptionPane.getFrameForComponent(Component parentComponent)
Returns the specified component's Frame. |
static JDesktopPane |
JOptionPane.getDesktopPaneForComponent(Component parentComponent)
Returns the specified component's desktop pane. |
void |
BoxLayout.addLayoutComponent(String name,
Component comp)
Not used by this class. |
void |
BoxLayout.removeLayoutComponent(Component comp)
Not used by this class. |
void |
BoxLayout.addLayoutComponent(Component comp,
Object constraints)
Not used by this class. |
void |
JRootPane.setGlassPane(Component glass)
Sets a specified Component to be the glass pane for this root pane. |
protected void |
JRootPane.addImpl(Component comp,
Object constraints,
int index)
Overridden to enforce the position of the glass component as the zero child. |
void |
JRootPane.RootLayout.addLayoutComponent(String name,
Component comp)
|
void |
JRootPane.RootLayout.removeLayoutComponent(Component comp)
|
void |
JRootPane.RootLayout.addLayoutComponent(Component comp,
Object constraints)
|
void |
JTabbedPane.setSelectedComponent(Component c)
Sets the selected component for this tabbedpane. |
void |
JTabbedPane.insertTab(String title,
Icon icon,
Component component,
String tip,
int index)
Inserts a component, at index, represented by a title and/or icon, either of which may be null. |
void |
JTabbedPane.addTab(String title,
Icon icon,
Component component,
String tip)
Adds a component and tip represented by a title and/or icon, either of which can be null. |
void |
JTabbedPane.addTab(String title,
Icon icon,
Component component)
Adds a component represented by a title and/or icon, either of which can be null. |
void |
JTabbedPane.addTab(String title,
Component component)
Adds a component represented by a title and no icon. |
Component |
JTabbedPane.add(Component component)
Adds a component with a tab title defaulting to the name of the component. |
Component |
JTabbedPane.add(String title,
Component component)
Adds a component with the specified tab title. |
Component |
JTabbedPane.add(Component component,
int index)
Adds a component at the specified tab index with a tab title defaulting to the name of the component. |
void |
JTabbedPane.add(Component component,
Object constraints)
Adds a component to the tabbed pane. |
void |
JTabbedPane.add(Component component,
Object constraints,
int index)
Adds a component at the specified tab index. |
void |
JTabbedPane.remove(Component component)
Removes the tab which corresponds to the specified component. |
void |
JTabbedPane.setComponentAt(int index,
Component component)
Sets the component at index to component. |
int |
JTabbedPane.indexOfComponent(Component component)
Returns the index of the tab for the specified component. |
protected void |
JDialog.addImpl(Component comp,
Object constraints,
int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. |
void |
JDialog.setGlassPane(Component glassPane)
Sets the glassPane property. |
void |
JDialog.setLocationRelativeTo(Component c)
Sets the location of the dialog relative to the specified component. |
Component |
JMenu.add(Component c)
Appends a component to the end of this menu. |
void |
JMenu.remove(Component c)
Removes the Component from this menu. |
boolean |
JMenu.isMenuComponent(Component c)
Returns true if the specified component exists in the submenu hierarchy. |
protected void |
CellRendererPane.addImpl(Component x,
Object constraints,
int index)
If the specified component is already a child of this then we don't bother doing anything - stacking order doesn't matter for cell renderer components (CellRendererPane doesn't paint anyway).< |
void |
CellRendererPane.paintComponent(Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h,
boolean shouldValidate)
Paint a cell renderer component c on graphics object g. |
void |
CellRendererPane.paintComponent(Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h)
Calls this.paintComponent(g, c, p, x, y, w, h, false). |
void |
CellRendererPane.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Calls this.paintComponent() with the rectangles x,y,width,height fields. |
void |
OverlayLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
OverlayLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
OverlayLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
protected void |
JFrame.addImpl(Component comp,
Object constraints,
int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. |
void |
JFrame.setGlassPane(Component glassPane)
Sets the glassPane property. |
Constructors in javax.swing with parameters of type Component | |
JSplitPane.JSplitPane(int newOrientation,
Component newLeftComponent,
Component newRightComponent)
Returns a new JSplitPane with the specified orientation and with the specifiied components that does not do continuous redrawing. |
|
JSplitPane.JSplitPane(int newOrientation,
boolean newContinuousLayout,
Component newLeftComponent,
Component newRightComponent)
Returns a new JSplitPane with the specified orientation and redrawing style, and with the specifiied components. |
|
ProgressMonitorInputStream.ProgressMonitorInputStream(Component parentComponent,
Object message,
InputStream in)
Constructs an object to monitor the progress of an input stream. |
|
ProgressMonitor.ProgressMonitor(Component parentComponent,
Object message,
String note,
int min,
int max)
Constructs a graphic object that shows progress, typically by filling in a rectangular bar as the process nears completion. |
|
JScrollPane.JScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
Create a JScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars. |
|
JScrollPane.JScrollPane(Component view)
Create a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view. |
Uses of Component in javax.swing.border |
Methods in javax.swing.border with parameters of type Component | |
void |
AbstractBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
This default implementation does no painting. |
Insets |
AbstractBorder.getBorderInsets(Component c)
This default implementation returns the value of getBorderMargins. |
Insets |
AbstractBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
This is a convience method that calls the static method. |
static Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
This method returns a rectangle using the arguements minus the insets of the border. |
void |
TitledBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
TitledBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Insets |
TitledBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
Dimension |
TitledBorder.getMinimumSize(Component c)
Returns the minimum dimensions this border requires in order to fully display the border and title. |
protected Font |
TitledBorder.getFont(Component c)
|
void |
LineBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
LineBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Insets |
LineBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
void |
EmptyBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Does no drawing by default. |
Insets |
EmptyBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Insets |
EmptyBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
void |
CompoundBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the compound border by painting the outside border with the specified position and size and then painting the inside border at the specified position and size offset by the insets of the outside border. |
Insets |
CompoundBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
Insets |
CompoundBorder.getBorderInsets(Component c)
Returns the insets of the composite border by adding the insets of the outside border to the insets of the inside border. |
void |
Border.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
Border.getBorderInsets(Component c)
Returns the insets of the border. |
void |
BevelBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
BevelBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Insets |
BevelBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
Color |
BevelBorder.getHighlightOuterColor(Component c)
Returns the outer highlight color of the bevel border. |
Color |
BevelBorder.getHighlightInnerColor(Component c)
Returns the inner highlight color of the bevel border. |
Color |
BevelBorder.getShadowInnerColor(Component c)
Returns the inner shadow color of the bevel border. |
Color |
BevelBorder.getShadowOuterColor(Component c)
Returns the outer shadow color of the bevel border. |
protected void |
BevelBorder.paintRaisedBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
BevelBorder.paintLoweredBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
void |
MatteBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the matte border. |
Insets |
MatteBorder.getBorderInsets(Component c)
Returns the insets of the border. |
void |
EtchedBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
EtchedBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Insets |
EtchedBorder.getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
Color |
EtchedBorder.getHighlightColor(Component c)
Returns the highlight color of the etched border. |
Color |
EtchedBorder.getShadowColor(Component c)
Returns the shadow color of the etched border. |
void |
SoftBevelBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Insets |
SoftBevelBorder.getBorderInsets(Component c)
Returns the insets of the border. |
Uses of Component in javax.swing.colorchooser |
Subclasses of Component in javax.swing.colorchooser | |
class |
AbstractColorChooserPanel
The is the abstract superclass for color choosers. |
Uses of Component in javax.swing.event |
Constructors in javax.swing.event with parameters of type Component | |
MenuKeyEvent.MenuKeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
MenuElement[] p,
MenuSelectionManager m)
Constructs a MenuKeyEvent object. |
|
MenuDragMouseEvent.MenuDragMouseEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
MenuElement[] p,
MenuSelectionManager m)
Constructs a MenuDragMouseEvent object. |
Uses of Component in javax.swing.plaf |
Methods in javax.swing.plaf with parameters of type Component | |
void |
IconUIResource.paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
BorderUIResource.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BorderUIResource.getBorderInsets(Component c)
|
Uses of Component in javax.swing.plaf.basic |
Subclasses of Component in javax.swing.plaf.basic | |
class |
BasicArrowButton
JButton object that draws a scaled Arrow in one of the cardinal directions. |
class |
BasicComboBoxRenderer
ComboBox renderer Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
BasicComboBoxRenderer.UIResource
A subclass of BasicComboBoxRenderer that implements UIResource. |
class |
BasicComboPopup
This is an implementation of the ComboPopup interface. |
class |
BasicInternalFrameTitlePane
The class that manages a basic title bar Warning: Serialized objects of this class will not be compatible with future Swing releases. |
class |
BasicInternalFrameTitlePane.SystemMenuBar
This inner class is marked "public" due to a compiler bug. |
class |
BasicSplitPaneDivider
Divider used by BasicSplitPaneUI. |
protected class |
BasicToolBarUI.DragWindow
|
Fields in javax.swing.plaf.basic declared as Component | |
protected Component |
BasicOptionPaneUI.initialFocusComponent
Component to receive focus when messaged with selectInitialValue. |
protected Component |
BasicSplitPaneDivider.hiddenDivider
Divider that is used for noncontinuous layout mode. |
protected Component |
BasicSplitPaneUI.nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used. |
protected Component[] |
BasicSplitPaneUI.BasicHorizontalLayoutManager.components
|
protected Component |
BasicTreeUI.editingComponent
When editing, this will be the Component that is doing the actual editing. |
protected Component |
BasicTreeUI.MouseInputHandler.source
Source that events are coming from. |
protected Component |
BasicTreeUI.MouseInputHandler.destination
Destination that recieves all events. |
protected Component |
BasicComboBoxUI.editor
|
Component |
BasicMenuUI.ChangeHandler.wasFocused
|
Methods in javax.swing.plaf.basic that return Component | |
Component |
BasicComboBoxEditor.getEditorComponent()
|
protected Component |
BasicTabbedPaneUI.getVisibleComponent()
|
Component |
BasicComboBoxRenderer.getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
protected Component |
BasicSliderUI.getLowestValueLabel()
Returns the label that corresponds to the highest slider value in the label table. |
protected Component |
BasicSliderUI.getHighestValueLabel()
Returns the label that corresponds to the lowest slider value in the label table. |
protected Component |
BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray. |
Component |
BasicSplitPaneUI.getNonContinuousLayoutDivider()
Returns the divider to use when the splitPane is configured to not continuously layout. |
Methods in javax.swing.plaf.basic with parameters of type Component | |
void |
BasicOptionPaneUI.ButtonAreaLayout.addLayoutComponent(String string,
Component comp)
|
void |
BasicOptionPaneUI.ButtonAreaLayout.removeLayoutComponent(Component c)
|
protected void |
BasicTabbedPaneUI.setVisibleComponent(Component component)
|
void |
BasicTabbedPaneUI.TabbedPaneLayout.addLayoutComponent(String name,
Component comp)
|
void |
BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent(Component comp)
|
void |
BasicSplitPaneDivider.DividerLayout.removeLayoutComponent(Component c)
|
void |
BasicSplitPaneDivider.DividerLayout.addLayoutComponent(String string,
Component c)
|
boolean |
BasicToolBarUI.canDock(Component c,
Point p)
|
protected void |
BasicSliderUI.paintHorizontalLabel(Graphics g,
int value,
Component label)
Called for every label in the label table. |
protected void |
BasicSliderUI.paintVerticalLabel(Graphics g,
int value,
Component label)
Called for every label in the label table. |
void |
BasicInternalFrameTitlePane.TitlePaneLayout.addLayoutComponent(String name,
Component c)
|
void |
BasicInternalFrameTitlePane.TitlePaneLayout.removeLayoutComponent(Component c)
|
protected void |
BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider)
Sets the divider to use when the splitPane is configured to not continuously layout. |
protected void |
BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider,
boolean rememberSizes)
Sets the divider to use. |
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Component c)
Returns the width of the passed in Components preferred size. |
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getSizeOfComponent(Component c)
Returns the width of the passed in component. |
protected void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c,
int size,
int location,
Insets insets,
Dimension containerSize)
Sets the width of the component c to be size, placing its x location at location, y to the insets.top and height to the containersize.height less the top and bottom insets. |
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(String place,
Component component)
Adds the component at place. |
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.removeLayoutComponent(Component component)
Removes the specified component from our knowledge. |
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
protected int |
BasicSplitPaneUI.BasicVerticalLayoutManager.getPreferredSizeOfComponent(Component c)
Returns the height of the passed in Components preferred size. |
protected int |
BasicSplitPaneUI.BasicVerticalLayoutManager.getSizeOfComponent(Component c)
Returns the height of the passed in component. |
protected void |
BasicSplitPaneUI.BasicVerticalLayoutManager.setComponentToSize(Component c,
int size,
int location,
Insets insets,
Dimension containerSize)
Sets the height of the component c to be size, placing its x location to insets.left, y to location and width to the containersize.width less the left and right insets. |
protected void |
BasicTreeUI.drawCentered(Component c,
Graphics graphics,
Icon icon,
int x,
int y)
|
void |
BasicScrollBarUI.addLayoutComponent(String name,
Component child)
|
void |
BasicScrollBarUI.removeLayoutComponent(Component child)
|
void |
BasicBorders.ButtonBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component c)
|
void |
BasicBorders.ToggleButtonBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c)
|
void |
BasicBorders.RadioButtonBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component c)
|
void |
BasicBorders.MenuBarBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component c)
|
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component c)
|
void |
BasicBorders.FieldBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component c)
|
void |
BasicBorders.SplitPaneBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
Insets |
BasicBorders.SplitPaneBorder.getBorderInsets(Component c)
|
void |
BasicComboBoxUI.ComboBoxLayoutManager.addLayoutComponent(String name,
Component comp)
|
void |
BasicComboBoxUI.ComboBoxLayoutManager.removeLayoutComponent(Component comp)
|
void |
BasicInternalFrameUI.InternalFrameLayout.addLayoutComponent(String name,
Component c)
|
void |
BasicInternalFrameUI.InternalFrameLayout.removeLayoutComponent(Component c)
|
Constructors in javax.swing.plaf.basic with parameters of type Component | |
BasicTreeUI.MouseInputHandler.BasicTreeUI.MouseInputHandler(Component source,
Component destination,
MouseEvent event)
|
Uses of Component in javax.swing.plaf.metal |
Subclasses of Component in javax.swing.plaf.metal | |
class |
MetalComboBoxButton
JButton subclass to help out MetalComboBoxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. |
class |
MetalComboBoxUI.MetalComboPopup
This inner class is marked "public" due to a compiler bug. |
protected class |
MetalFileChooserUI.FileRenderer
|
class |
MetalFileChooserUI.FilterComboBoxRenderer
Render different type sizes and styles. |
class |
MetalScrollButton
JButton object for Metal scrollbar arrows. |
Methods in javax.swing.plaf.metal that return Component | |
Component |
MetalFileChooserUI.FileRenderer.getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Component |
MetalFileChooserUI.FilterComboBoxRenderer.getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Methods in javax.swing.plaf.metal with parameters of type Component | |
void |
MetalCheckBoxIcon.paintIcon(Component c,
Graphics g,
int x,
int y)
|
protected void |
MetalCheckBoxIcon.drawCheck(Component c,
Graphics g,
int x,
int y)
|
void |
MetalComboBoxIcon.paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the horizontal bars for the |
void |
MetalBorders.Flush3DBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component c)
|
void |
MetalBorders.ButtonBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component c)
|
void |
MetalBorders.InternalFrameBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component c)
|
void |
MetalBorders.MenuBarBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component c)
|
void |
MetalBorders.MenuItemBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component c)
|
void |
MetalBorders.PopupMenuBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component c)
|
void |
MetalBorders.RolloverButtonBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
void |
MetalBorders.ToolBarBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component c)
|
void |
MetalBorders.TextFieldBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
void |
MetalBorders.ScrollPaneBorder.paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c)
|
protected void |
MetalToolBarUI.setBorderToRollover(Component c)
|
protected void |
MetalToolBarUI.setBorderToNonRollover(Component c)
|
protected void |
MetalToolBarUI.setBorderToNormal(Component c)
|
void |
MetalIconFactory.FolderIcon16.paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
MetalIconFactory.FileIcon16.paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
MetalIconFactory.TreeControlIcon.paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
MetalIconFactory.TreeControlIcon.paintMe(Component c,
Graphics g,
int x,
int y)
|
Uses of Component in javax.swing.table |
Subclasses of Component in javax.swing.table | |
class |
DefaultTableCellRenderer
The standard class for rendering (displaying) individual cells in a JTable. |
static class |
DefaultTableCellRenderer.UIResource
A subclass of DefaultTableCellRenderer that implements UIResource. |
class |
JTableHeader
This is the column header part of a JTable. |
Methods in javax.swing.table that return Component | |
Component |
TableCellEditor.getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor. |
Component |
TableCellRenderer.getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
This method is sent to the renderer by the drawing table to configure the renderer appropriately before drawing. |
Component |
DefaultTableCellRenderer.getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
Uses of Component in javax.swing.text |
Subclasses of Component in javax.swing.text | |
class |
JTextComponent
JTextComponent is the base class for swing text components. |
Methods in javax.swing.text that return Component | |
static Component |
StyleConstants.getComponent(AttributeSet a)
Gets the component setting from the attribute list. |
protected Component |
ComponentView.createComponent()
Create the component that is associated with this view. |
Component |
ComponentView.getComponent()
Fetch the component associated with the view. |
Methods in javax.swing.text with parameters of type Component | |
static void |
StyleConstants.setComponent(MutableAttributeSet a,
Component c)
Sets the component attribute. |
Uses of Component in javax.swing.text.html |
Methods in javax.swing.text.html that return Component | |
protected Component |
ObjectView.createComponent()
Create the component. |
protected Component |
FormView.createComponent()
Create the component. |
Uses of Component in javax.swing.tree |
Subclasses of Component in javax.swing.tree | |
class |
DefaultTreeCellEditor.DefaultTextField
TextField used when no editor is supplied. |
class |
DefaultTreeCellEditor.EditorContainer
Container responsible for placing the editingComponent. |
class |
DefaultTreeCellRenderer
Displays an entry in a tree. |
Fields in javax.swing.tree declared as Component | |
protected Component |
DefaultTreeCellEditor.editingComponent
Component used in editing, obtained from the editingContainer. |
Methods in javax.swing.tree that return Component | |
Component |
DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Configures the editor. |
Component |
TreeCellEditor.getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Sets an initial value for the editor. |
Component |
TreeCellRenderer.getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Sets the value of the current tree cell to value . |
Component |
DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Configures the renderer based on the passed in components. |
|
Java Platform 1.2 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |