javax.swing
Class JTabbedPane

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Component sample code for java.awt.Component definition code for java.awt.Component 
      extended by java.awt.Container sample code for java.awt.Container definition code for java.awt.Container 
          extended by javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent 
              extended by javax.swing.JTabbedPane
All Implemented Interfaces:
ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants

public class JTabbedPane
extends JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants

A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon. For examples and information on using tabbed panes see How to Use Tabbed Panes, a section in The Java Tutorial.

Tabs/components are added to a TabbedPane object by using the addTab and insertTab methods. A tab is represented by an index corresponding to the position it was added in, where the first tab has an index equal to 0 and the last tab has an index equal to the tab count minus 1.

The TabbedPane uses a SingleSelectionModel to represent the set of tab indices and the currently selected index. If the tab count is greater than 0, then there will always be a selected index, which by default will be initialized to the first tab. If the tab count is 0, then the selected index will be -1.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel , Serialized Form

Nested Class Summary
protected  class JTabbedPane.AccessibleJTabbedPane sample code for javax.swing.JTabbedPane.AccessibleJTabbedPane definition code for javax.swing.JTabbedPane.AccessibleJTabbedPane
          This class implements accessibility support for the JTabbedPane class.
protected  class JTabbedPane.ModelListener sample code for javax.swing.JTabbedPane.ModelListener definition code for javax.swing.JTabbedPane.ModelListener
          We pass ModelChanged events along to the listeners with the tabbedpane (instead of the model itself) as the event source.
 
Nested classes/interfaces inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Component.BltBufferStrategy sample code for java.awt.Component.BltBufferStrategy definition code for java.awt.Component.BltBufferStrategy , Component.FlipBufferStrategy sample code for java.awt.Component.FlipBufferStrategy definition code for java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  ChangeEvent sample code for javax.swing.event.ChangeEvent definition code for javax.swing.event.ChangeEvent changeEvent sample code for javax.swing.JTabbedPane.changeEvent definition code for javax.swing.JTabbedPane.changeEvent
          Only one ChangeEvent is needed per TabPane instance since the event's only (read-only) state is the source property.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener changeListener sample code for javax.swing.JTabbedPane.changeListener definition code for javax.swing.JTabbedPane.changeListener
          The changeListener is the listener we add to the model.
protected  SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel model sample code for javax.swing.JTabbedPane.model definition code for javax.swing.JTabbedPane.model
          The default selection model
static int SCROLL_TAB_LAYOUT sample code for javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT definition code for javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT
          Tab layout policy for providing a subset of available tabs when all the tabs will not fit within a single run.
protected  int tabPlacement sample code for javax.swing.JTabbedPane.tabPlacement definition code for javax.swing.JTabbedPane.tabPlacement
          Where the tabs are placed.
static int WRAP_TAB_LAYOUT sample code for javax.swing.JTabbedPane.WRAP_TAB_LAYOUT definition code for javax.swing.JTabbedPane.WRAP_TAB_LAYOUT
          The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run.
 
Fields inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
accessibleContext sample code for javax.swing.JComponent.accessibleContext definition code for javax.swing.JComponent.accessibleContext , listenerList sample code for javax.swing.JComponent.listenerList definition code for javax.swing.JComponent.listenerList , TOOL_TIP_TEXT_KEY sample code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY definition code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY , ui sample code for javax.swing.JComponent.ui definition code for javax.swing.JComponent.ui , UNDEFINED_CONDITION sample code for javax.swing.JComponent.UNDEFINED_CONDITION definition code for javax.swing.JComponent.UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT sample code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT definition code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED sample code for javax.swing.JComponent.WHEN_FOCUSED definition code for javax.swing.JComponent.WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW sample code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW definition code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
BOTTOM_ALIGNMENT sample code for java.awt.Component.BOTTOM_ALIGNMENT definition code for java.awt.Component.BOTTOM_ALIGNMENT , CENTER_ALIGNMENT sample code for java.awt.Component.CENTER_ALIGNMENT definition code for java.awt.Component.CENTER_ALIGNMENT , LEFT_ALIGNMENT sample code for java.awt.Component.LEFT_ALIGNMENT definition code for java.awt.Component.LEFT_ALIGNMENT , RIGHT_ALIGNMENT sample code for java.awt.Component.RIGHT_ALIGNMENT definition code for java.awt.Component.RIGHT_ALIGNMENT , TOP_ALIGNMENT sample code for java.awt.Component.TOP_ALIGNMENT definition code for java.awt.Component.TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
BOTTOM sample code for javax.swing.SwingConstants.BOTTOM definition code for javax.swing.SwingConstants.BOTTOM , CENTER sample code for javax.swing.SwingConstants.CENTER definition code for javax.swing.SwingConstants.CENTER , EAST sample code for javax.swing.SwingConstants.EAST definition code for javax.swing.SwingConstants.EAST , HORIZONTAL sample code for javax.swing.SwingConstants.HORIZONTAL definition code for javax.swing.SwingConstants.HORIZONTAL , LEADING sample code for javax.swing.SwingConstants.LEADING definition code for javax.swing.SwingConstants.LEADING , LEFT sample code for javax.swing.SwingConstants.LEFT definition code for javax.swing.SwingConstants.LEFT , NEXT sample code for javax.swing.SwingConstants.NEXT definition code for javax.swing.SwingConstants.NEXT , NORTH sample code for javax.swing.SwingConstants.NORTH definition code for javax.swing.SwingConstants.NORTH , NORTH_EAST sample code for javax.swing.SwingConstants.NORTH_EAST definition code for javax.swing.SwingConstants.NORTH_EAST , NORTH_WEST sample code for javax.swing.SwingConstants.NORTH_WEST definition code for javax.swing.SwingConstants.NORTH_WEST , PREVIOUS sample code for javax.swing.SwingConstants.PREVIOUS definition code for javax.swing.SwingConstants.PREVIOUS , RIGHT sample code for javax.swing.SwingConstants.RIGHT definition code for javax.swing.SwingConstants.RIGHT , SOUTH sample code for javax.swing.SwingConstants.SOUTH definition code for javax.swing.SwingConstants.SOUTH , SOUTH_EAST sample code for javax.swing.SwingConstants.SOUTH_EAST definition code for javax.swing.SwingConstants.SOUTH_EAST , SOUTH_WEST sample code for javax.swing.SwingConstants.SOUTH_WEST definition code for javax.swing.SwingConstants.SOUTH_WEST , TOP sample code for javax.swing.SwingConstants.TOP definition code for javax.swing.SwingConstants.TOP , TRAILING sample code for javax.swing.SwingConstants.TRAILING definition code for javax.swing.SwingConstants.TRAILING , VERTICAL sample code for javax.swing.SwingConstants.VERTICAL definition code for javax.swing.SwingConstants.VERTICAL , WEST sample code for javax.swing.SwingConstants.WEST definition code for javax.swing.SwingConstants.WEST
 
Fields inherited from interface java.awt.image.ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver
ABORT sample code for java.awt.image.ImageObserver.ABORT definition code for java.awt.image.ImageObserver.ABORT , ALLBITS sample code for java.awt.image.ImageObserver.ALLBITS definition code for java.awt.image.ImageObserver.ALLBITS , ERROR sample code for java.awt.image.ImageObserver.ERROR definition code for java.awt.image.ImageObserver.ERROR , FRAMEBITS sample code for java.awt.image.ImageObserver.FRAMEBITS definition code for java.awt.image.ImageObserver.FRAMEBITS , HEIGHT sample code for java.awt.image.ImageObserver.HEIGHT definition code for java.awt.image.ImageObserver.HEIGHT , PROPERTIES sample code for java.awt.image.ImageObserver.PROPERTIES definition code for java.awt.image.ImageObserver.PROPERTIES , SOMEBITS sample code for java.awt.image.ImageObserver.SOMEBITS definition code for java.awt.image.ImageObserver.SOMEBITS , WIDTH sample code for java.awt.image.ImageObserver.WIDTH definition code for java.awt.image.ImageObserver.WIDTH
 
Constructor Summary
JTabbedPane sample code for javax.swing.JTabbedPane.JTabbedPane() definition code for javax.swing.JTabbedPane.JTabbedPane() ()
          Creates an empty TabbedPane with a default tab placement of JTabbedPane.TOP.
JTabbedPane sample code for javax.swing.JTabbedPane.JTabbedPane(int) definition code for javax.swing.JTabbedPane.JTabbedPane(int) (int tabPlacement)
          Creates an empty TabbedPane with the specified tab placement of either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT.
JTabbedPane sample code for javax.swing.JTabbedPane.JTabbedPane(int, int) definition code for javax.swing.JTabbedPane.JTabbedPane(int, int) (int tabPlacement, int tabLayoutPolicy)
          Creates an empty TabbedPane with the specified tab placement and tab layout policy.
 
Method Summary
 Component sample code for java.awt.Component definition code for java.awt.Component add sample code for javax.swing.JTabbedPane.add(java.awt.Component) definition code for javax.swing.JTabbedPane.add(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Adds a component with a tab title defaulting to the name of the component which is the result of calling component.getName.
 Component sample code for java.awt.Component definition code for java.awt.Component add sample code for javax.swing.JTabbedPane.add(java.awt.Component, int) definition code for javax.swing.JTabbedPane.add(java.awt.Component, int) (Component sample code for java.awt.Component definition code for java.awt.Component  component, int index)
          Adds a component at the specified tab index with a tab title defaulting to the name of the component.
 void add sample code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object) definition code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object) (Component sample code for java.awt.Component definition code for java.awt.Component  component, Object sample code for java.lang.Object definition code for java.lang.Object  constraints)
          Adds a component to the tabbed pane.
 void add sample code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object, int) (Component sample code for java.awt.Component definition code for java.awt.Component  component, Object sample code for java.lang.Object definition code for java.lang.Object  constraints, int index)
          Adds a component at the specified tab index.
 Component sample code for java.awt.Component definition code for java.awt.Component add sample code for javax.swing.JTabbedPane.add(java.lang.String, java.awt.Component) definition code for javax.swing.JTabbedPane.add(java.lang.String, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  title, Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Adds a component with the specified tab title.
 void addChangeListener sample code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) (ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
          Adds a ChangeListener to this tabbedpane.
 void addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, java.awt.Component) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  title, Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Adds a component represented by a title and no icon.
 void addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  title, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Adds a component represented by a title and/or icon, either of which can be null.
 void addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  title, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, Component sample code for java.awt.Component definition code for java.awt.Component  component, String sample code for java.lang.String definition code for java.lang.String  tip)
          Adds a component and tip represented by a title and/or icon, either of which can be null.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createChangeListener sample code for javax.swing.JTabbedPane.createChangeListener() definition code for javax.swing.JTabbedPane.createChangeListener() ()
          Subclasses that want to handle ChangeEvents differently can override this to return a subclass of ModelListener or another ChangeListener implementation.
protected  void fireStateChanged sample code for javax.swing.JTabbedPane.fireStateChanged() definition code for javax.swing.JTabbedPane.fireStateChanged() ()
          Sends a ChangeEvent, whose source is this tabbedpane, to each listener.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JTabbedPane.getAccessibleContext() definition code for javax.swing.JTabbedPane.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JTabbedPane.
 Color sample code for java.awt.Color definition code for java.awt.Color getBackgroundAt sample code for javax.swing.JTabbedPane.getBackgroundAt(int) definition code for javax.swing.JTabbedPane.getBackgroundAt(int) (int index)
          Returns the tab background color at index.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getBoundsAt sample code for javax.swing.JTabbedPane.getBoundsAt(int) definition code for javax.swing.JTabbedPane.getBoundsAt(int) (int index)
          Returns the tab bounds at index.
 ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener [] getChangeListeners sample code for javax.swing.JTabbedPane.getChangeListeners() definition code for javax.swing.JTabbedPane.getChangeListeners() ()
          Returns an array of all the ChangeListeners added to this JTabbedPane with addChangeListener.
 Component sample code for java.awt.Component definition code for java.awt.Component getComponentAt sample code for javax.swing.JTabbedPane.getComponentAt(int) definition code for javax.swing.JTabbedPane.getComponentAt(int) (int index)
          Returns the component at index.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getDisabledIconAt sample code for javax.swing.JTabbedPane.getDisabledIconAt(int) definition code for javax.swing.JTabbedPane.getDisabledIconAt(int) (int index)
          Returns the tab disabled icon at index.
 int getDisplayedMnemonicIndexAt sample code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int) definition code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int) (int tabIndex)
          Returns the character, as an index, that the look and feel should provide decoration for as representing the mnemonic character.
 Color sample code for java.awt.Color definition code for java.awt.Color getForegroundAt sample code for javax.swing.JTabbedPane.getForegroundAt(int) definition code for javax.swing.JTabbedPane.getForegroundAt(int) (int index)
          Returns the tab foreground color at index.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getIconAt sample code for javax.swing.JTabbedPane.getIconAt(int) definition code for javax.swing.JTabbedPane.getIconAt(int) (int index)
          Returns the tab icon at index.
 int getMnemonicAt sample code for javax.swing.JTabbedPane.getMnemonicAt(int) definition code for javax.swing.JTabbedPane.getMnemonicAt(int) (int tabIndex)
          Returns the keyboard mnemonic for accessing the specified tab.
 SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel getModel sample code for javax.swing.JTabbedPane.getModel() definition code for javax.swing.JTabbedPane.getModel() ()
          Returns the model associated with this tabbedpane.
 Component sample code for java.awt.Component definition code for java.awt.Component getSelectedComponent sample code for javax.swing.JTabbedPane.getSelectedComponent() definition code for javax.swing.JTabbedPane.getSelectedComponent() ()
          Returns the currently selected component for this tabbedpane.
 int getSelectedIndex sample code for javax.swing.JTabbedPane.getSelectedIndex() definition code for javax.swing.JTabbedPane.getSelectedIndex() ()
          Returns the currently selected index for this tabbedpane.
 int getTabCount sample code for javax.swing.JTabbedPane.getTabCount() definition code for javax.swing.JTabbedPane.getTabCount() ()
          Returns the number of tabs in this tabbedpane.
 int getTabLayoutPolicy sample code for javax.swing.JTabbedPane.getTabLayoutPolicy() definition code for javax.swing.JTabbedPane.getTabLayoutPolicy() ()
          Returns the policy used by the tabbedpane to layout the tabs when all the tabs will not fit within a single run.
 int getTabPlacement sample code for javax.swing.JTabbedPane.getTabPlacement() definition code for javax.swing.JTabbedPane.getTabPlacement() ()
          Returns the placement of the tabs for this tabbedpane.
 int getTabRunCount sample code for javax.swing.JTabbedPane.getTabRunCount() definition code for javax.swing.JTabbedPane.getTabRunCount() ()
          Returns the number of tab runs currently used to display the tabs.
 String sample code for java.lang.String definition code for java.lang.String getTitleAt sample code for javax.swing.JTabbedPane.getTitleAt(int) definition code for javax.swing.JTabbedPane.getTitleAt(int) (int index)
          Returns the tab title at index.
 String sample code for java.lang.String definition code for java.lang.String getToolTipText sample code for javax.swing.JTabbedPane.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JTabbedPane.getToolTipText(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Returns the tooltip text for the component determined by the mouse event location.
 String sample code for java.lang.String definition code for java.lang.String getToolTipTextAt sample code for javax.swing.JTabbedPane.getToolTipTextAt(int) definition code for javax.swing.JTabbedPane.getToolTipTextAt(int) (int index)
          Returns the tab tooltip text at index.
 TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI getUI sample code for javax.swing.JTabbedPane.getUI() definition code for javax.swing.JTabbedPane.getUI() ()
          Returns the UI object which implements the L&F for this component.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JTabbedPane.getUIClassID() definition code for javax.swing.JTabbedPane.getUIClassID() ()
          Returns the name of the UI class that implements the L&F for this component.
 int indexAtLocation sample code for javax.swing.JTabbedPane.indexAtLocation(int, int) definition code for javax.swing.JTabbedPane.indexAtLocation(int, int) (int x, int y)
          Returns the tab index corresponding to the tab whose bounds intersect the specified location.
 int indexOfComponent sample code for javax.swing.JTabbedPane.indexOfComponent(java.awt.Component) definition code for javax.swing.JTabbedPane.indexOfComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Returns the index of the tab for the specified component.
 int indexOfTab sample code for javax.swing.JTabbedPane.indexOfTab(javax.swing.Icon) definition code for javax.swing.JTabbedPane.indexOfTab(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon)
          Returns the first tab index with a given icon, or -1 if no tab has this icon.
 int indexOfTab sample code for javax.swing.JTabbedPane.indexOfTab(java.lang.String) definition code for javax.swing.JTabbedPane.indexOfTab(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  title)
          Returns the first tab index with a given title, or -1 if no tab has this title.
 void insertTab sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) (String sample code for java.lang.String definition code for java.lang.String  title, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, Component sample code for java.awt.Component definition code for java.awt.Component  component, String sample code for java.lang.String definition code for java.lang.String  tip, int index)
          Inserts a component, at index, represented by a title and/or icon, either of which may be null.
 boolean isEnabledAt sample code for javax.swing.JTabbedPane.isEnabledAt(int) definition code for javax.swing.JTabbedPane.isEnabledAt(int) (int index)
          Returns whether or not the tab at index is currently enabled.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JTabbedPane.paramString() definition code for javax.swing.JTabbedPane.paramString() ()
          Returns a string representation of this JTabbedPane.
 void remove sample code for javax.swing.JTabbedPane.remove(java.awt.Component) definition code for javax.swing.JTabbedPane.remove(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Removes the specified Component from the JTabbedPane.
 void remove sample code for javax.swing.JTabbedPane.remove(int) definition code for javax.swing.JTabbedPane.remove(int) (int index)
          Removes the tab and component which corresponds to the specified index.
 void removeAll sample code for javax.swing.JTabbedPane.removeAll() definition code for javax.swing.JTabbedPane.removeAll() ()
          Removes all the tabs and their corresponding components from the tabbedpane.
 void removeChangeListener sample code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener) (ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
          Removes a ChangeListener from this tabbedpane.
 void removeTabAt sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int) (int index)
          Removes the tab at index.
 void setBackgroundAt sample code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color) (int index, Color sample code for java.awt.Color definition code for java.awt.Color  background)
          Sets the background color at index to background which can be null, in which case the tab's background color will default to the background color of the tabbedpane.
 void setComponentAt sample code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component) definition code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component) (int index, Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Sets the component at index to component.
 void setDisabledIconAt sample code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) (int index, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  disabledIcon)
          Sets the disabled icon at index to icon which can be null.
 void setDisplayedMnemonicIndexAt sample code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) definition code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) (int tabIndex, int mnemonicIndex)
          Provides a hint to the look and feel as to which character in the text should be decorated to represent the mnemonic.
 void setEnabledAt sample code for javax.swing.JTabbedPane.setEnabledAt(int, boolean) definition code for javax.swing.JTabbedPane.setEnabledAt(int, boolean) (int index, boolean enabled)
          Sets whether or not the tab at index is enabled.
 void setForegroundAt sample code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color) (int index, Color sample code for java.awt.Color definition code for java.awt.Color  foreground)
          Sets the foreground color at index to foreground which can be null, in which case the tab's foreground color will default to the foreground color of this tabbedpane.
 void setIconAt sample code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon) (int index, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon)
          Sets the icon at index to icon which can be null.
 void setMnemonicAt sample code for javax.swing.JTabbedPane.setMnemonicAt(int, int) definition code for javax.swing.JTabbedPane.setMnemonicAt(int, int) (int tabIndex, int mnemonic)
          Sets the keyboard mnemonic for accessing the specified tab.
 void setModel sample code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel) definition code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel) (SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel  model)
          Sets the model to be used with this tabbedpane.
 void setSelectedComponent sample code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component) definition code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  c)
          Sets the selected component for this tabbedpane.
 void setSelectedIndex sample code for javax.swing.JTabbedPane.setSelectedIndex(int) definition code for javax.swing.JTabbedPane.setSelectedIndex(int) (int index)
          Sets the selected index for this tabbedpane.
 void setTabLayoutPolicy sample code for javax.swing.JTabbedPane.setTabLayoutPolicy(int) definition code for javax.swing.JTabbedPane.setTabLayoutPolicy(int) (int tabLayoutPolicy)
          Sets the policy which the tabbedpane will use in laying out the tabs when all the tabs will not fit within a single run.
 void setTabPlacement sample code for javax.swing.JTabbedPane.setTabPlacement(int) definition code for javax.swing.JTabbedPane.setTabPlacement(int) (int tabPlacement)
          Sets the tab placement for this tabbedpane.
 void setTitleAt sample code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String) (int index, String sample code for java.lang.String definition code for java.lang.String  title)
          Sets the title at index to title which can be null.
 void setToolTipTextAt sample code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String) (int index, String sample code for java.lang.String definition code for java.lang.String  toolTipText)
          Sets the tooltip text at index to toolTipText which can be null.
 void setUI sample code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI) definition code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI) (TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI  ui)
          Sets the UI object which implements the L&F for this component.
 void updateUI sample code for javax.swing.JTabbedPane.updateUI() definition code for javax.swing.JTabbedPane.updateUI() ()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
addAncestorListener sample code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) , addNotify sample code for javax.swing.JComponent.addNotify() definition code for javax.swing.JComponent.addNotify() , addVetoableChangeListener sample code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) , computeVisibleRect sample code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) definition code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) , contains sample code for javax.swing.JComponent.contains(int, int) definition code for javax.swing.JComponent.contains(int, int) , createToolTip sample code for javax.swing.JComponent.createToolTip() definition code for javax.swing.JComponent.createToolTip() , disable sample code for javax.swing.JComponent.disable() definition code for javax.swing.JComponent.disable() , enable sample code for javax.swing.JComponent.enable() definition code for javax.swing.JComponent.enable() , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) , fireVetoableChange sample code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) , getActionForKeyStroke sample code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) , getActionMap sample code for javax.swing.JComponent.getActionMap() definition code for javax.swing.JComponent.getActionMap() , getAlignmentX sample code for javax.swing.JComponent.getAlignmentX() definition code for javax.swing.JComponent.getAlignmentX() , getAlignmentY sample code for javax.swing.JComponent.getAlignmentY() definition code for javax.swing.JComponent.getAlignmentY() , getAncestorListeners sample code for javax.swing.JComponent.getAncestorListeners() definition code for javax.swing.JComponent.getAncestorListeners() , getAutoscrolls sample code for javax.swing.JComponent.getAutoscrolls() definition code for javax.swing.JComponent.getAutoscrolls() , getBorder sample code for javax.swing.JComponent.getBorder() definition code for javax.swing.JComponent.getBorder() , getBounds sample code for javax.swing.JComponent.getBounds(java.awt.Rectangle) definition code for javax.swing.JComponent.getBounds(java.awt.Rectangle) , getClientProperty sample code for javax.swing.JComponent.getClientProperty(java.lang.Object) definition code for javax.swing.JComponent.getClientProperty(java.lang.Object) , getComponentGraphics sample code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) definition code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) , getComponentPopupMenu sample code for javax.swing.JComponent.getComponentPopupMenu() definition code for javax.swing.JComponent.getComponentPopupMenu() , getConditionForKeyStroke sample code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) , getDebugGraphicsOptions sample code for javax.swing.JComponent.getDebugGraphicsOptions() definition code for javax.swing.JComponent.getDebugGraphicsOptions() , getDefaultLocale sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale() , getFontMetrics sample code for javax.swing.JComponent.getFontMetrics(java.awt.Font) definition code for javax.swing.JComponent.getFontMetrics(java.awt.Font) , getGraphics sample code for javax.swing.JComponent.getGraphics() definition code for javax.swing.JComponent.getGraphics() , getHeight sample code for javax.swing.JComponent.getHeight() definition code for javax.swing.JComponent.getHeight() , getInheritsPopupMenu sample code for javax.swing.JComponent.getInheritsPopupMenu() definition code for javax.swing.JComponent.getInheritsPopupMenu() , getInputMap sample code for javax.swing.JComponent.getInputMap() definition code for javax.swing.JComponent.getInputMap() , getInputMap sample code for javax.swing.JComponent.getInputMap(int) definition code for javax.swing.JComponent.getInputMap(int) , getInputVerifier sample code for javax.swing.JComponent.getInputVerifier() definition code for javax.swing.JComponent.getInputVerifier() , getInsets sample code for javax.swing.JComponent.getInsets() definition code for javax.swing.JComponent.getInsets() , getInsets sample code for javax.swing.JComponent.getInsets(java.awt.Insets) definition code for javax.swing.JComponent.getInsets(java.awt.Insets) , getListeners sample code for javax.swing.JComponent.getListeners(java.lang.Class) definition code for javax.swing.JComponent.getListeners(java.lang.Class) , getLocation sample code for javax.swing.JComponent.getLocation(java.awt.Point) definition code for javax.swing.JComponent.getLocation(java.awt.Point) , getMaximumSize sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , getMinimumSize sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , getNextFocusableComponent sample code for javax.swing.JComponent.getNextFocusableComponent() definition code for javax.swing.JComponent.getNextFocusableComponent() , getPopupLocation sample code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) , getPreferredSize sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() , getRegisteredKeyStrokes sample code for javax.swing.JComponent.getRegisteredKeyStrokes() definition code for javax.swing.JComponent.getRegisteredKeyStrokes() , getRootPane sample code for javax.swing.JComponent.getRootPane() definition code for javax.swing.JComponent.getRootPane() , getSize sample code for javax.swing.JComponent.getSize(java.awt.Dimension) definition code for javax.swing.JComponent.getSize(java.awt.Dimension) , getToolTipLocation sample code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) , getToolTipText sample code for javax.swing.JComponent.getToolTipText() definition code for javax.swing.JComponent.getToolTipText() , getTopLevelAncestor sample code for javax.swing.JComponent.getTopLevelAncestor() definition code for javax.swing.JComponent.getTopLevelAncestor() , getTransferHandler sample code for javax.swing.JComponent.getTransferHandler() definition code for javax.swing.JComponent.getTransferHandler() , getVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() definition code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() , getVetoableChangeListeners sample code for javax.swing.JComponent.getVetoableChangeListeners() definition code for javax.swing.JComponent.getVetoableChangeListeners() , getVisibleRect sample code for javax.swing.JComponent.getVisibleRect() definition code for javax.swing.JComponent.getVisibleRect() , getWidth sample code for javax.swing.JComponent.getWidth() definition code for javax.swing.JComponent.getWidth() , getX sample code for javax.swing.JComponent.getX() definition code for javax.swing.JComponent.getX() , getY sample code for javax.swing.JComponent.getY() definition code for javax.swing.JComponent.getY() , grabFocus sample code for javax.swing.JComponent.grabFocus() definition code for javax.swing.JComponent.grabFocus() , isDoubleBuffered sample code for javax.swing.JComponent.isDoubleBuffered() definition code for javax.swing.JComponent.isDoubleBuffered() , isLightweightComponent sample code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) definition code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) , isManagingFocus sample code for javax.swing.JComponent.isManagingFocus() definition code for javax.swing.JComponent.isManagingFocus() , isOpaque sample code for javax.swing.JComponent.isOpaque() definition code for javax.swing.JComponent.isOpaque() , isOptimizedDrawingEnabled sample code for javax.swing.JComponent.isOptimizedDrawingEnabled() definition code for javax.swing.JComponent.isOptimizedDrawingEnabled() , isPaintingTile sample code for javax.swing.JComponent.isPaintingTile() definition code for javax.swing.JComponent.isPaintingTile() , isRequestFocusEnabled sample code for javax.swing.JComponent.isRequestFocusEnabled() definition code for javax.swing.JComponent.isRequestFocusEnabled() , isValidateRoot sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot() , paint sample code for javax.swing.JComponent.paint(java.awt.Graphics) definition code for javax.swing.JComponent.paint(java.awt.Graphics) , paintBorder sample code for javax.swing.JComponent.paintBorder(java.awt.Graphics) definition code for javax.swing.JComponent.paintBorder(java.awt.Graphics) , paintChildren sample code for javax.swing.JComponent.paintChildren(java.awt.Graphics) definition code for javax.swing.JComponent.paintChildren(java.awt.Graphics) , paintComponent sample code for javax.swing.JComponent.paintComponent(java.awt.Graphics) definition code for javax.swing.JComponent.paintComponent(java.awt.Graphics) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(int, int, int, int) definition code for javax.swing.JComponent.paintImmediately(int, int, int, int) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) definition code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) , print sample code for javax.swing.JComponent.print(java.awt.Graphics) definition code for javax.swing.JComponent.print(java.awt.Graphics) , printAll sample code for javax.swing.JComponent.printAll(java.awt.Graphics) definition code for javax.swing.JComponent.printAll(java.awt.Graphics) , printBorder sample code for javax.swing.JComponent.printBorder(java.awt.Graphics) definition code for javax.swing.JComponent.printBorder(java.awt.Graphics) , printChildren sample code for javax.swing.JComponent.printChildren(java.awt.Graphics) definition code for javax.swing.JComponent.printChildren(java.awt.Graphics) , printComponent sample code for javax.swing.JComponent.printComponent(java.awt.Graphics) definition code for javax.swing.JComponent.printComponent(java.awt.Graphics) , processComponentKeyEvent sample code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) , processKeyBinding sample code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) definition code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) , processKeyEvent sample code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) , processMouseEvent sample code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) , processMouseMotionEvent sample code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) , putClientProperty sample code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) , removeAncestorListener sample code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) , removeNotify sample code for javax.swing.JComponent.removeNotify() definition code for javax.swing.JComponent.removeNotify() , removeVetoableChangeListener sample code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) , repaint sample code for javax.swing.JComponent.repaint(long, int, int, int, int) definition code for javax.swing.JComponent.repaint(long, int, int, int, int) , repaint sample code for javax.swing.JComponent.repaint(java.awt.Rectangle) definition code for javax.swing.JComponent.repaint(java.awt.Rectangle) , requestDefaultFocus sample code for javax.swing.JComponent.requestDefaultFocus() definition code for javax.swing.JComponent.requestDefaultFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus() definition code for javax.swing.JComponent.requestFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus(boolean) definition code for javax.swing.JComponent.requestFocus(boolean) , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow() definition code for javax.swing.JComponent.requestFocusInWindow() , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow(boolean) definition code for javax.swing.JComponent.requestFocusInWindow(boolean) , resetKeyboardActions sample code for javax.swing.JComponent.resetKeyboardActions() definition code for javax.swing.JComponent.resetKeyboardActions() , reshape sample code for javax.swing.JComponent.reshape(int, int, int, int) definition code for javax.swing.JComponent.reshape(int, int, int, int) , revalidate sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate() , scrollRectToVisible sample code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) definition code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) , setActionMap sample code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) definition code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) , setAlignmentX sample code for javax.swing.JComponent.setAlignmentX(float) definition code for javax.swing.JComponent.setAlignmentX(float) , setAlignmentY sample code for javax.swing.JComponent.setAlignmentY(float) definition code for javax.swing.JComponent.setAlignmentY(float) , setAutoscrolls sample code for javax.swing.JComponent.setAutoscrolls(boolean) definition code for javax.swing.JComponent.setAutoscrolls(boolean) , setBackground sample code for javax.swing.JComponent.setBackground(java.awt.Color) definition code for javax.swing.JComponent.setBackground(java.awt.Color) , setBorder sample code for javax.swing.JComponent.setBorder(javax.swing.border.Border) definition code for javax.swing.JComponent.setBorder(javax.swing.border.Border) , setComponentPopupMenu sample code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) definition code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) , setDebugGraphicsOptions sample code for javax.swing.JComponent.setDebugGraphicsOptions(int) definition code for javax.swing.JComponent.setDebugGraphicsOptions(int) , setDefaultLocale sample code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) definition code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) , setDoubleBuffered sample code for javax.swing.JComponent.setDoubleBuffered(boolean) definition code for javax.swing.JComponent.setDoubleBuffered(boolean) , setEnabled sample code for javax.swing.JComponent.setEnabled(boolean) definition code for javax.swing.JComponent.setEnabled(boolean) , setFocusTraversalKeys sample code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) definition code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) , setFont sample code for javax.swing.JComponent.setFont(java.awt.Font) definition code for javax.swing.JComponent.setFont(java.awt.Font) , setForeground sample code for javax.swing.JComponent.setForeground(java.awt.Color) definition code for javax.swing.JComponent.setForeground(java.awt.Color) , setInheritsPopupMenu sample code for javax.swing.JComponent.setInheritsPopupMenu(boolean) definition code for javax.swing.JComponent.setInheritsPopupMenu(boolean) , setInputMap sample code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) definition code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) , setInputVerifier sample code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) definition code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) , setMaximumSize sample code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) , setMinimumSize sample code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) , setNextFocusableComponent sample code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) definition code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) , setOpaque sample code for javax.swing.JComponent.setOpaque(boolean) definition code for javax.swing.JComponent.setOpaque(boolean) , setPreferredSize sample code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) definition code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) , setRequestFocusEnabled sample code for javax.swing.JComponent.setRequestFocusEnabled(boolean) definition code for javax.swing.JComponent.setRequestFocusEnabled(boolean) , setToolTipText sample code for javax.swing.JComponent.setToolTipText(java.lang.String) definition code for javax.swing.JComponent.setToolTipText(java.lang.String) , setTransferHandler sample code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) definition code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) , setUI sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , setVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) definition code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) , setVisible sample code for javax.swing.JComponent.setVisible(boolean) definition code for javax.swing.JComponent.setVisible(boolean) , unregisterKeyboardAction sample code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) definition code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) , update sample code for javax.swing.JComponent.update(java.awt.Graphics) definition code for javax.swing.JComponent.update(java.awt.Graphics)
 
Methods inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
addContainerListener sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , addImpl sample code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , applyComponentOrientation sample code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) , areFocusTraversalKeysSet sample code for java.awt.Container.areFocusTraversalKeysSet(int) definition code for java.awt.Container.areFocusTraversalKeysSet(int) , countComponents sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents() , deliverEvent sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event) , doLayout sample code for java.awt.Container.doLayout() definition code for java.awt.Container.doLayout() , findComponentAt sample code for java.awt.Container.findComponentAt(int, int) definition code for java.awt.Container.findComponentAt(int, int) , findComponentAt sample code for java.awt.Container.findComponentAt(java.awt.Point) definition code for java.awt.Container.findComponentAt(java.awt.Point) , getComponent sample code for java.awt.Container.getComponent(int) definition code for java.awt.Container.getComponent(int) , getComponentAt sample code for java.awt.Container.getComponentAt(int, int) definition code for java.awt.Container.getComponentAt(int, int) , getComponentAt sample code for java.awt.Container.getComponentAt(java.awt.Point) definition code for java.awt.Container.getComponentAt(java.awt.Point) , getComponentCount sample code for java.awt.Container.getComponentCount() definition code for java.awt.Container.getComponentCount() , getComponents sample code for java.awt.Container.getComponents() definition code for java.awt.Container.getComponents() , getComponentZOrder sample code for java.awt.Container.getComponentZOrder(java.awt.Component) definition code for java.awt.Container.getComponentZOrder(java.awt.Component) , getContainerListeners sample code for java.awt.Container.getContainerListeners() definition code for java.awt.Container.getContainerListeners() , getFocusTraversalKeys sample code for java.awt.Container.getFocusTraversalKeys(int) definition code for java.awt.Container.getFocusTraversalKeys(int) , getFocusTraversalPolicy sample code for java.awt.Container.getFocusTraversalPolicy() definition code for java.awt.Container.getFocusTraversalPolicy() , getLayout sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , getMousePosition sample code for java.awt.Container.getMousePosition(boolean) definition code for java.awt.Container.getMousePosition(boolean) , insets sample code for java.awt.Container.insets() definition code for java.awt.Container.insets() , invalidate sample code for java.awt.Container.invalidate() definition code for java.awt.Container.invalidate() , isAncestorOf sample code for java.awt.Container.isAncestorOf(java.awt.Component) definition code for java.awt.Container.isAncestorOf(java.awt.Component) , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot() definition code for java.awt.Container.isFocusCycleRoot() , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot(java.awt.Container) definition code for java.awt.Container.isFocusCycleRoot(java.awt.Container) , isFocusTraversalPolicyProvider sample code for java.awt.Container.isFocusTraversalPolicyProvider() definition code for java.awt.Container.isFocusTraversalPolicyProvider() , isFocusTraversalPolicySet sample code for java.awt.Container.isFocusTraversalPolicySet() definition code for java.awt.Container.isFocusTraversalPolicySet() , layout sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , list sample code for java.awt.Container.list(java.io.PrintStream, int) definition code for java.awt.Container.list(java.io.PrintStream, int) , list sample code for java.awt.Container.list(java.io.PrintWriter, int) definition code for java.awt.Container.list(java.io.PrintWriter, int) , locate sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int) , minimumSize sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize() , paintComponents sample code for java.awt.Container.paintComponents(java.awt.Graphics) definition code for java.awt.Container.paintComponents(java.awt.Graphics) , preferredSize sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize() , printComponents sample code for java.awt.Container.printComponents(java.awt.Graphics) definition code for java.awt.Container.printComponents(java.awt.Graphics) , processContainerEvent sample code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) definition code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) , processEvent sample code for java.awt.Container.processEvent(java.awt.AWTEvent) definition code for java.awt.Container.processEvent(java.awt.AWTEvent) , removeContainerListener sample code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) , setComponentZOrder sample code for java.awt.Container.setComponentZOrder(java.awt.Component, int) definition code for java.awt.Container.setComponentZOrder(java.awt.Component, int) , setFocusCycleRoot sample code for java.awt.Container.setFocusCycleRoot(boolean) definition code for java.awt.Container.setFocusCycleRoot(boolean) , setFocusTraversalPolicy sample code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setFocusTraversalPolicyProvider sample code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) definition code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) , setLayout sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager) , transferFocusBackward sample code for java.awt.Container.transferFocusBackward() definition code for java.awt.Container.transferFocusBackward() , transferFocusDownCycle sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle() , validate sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , validateTree sample code for java.awt.Container.validateTree() definition code for java.awt.Container.validateTree()
 
Methods inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
action sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object) , add sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu) , addComponentListener sample code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) , addFocusListener sample code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) , addHierarchyBoundsListener sample code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , addHierarchyListener sample code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) , addInputMethodListener sample code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) , addKeyListener sample code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) , addMouseListener sample code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) , addMouseMotionListener sample code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) , addMouseWheelListener sample code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) , bounds sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds() , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , coalesceEvents sample code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) definition code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) , contains sample code for java.awt.Component.contains(java.awt.Point) definition code for java.awt.Component.contains(java.awt.Point) , createImage sample code for java.awt.Component.createImage(java.awt.image.ImageProducer) definition code for java.awt.Component.createImage(java.awt.image.ImageProducer) , createImage sample code for java.awt.Component.createImage(int, int) definition code for java.awt.Component.createImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int) definition code for java.awt.Component.createVolatileImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) definition code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) , disableEvents sample code for java.awt.Component.disableEvents(long) definition code for java.awt.Component.disableEvents(long) , dispatchEvent sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) , enable sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean) , enableEvents sample code for java.awt.Component.enableEvents(long) definition code for java.awt.Component.enableEvents(long) , enableInputMethods sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) definition code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, double, double) definition code for java.awt.Component.firePropertyChange(java.lang.String, double, double) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, float, float) definition code for java.awt.Component.firePropertyChange(java.lang.String, float, float) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, long, long) definition code for java.awt.Component.firePropertyChange(java.lang.String, long, long) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, short, short) definition code for java.awt.Component.firePropertyChange(java.lang.String, short, short) , getBackground sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , getBounds sample code for java.awt.Component.getBounds() definition code for java.awt.Component.getBounds() , getColorModel sample code for java.awt.Component.getColorModel() definition code for java.awt.Component.getColorModel() , getComponentListeners sample code for java.awt.Component.getComponentListeners() definition code for java.awt.Component.getComponentListeners() , getComponentOrientation sample code for java.awt.Component.getComponentOrientation() definition code for java.awt.Component.getComponentOrientation() , getCursor sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , getDropTarget sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget() , getFocusCycleRootAncestor sample code for java.awt.Component.getFocusCycleRootAncestor() definition code for java.awt.Component.getFocusCycleRootAncestor() , getFocusListeners sample code for java.awt.Component.getFocusListeners() definition code for java.awt.Component.getFocusListeners() , getFocusTraversalKeysEnabled sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled() , getFont sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() , getForeground sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , getGraphicsConfiguration sample code for java.awt.Component.getGraphicsConfiguration() definition code for java.awt.Component.getGraphicsConfiguration() , getHierarchyBoundsListeners sample code for java.awt.Component.getHierarchyBoundsListeners() definition code for java.awt.Component.getHierarchyBoundsListeners() , getHierarchyListeners sample code for java.awt.Component.getHierarchyListeners() definition code for java.awt.Component.getHierarchyListeners() , getIgnoreRepaint sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint() , getInputContext sample code for java.awt.Component.getInputContext() definition code for java.awt.Component.getInputContext() , getInputMethodListeners sample code for java.awt.Component.getInputMethodListeners() definition code for java.awt.Component.getInputMethodListeners() , getInputMethodRequests sample code for java.awt.Component.getInputMethodRequests() definition code for java.awt.Component.getInputMethodRequests() , getKeyListeners sample code for java.awt.Component.getKeyListeners() definition code for java.awt.Component.getKeyListeners() , getLocale sample code for java.awt.Component.getLocale() definition code for java.awt.Component.getLocale() , getLocation sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation() , getLocationOnScreen sample code for java.awt.Component.getLocationOnScreen() definition code for java.awt.Component.getLocationOnScreen() , getMouseListeners sample code for java.awt.Component.getMouseListeners() definition code for java.awt.Component.getMouseListeners() , getMouseMotionListeners sample code for java.awt.Component.getMouseMotionListeners() definition code for java.awt.Component.getMouseMotionListeners() , getMousePosition sample code for java.awt.Component.getMousePosition() definition code for java.awt.Component.getMousePosition() , getMouseWheelListeners sample code for java.awt.Component.getMouseWheelListeners() definition code for java.awt.Component.getMouseWheelListeners() , getName sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , getParent sample code for java.awt.Component.getParent() definition code for java.awt.Component.getParent() , getPeer sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners() definition code for java.awt.Component.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners(java.lang.String) definition code for java.awt.Component.getPropertyChangeListeners(java.lang.String) , getSize sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize() , getToolkit sample code for java.awt.Component.getToolkit() definition code for java.awt.Component.getToolkit() , getTreeLock sample code for java.awt.Component.getTreeLock() definition code for java.awt.Component.getTreeLock() , gotFocus sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) , handleEvent sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event) , hasFocus sample code for java.awt.Component.hasFocus() definition code for java.awt.Component.hasFocus() , hide sample code for java.awt.Component.hide() definition code for java.awt.Component.hide() , imageUpdate sample code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) , inside sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int) , isBackgroundSet sample code for java.awt.Component.isBackgroundSet() definition code for java.awt.Component.isBackgroundSet() , isCursorSet sample code for java.awt.Component.isCursorSet() definition code for java.awt.Component.isCursorSet() , isDisplayable sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable() , isEnabled sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , isFocusable sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable() , isFocusOwner sample code for java.awt.Component.isFocusOwner() definition code for java.awt.Component.isFocusOwner() , isFocusTraversable sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable() , isFontSet sample code for java.awt.Component.isFontSet() definition code for java.awt.Component.isFontSet() , isForegroundSet sample code for java.awt.Component.isForegroundSet() definition code for java.awt.Component.isForegroundSet() , isLightweight sample code for java.awt.Component.isLightweight() definition code for java.awt.Component.isLightweight() , isMaximumSizeSet sample code for java.awt.Component.isMaximumSizeSet() definition code for java.awt.Component.isMaximumSizeSet() , isMinimumSizeSet sample code for java.awt.Component.isMinimumSizeSet() definition code for java.awt.Component.isMinimumSizeSet() , isPreferredSizeSet sample code for java.awt.Component.isPreferredSizeSet() definition code for java.awt.Component.isPreferredSizeSet() , isShowing sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , isValid sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , isVisible sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , keyDown sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int) , keyUp sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int) , list sample code for java.awt.Component.list() definition code for java.awt.Component.list() , list sample code for java.awt.Component.list(java.io.PrintStream) definition code for java.awt.Component.list(java.io.PrintStream) , list sample code for java.awt.Component.list(java.io.PrintWriter) definition code for java.awt.Component.list(java.io.PrintWriter) , location sample code for java.awt.Component.location() definition code for java.awt.Component.location() , lostFocus sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) , mouseDown sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int) , mouseDrag sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int) , mouseEnter sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int) , mouseExit sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int) , mouseMove sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int) , mouseUp sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int) , move sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int) , nextFocus sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus() , paintAll sample code for java.awt.Component.paintAll(java.awt.Graphics) definition code for java.awt.Component.paintAll(java.awt.Graphics) , postEvent sample code for java.awt.Component.postEvent(java.awt.Event) definition code for java.awt.Component.postEvent(java.awt.Event) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , processComponentEvent sample code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) definition code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) , processFocusEvent sample code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) definition code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) , processHierarchyBoundsEvent sample code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) , processHierarchyEvent sample code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) , processInputMethodEvent sample code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) definition code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) , processMouseWheelEvent sample code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) definition code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) , remove sample code for java.awt.Component.remove(java.awt.MenuComponent) definition code for java.awt.Component.remove(java.awt.MenuComponent) , removeComponentListener sample code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) , removeFocusListener sample code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) , removeHierarchyBoundsListener sample code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , removeHierarchyListener sample code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) , removeInputMethodListener sample code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) , removeKeyListener sample code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) , removeMouseListener sample code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) , removeMouseMotionListener sample code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) , removeMouseWheelListener sample code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , repaint sample code for java.awt.Component.repaint() definition code for java.awt.Component.repaint() , repaint sample code for java.awt.Component.repaint(int, int, int, int) definition code for java.awt.Component.repaint(int, int, int, int) , repaint sample code for java.awt.Component.repaint(long) definition code for java.awt.Component.repaint(long) , resize sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension) , resize sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int) , setBounds sample code for java.awt.Component.setBounds(int, int, int, int) definition code for java.awt.Component.setBounds(int, int, int, int) , setBounds sample code for java.awt.Component.setBounds(java.awt.Rectangle) definition code for java.awt.Component.setBounds(java.awt.Rectangle) , setComponentOrientation sample code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) , setCursor sample code for java.awt.Component.setCursor(java.awt.Cursor) definition code for java.awt.Component.setCursor(java.awt.Cursor) , setDropTarget sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , setFocusable sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , setFocusTraversalKeysEnabled sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , setIgnoreRepaint sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , setLocale sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale) , setLocation sample code for java.awt.Component.setLocation(int, int) definition code for java.awt.Component.setLocation(int, int) , setLocation sample code for java.awt.Component.setLocation(java.awt.Point) definition code for java.awt.Component.setLocation(java.awt.Point) , setName sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String) , setSize sample code for java.awt.Component.setSize(java.awt.Dimension) definition code for java.awt.Component.setSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(int, int) definition code for java.awt.Component.setSize(int, int) , show sample code for java.awt.Component.show() definition code for java.awt.Component.show() , show sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean) , size sample code for java.awt.Component.size() definition code for java.awt.Component.size() , toString sample code for java.awt.Component.toString() definition code for java.awt.Component.toString() , transferFocus sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus() , transferFocusUpCycle sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

WRAP_TAB_LAYOUT sample code for javax.swing.JTabbedPane.WRAP_TAB_LAYOUT

public static final int WRAP_TAB_LAYOUT
The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run.

See Also:
Constant Field Values

SCROLL_TAB_LAYOUT sample code for javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT

public static final int SCROLL_TAB_LAYOUT
Tab layout policy for providing a subset of available tabs when all the tabs will not fit within a single run. If all the tabs do not fit within a single run the look and feel will provide a way to navigate to hidden tabs.

See Also:
Constant Field Values

tabPlacement sample code for javax.swing.JTabbedPane.tabPlacement

protected int tabPlacement
Where the tabs are placed.

See Also:
setTabPlacement(int) sample code for javax.swing.JTabbedPane.setTabPlacement(int) definition code for javax.swing.JTabbedPane.setTabPlacement(int)

model sample code for javax.swing.JTabbedPane.model

protected SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel  model
The default selection model


changeListener sample code for javax.swing.JTabbedPane.changeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  changeListener
The changeListener is the listener we add to the model.


changeEvent sample code for javax.swing.JTabbedPane.changeEvent

protected transient ChangeEvent sample code for javax.swing.event.ChangeEvent definition code for javax.swing.event.ChangeEvent  changeEvent
Only one ChangeEvent is needed per TabPane instance since the event's only (read-only) state is the source property. The source of events generated here is always "this".

Constructor Detail

JTabbedPane sample code for javax.swing.JTabbedPane() definition code for javax.swing.JTabbedPane()

public JTabbedPane()
Creates an empty TabbedPane with a default tab placement of JTabbedPane.TOP.

See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)

JTabbedPane sample code for javax.swing.JTabbedPane(int) definition code for javax.swing.JTabbedPane(int)

public JTabbedPane(int tabPlacement)
Creates an empty TabbedPane with the specified tab placement of either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT.

Parameters:
tabPlacement - the placement for the tabs relative to the content
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)

JTabbedPane sample code for javax.swing.JTabbedPane(int, int) definition code for javax.swing.JTabbedPane(int, int)

public JTabbedPane(int tabPlacement,
                   int tabLayoutPolicy)
Creates an empty TabbedPane with the specified tab placement and tab layout policy. Tab placement may be either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT. Tab layout policy may be either: JTabbedPane.WRAP_TAB_LAYOUT or JTabbedPane.SCROLL_TAB_LAYOUT.

Parameters:
tabPlacement - the placement for the tabs relative to the content
tabLayoutPolicy - the policy for laying out tabs when all tabs will not fit on one run
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if tab placement or tab layout policy are not one of the above supported values
Since:
1.4
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)
Method Detail

getUI sample code for javax.swing.JTabbedPane.getUI() definition code for javax.swing.JTabbedPane.getUI()

public TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI  getUI()
Returns the UI object which implements the L&F for this component.

Returns:
a TabbedPaneUI object
See Also:
setUI(javax.swing.plaf.TabbedPaneUI) sample code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI) definition code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI)

setUI sample code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI) definition code for javax.swing.JTabbedPane.setUI(javax.swing.plaf.TabbedPaneUI)

public void setUI(TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI  ui)
Sets the UI object which implements the L&F for this component.

Parameters:
ui - the new UI object
See Also:
UIDefaults.getUI(javax.swing.JComponent) sample code for javax.swing.UIDefaults.getUI(javax.swing.JComponent) definition code for javax.swing.UIDefaults.getUI(javax.swing.JComponent)

updateUI sample code for javax.swing.JTabbedPane.updateUI() definition code for javax.swing.JTabbedPane.updateUI()

public void updateUI()
Resets the UI property to a value from the current look and feel.

Overrides:
updateUI sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
See Also:
JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

getUIClassID sample code for javax.swing.JTabbedPane.getUIClassID() definition code for javax.swing.JTabbedPane.getUIClassID()

public String sample code for java.lang.String definition code for java.lang.String  getUIClassID()
Returns the name of the UI class that implements the L&F for this component.

Overrides:
getUIClassID sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
the string "TabbedPaneUI"
See Also:
JComponent.getUIClassID() sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() , UIDefaults.getUI(javax.swing.JComponent) sample code for javax.swing.UIDefaults.getUI(javax.swing.JComponent) definition code for javax.swing.UIDefaults.getUI(javax.swing.JComponent)

createChangeListener sample code for javax.swing.JTabbedPane.createChangeListener() definition code for javax.swing.JTabbedPane.createChangeListener()

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createChangeListener()
Subclasses that want to handle ChangeEvents differently can override this to return a subclass of ModelListener or another ChangeListener implementation.

See Also:
fireStateChanged() sample code for javax.swing.JTabbedPane.fireStateChanged() definition code for javax.swing.JTabbedPane.fireStateChanged()

addChangeListener sample code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener)

public void addChangeListener(ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
Adds a ChangeListener to this tabbedpane.

Parameters:
l - the ChangeListener to add
See Also:
fireStateChanged() sample code for javax.swing.JTabbedPane.fireStateChanged() definition code for javax.swing.JTabbedPane.fireStateChanged() , removeChangeListener(javax.swing.event.ChangeListener) sample code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener)

removeChangeListener sample code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.removeChangeListener(javax.swing.event.ChangeListener)

public void removeChangeListener(ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
Removes a ChangeListener from this tabbedpane.

Parameters:
l - the ChangeListener to remove
See Also:
fireStateChanged() sample code for javax.swing.JTabbedPane.fireStateChanged() definition code for javax.swing.JTabbedPane.fireStateChanged() , addChangeListener(javax.swing.event.ChangeListener) sample code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener)

getChangeListeners sample code for javax.swing.JTabbedPane.getChangeListeners() definition code for javax.swing.JTabbedPane.getChangeListeners()

public ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener [] getChangeListeners()
Returns an array of all the ChangeListeners added to this JTabbedPane with addChangeListener.

Returns:
all of the ChangeListeners added or an empty array if no listeners have been added
Since:
1.4

fireStateChanged sample code for javax.swing.JTabbedPane.fireStateChanged() definition code for javax.swing.JTabbedPane.fireStateChanged()

protected void fireStateChanged()
Sends a ChangeEvent, whose source is this tabbedpane, to each listener. This method method is called each time a ChangeEvent is received from the model.

See Also:
addChangeListener(javax.swing.event.ChangeListener) sample code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JTabbedPane.addChangeListener(javax.swing.event.ChangeListener) , EventListenerList sample code for javax.swing.event.EventListenerList definition code for javax.swing.event.EventListenerList

getModel sample code for javax.swing.JTabbedPane.getModel() definition code for javax.swing.JTabbedPane.getModel()

public SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel  getModel()
Returns the model associated with this tabbedpane.

See Also:
setModel(javax.swing.SingleSelectionModel) sample code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel) definition code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel)

setModel sample code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel) definition code for javax.swing.JTabbedPane.setModel(javax.swing.SingleSelectionModel)

public void setModel(SingleSelectionModel sample code for javax.swing.SingleSelectionModel definition code for javax.swing.SingleSelectionModel  model)
Sets the model to be used with this tabbedpane.

Parameters:
model - the model to be used
See Also:
getModel() sample code for javax.swing.JTabbedPane.getModel() definition code for javax.swing.JTabbedPane.getModel()

getTabPlacement sample code for javax.swing.JTabbedPane.getTabPlacement() definition code for javax.swing.JTabbedPane.getTabPlacement()

public int getTabPlacement()
Returns the placement of the tabs for this tabbedpane.

See Also:
setTabPlacement(int) sample code for javax.swing.JTabbedPane.setTabPlacement(int) definition code for javax.swing.JTabbedPane.setTabPlacement(int)

setTabPlacement sample code for javax.swing.JTabbedPane.setTabPlacement(int) definition code for javax.swing.JTabbedPane.setTabPlacement(int)

public void setTabPlacement(int tabPlacement)
Sets the tab placement for this tabbedpane. Possible values are: The default value, if not set, is SwingConstants.TOP.

Parameters:
tabPlacement - the placement for the tabs relative to the content
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if tab placement value isn't one of the above valid values

getTabLayoutPolicy sample code for javax.swing.JTabbedPane.getTabLayoutPolicy() definition code for javax.swing.JTabbedPane.getTabLayoutPolicy()

public int getTabLayoutPolicy()
Returns the policy used by the tabbedpane to layout the tabs when all the tabs will not fit within a single run.

Since:
1.4
See Also:
setTabLayoutPolicy(int) sample code for javax.swing.JTabbedPane.setTabLayoutPolicy(int) definition code for javax.swing.JTabbedPane.setTabLayoutPolicy(int)

setTabLayoutPolicy sample code for javax.swing.JTabbedPane.setTabLayoutPolicy(int) definition code for javax.swing.JTabbedPane.setTabLayoutPolicy(int)

public void setTabLayoutPolicy(int tabLayoutPolicy)
Sets the policy which the tabbedpane will use in laying out the tabs when all the tabs will not fit within a single run. Possible values are: The default value, if not set by the UI, is JTabbedPane.WRAP_TAB_LAYOUT.

Some look and feels might only support a subset of the possible layout policies, in which case the value of this property may be ignored.

Parameters:
tabLayoutPolicy - the policy used to layout the tabs
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if layoutPolicy value isn't one of the above valid values
Since:
1.4
See Also:
getTabLayoutPolicy() sample code for javax.swing.JTabbedPane.getTabLayoutPolicy() definition code for javax.swing.JTabbedPane.getTabLayoutPolicy()

getSelectedIndex sample code for javax.swing.JTabbedPane.getSelectedIndex() definition code for javax.swing.JTabbedPane.getSelectedIndex()

public int getSelectedIndex()
Returns the currently selected index for this tabbedpane. Returns -1 if there is no currently selected tab.

Returns:
the index of the selected tab
See Also:
setSelectedIndex(int) sample code for javax.swing.JTabbedPane.setSelectedIndex(int) definition code for javax.swing.JTabbedPane.setSelectedIndex(int)

setSelectedIndex sample code for javax.swing.JTabbedPane.setSelectedIndex(int) definition code for javax.swing.JTabbedPane.setSelectedIndex(int)

public void setSelectedIndex(int index)
Sets the selected index for this tabbedpane. The index must be a valid tab index or -1, which indicates that no tab should be selected (can also be used when there are no tabs in the tabbedpane). If a -1 value is specified when the tabbedpane contains one or more tabs, then the results will be implementation defined.

Parameters:
index - the index to be selected
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < -1 || index >= tab count)
See Also:
getSelectedIndex() sample code for javax.swing.JTabbedPane.getSelectedIndex() definition code for javax.swing.JTabbedPane.getSelectedIndex() , SingleSelectionModel.setSelectedIndex(int) sample code for javax.swing.SingleSelectionModel.setSelectedIndex(int) definition code for javax.swing.SingleSelectionModel.setSelectedIndex(int)

getSelectedComponent sample code for javax.swing.JTabbedPane.getSelectedComponent() definition code for javax.swing.JTabbedPane.getSelectedComponent()

public Component sample code for java.awt.Component definition code for java.awt.Component  getSelectedComponent()
Returns the currently selected component for this tabbedpane. Returns null if there is no currently selected tab.

Returns:
the component corresponding to the selected tab
See Also:
setSelectedComponent(java.awt.Component) sample code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component) definition code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component)

setSelectedComponent sample code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component) definition code for javax.swing.JTabbedPane.setSelectedComponent(java.awt.Component)

public void setSelectedComponent(Component sample code for java.awt.Component definition code for java.awt.Component  c)
Sets the selected component for this tabbedpane. This will automatically set the selectedIndex to the index corresponding to the specified component.

Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if component not found in tabbed pane
See Also:
getSelectedComponent() sample code for javax.swing.JTabbedPane.getSelectedComponent() definition code for javax.swing.JTabbedPane.getSelectedComponent()

insertTab sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)

public void insertTab(String sample code for java.lang.String definition code for java.lang.String  title,
                      Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                      Component sample code for java.awt.Component definition code for java.awt.Component  component,
                      String sample code for java.lang.String definition code for java.lang.String  tip,
                      int index)
Inserts a component, at index, represented by a title and/or icon, either of which may be null. Uses java.util.Vector internally, see insertElementAt for details of insertion conventions.

Parameters:
title - the title to be displayed in this tab
icon - the icon to be displayed in this tab
component - The component to be displayed when this tab is clicked.
tip - the tooltip to be displayed for this tab
index - the position to insert this new tab
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)

public void addTab(String sample code for java.lang.String definition code for java.lang.String  title,
                   Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                   Component sample code for java.awt.Component definition code for java.awt.Component  component,
                   String sample code for java.lang.String definition code for java.lang.String  tip)
Adds a component and tip represented by a title and/or icon, either of which can be null. Cover method for insertTab.

Parameters:
title - the title to be displayed in this tab
icon - the icon to be displayed in this tab
component - the component to be displayed when this tab is clicked
tip - the tooltip to be displayed for this tab
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component)

public void addTab(String sample code for java.lang.String definition code for java.lang.String  title,
                   Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                   Component sample code for java.awt.Component definition code for java.awt.Component  component)
Adds a component represented by a title and/or icon, either of which can be null. Cover method for insertTab.

Parameters:
title - the title to be displayed in this tab
icon - the icon to be displayed in this tab
component - the component to be displayed when this tab is clicked
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

addTab sample code for javax.swing.JTabbedPane.addTab(java.lang.String, java.awt.Component) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, java.awt.Component)

public void addTab(String sample code for java.lang.String definition code for java.lang.String  title,
                   Component sample code for java.awt.Component definition code for java.awt.Component  component)
Adds a component represented by a title and no icon. Cover method for insertTab.

Parameters:
title - the title to be displayed in this tab
component - the component to be displayed when this tab is clicked
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

add sample code for javax.swing.JTabbedPane.add(java.awt.Component) definition code for javax.swing.JTabbedPane.add(java.awt.Component)

public Component sample code for java.awt.Component definition code for java.awt.Component  add(Component sample code for java.awt.Component definition code for java.awt.Component  component)
Adds a component with a tab title defaulting to the name of the component which is the result of calling component.getName. Cover method for insertTab.

Overrides:
add sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
component - the component to be displayed when this tab is clicked
Returns:
the component
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

add sample code for javax.swing.JTabbedPane.add(java.lang.String, java.awt.Component) definition code for javax.swing.JTabbedPane.add(java.lang.String, java.awt.Component)

public Component sample code for java.awt.Component definition code for java.awt.Component  add(String sample code for java.lang.String definition code for java.lang.String  title,
                     Component sample code for java.awt.Component definition code for java.awt.Component  component)
Adds a component with the specified tab title. Cover method for insertTab.

Overrides:
add sample code for java.awt.Container.add(java.lang.String, java.awt.Component) definition code for java.awt.Container.add(java.lang.String, java.awt.Component) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
title - the title to be displayed in this tab
component - the component to be displayed when this tab is clicked
Returns:
the component
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

add sample code for javax.swing.JTabbedPane.add(java.awt.Component, int) definition code for javax.swing.JTabbedPane.add(java.awt.Component, int)

public Component sample code for java.awt.Component definition code for java.awt.Component  add(Component sample code for java.awt.Component definition code for java.awt.Component  component,
                     int index)
Adds a component at the specified tab index with a tab title defaulting to the name of the component. Cover method for insertTab.

Overrides:
add sample code for java.awt.Container.add(java.awt.Component, int) definition code for java.awt.Container.add(java.awt.Component, int) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
component - the component to be displayed when this tab is clicked
index - the position to insert this new tab
Returns:
the component
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

add sample code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object) definition code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object)

public void add(Component sample code for java.awt.Component definition code for java.awt.Component  component,
                Object sample code for java.lang.Object definition code for java.lang.Object  constraints)
Adds a component to the tabbed pane. If constraints is a String or an Icon, it will be used for the tab title, otherwise the component's name will be used as the tab title. Cover method for insertTab.

Overrides:
add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
component - the component to be displayed when this tab is clicked
constraints - the object to be displayed in the tab
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

add sample code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JTabbedPane.add(java.awt.Component, java.lang.Object, int)

public void add(Component sample code for java.awt.Component definition code for java.awt.Component  component,
                Object sample code for java.lang.Object definition code for java.lang.Object  constraints,
                int index)
Adds a component at the specified tab index. If constraints is a String or an Icon, it will be used for the tab title, otherwise the component's name will be used as the tab title. Cover method for insertTab.

Overrides:
add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
component - the component to be displayed when this tab is clicked
constraints - the object to be displayed in the tab
index - the position to insert this new tab
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

removeTabAt sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

public void removeTabAt(int index)
Removes the tab at index. After the component associated with index is removed, its visibility is reset to true to ensure it will be visible if added to other containers.

Parameters:
index - the index of the tab to be removed
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) , insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) sample code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int) definition code for javax.swing.JTabbedPane.insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)

remove sample code for javax.swing.JTabbedPane.remove(java.awt.Component) definition code for javax.swing.JTabbedPane.remove(java.awt.Component)

public void remove(Component sample code for java.awt.Component definition code for java.awt.Component  component)
Removes the specified Component from the JTabbedPane. The method does nothing if the component is null.

Overrides:
remove sample code for java.awt.Container.remove(java.awt.Component) definition code for java.awt.Container.remove(java.awt.Component) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
component - the component to remove from the tabbedpane
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

remove sample code for javax.swing.JTabbedPane.remove(int) definition code for javax.swing.JTabbedPane.remove(int)

public void remove(int index)
Removes the tab and component which corresponds to the specified index.

Overrides:
remove sample code for java.awt.Container.remove(int) definition code for java.awt.Container.remove(int) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
index - the index of the component to remove from the tabbedpane
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

removeAll sample code for javax.swing.JTabbedPane.removeAll() definition code for javax.swing.JTabbedPane.removeAll()

public void removeAll()
Removes all the tabs and their corresponding components from the tabbedpane.

Overrides:
removeAll sample code for java.awt.Container.removeAll() definition code for java.awt.Container.removeAll() in class Container sample code for java.awt.Container definition code for java.awt.Container
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) sample code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) definition code for javax.swing.JTabbedPane.addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String) , removeTabAt(int) sample code for javax.swing.JTabbedPane.removeTabAt(int) definition code for javax.swing.JTabbedPane.removeTabAt(int)

getTabCount sample code for javax.swing.JTabbedPane.getTabCount() definition code for javax.swing.JTabbedPane.getTabCount()

public int getTabCount()
Returns the number of tabs in this tabbedpane.

Returns:
an integer specifying the number of tabbed pages

getTabRunCount sample code for javax.swing.JTabbedPane.getTabRunCount() definition code for javax.swing.JTabbedPane.getTabRunCount()

public int getTabRunCount()
Returns the number of tab runs currently used to display the tabs.

Returns:
an integer giving the number of rows if the tabPlacement is TOP or BOTTOM and the number of columns if tabPlacement is LEFT or RIGHT, or 0 if there is no UI set on this tabbedpane

getTitleAt sample code for javax.swing.JTabbedPane.getTitleAt(int) definition code for javax.swing.JTabbedPane.getTitleAt(int)

public String sample code for java.lang.String definition code for java.lang.String  getTitleAt(int index)
Returns the tab title at index.

Parameters:
index - the index of the item being queried
Returns:
the title at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setTitleAt(int, java.lang.String) sample code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String)

getIconAt sample code for javax.swing.JTabbedPane.getIconAt(int) definition code for javax.swing.JTabbedPane.getIconAt(int)

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getIconAt(int index)
Returns the tab icon at index.

Parameters:
index - the index of the item being queried
Returns:
the icon at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setIconAt(int, javax.swing.Icon) sample code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon)

getDisabledIconAt sample code for javax.swing.JTabbedPane.getDisabledIconAt(int) definition code for javax.swing.JTabbedPane.getDisabledIconAt(int)

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getDisabledIconAt(int index)
Returns the tab disabled icon at index. If the tab disabled icon doesn't exist at index this will forward the call to the look and feel to construct an appropriate disabled Icon from the corresponding enabled Icon. Some look and feels might not render the disabled Icon, in which case it won't be created.

Parameters:
index - the index of the item being queried
Returns:
the icon at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setDisabledIconAt(int, javax.swing.Icon) sample code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon)

getToolTipTextAt sample code for javax.swing.JTabbedPane.getToolTipTextAt(int) definition code for javax.swing.JTabbedPane.getToolTipTextAt(int)

public String sample code for java.lang.String definition code for java.lang.String  getToolTipTextAt(int index)
Returns the tab tooltip text at index.

Parameters:
index - the index of the item being queried
Returns:
a string containing the tool tip text at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setToolTipTextAt(int, java.lang.String) sample code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String)

getBackgroundAt sample code for javax.swing.JTabbedPane.getBackgroundAt(int) definition code for javax.swing.JTabbedPane.getBackgroundAt(int)

public Color sample code for java.awt.Color definition code for java.awt.Color  getBackgroundAt(int index)
Returns the tab background color at index.

Parameters:
index - the index of the item being queried
Returns:
the Color of the tab background at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setBackgroundAt(int, java.awt.Color) sample code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color)

getForegroundAt sample code for javax.swing.JTabbedPane.getForegroundAt(int) definition code for javax.swing.JTabbedPane.getForegroundAt(int)

public Color sample code for java.awt.Color definition code for java.awt.Color  getForegroundAt(int index)
Returns the tab foreground color at index.

Parameters:
index - the index of the item being queried
Returns:
the Color of the tab foreground at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setForegroundAt(int, java.awt.Color) sample code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color)

isEnabledAt sample code for javax.swing.JTabbedPane.isEnabledAt(int) definition code for javax.swing.JTabbedPane.isEnabledAt(int)

public boolean isEnabledAt(int index)
Returns whether or not the tab at index is currently enabled.

Parameters:
index - the index of the item being queried
Returns:
true if the tab at index is enabled; false otherwise
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setEnabledAt(int, boolean) sample code for javax.swing.JTabbedPane.setEnabledAt(int, boolean) definition code for javax.swing.JTabbedPane.setEnabledAt(int, boolean)

getComponentAt sample code for javax.swing.JTabbedPane.getComponentAt(int) definition code for javax.swing.JTabbedPane.getComponentAt(int)

public Component sample code for java.awt.Component definition code for java.awt.Component  getComponentAt(int index)
Returns the component at index.

Parameters:
index - the index of the item being queried
Returns:
the Component at index
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setComponentAt(int, java.awt.Component) sample code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component) definition code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component)

getMnemonicAt sample code for javax.swing.JTabbedPane.getMnemonicAt(int) definition code for javax.swing.JTabbedPane.getMnemonicAt(int)

public int getMnemonicAt(int tabIndex)
Returns the keyboard mnemonic for accessing the specified tab. The mnemonic is the key which when combined with the look and feel's mouseless modifier (usually Alt) will activate the specified tab.

Parameters:
tabIndex - the index of the tab that the mnemonic refers to
Returns:
the key code which represents the mnemonic; -1 if a mnemonic is not specified for the tab
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (tabIndex < 0 || tabIndex >= tab count)
Since:
1.4
See Also:
setDisplayedMnemonicIndexAt(int,int) sample code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) definition code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) , setMnemonicAt(int,int) sample code for javax.swing.JTabbedPane.setMnemonicAt(int, int) definition code for javax.swing.JTabbedPane.setMnemonicAt(int, int)

getDisplayedMnemonicIndexAt sample code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int) definition code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int)

public int getDisplayedMnemonicIndexAt(int tabIndex)
Returns the character, as an index, that the look and feel should provide decoration for as representing the mnemonic character.

Parameters:
tabIndex - the index of the tab that the mnemonic refers to
Returns:
index representing mnemonic character if one exists; otherwise returns -1
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (tabIndex < 0 || tabIndex >= tab count)
Since:
1.4
See Also:
setDisplayedMnemonicIndexAt(int,int) sample code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) definition code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) , setMnemonicAt(int,int) sample code for javax.swing.JTabbedPane.setMnemonicAt(int, int) definition code for javax.swing.JTabbedPane.setMnemonicAt(int, int)

getBoundsAt sample code for javax.swing.JTabbedPane.getBoundsAt(int) definition code for javax.swing.JTabbedPane.getBoundsAt(int)

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getBoundsAt(int index)
Returns the tab bounds at index. If the tab at this index is not currently visible in the UI, then returns null. If there is no UI set on this tabbedpane, then returns null.

Parameters:
index - the index to be queried
Returns:
a Rectangle containing the tab bounds at index, or null if tab at index is not currently visible in the UI, or if there is no UI set on this tabbedpane
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)

setTitleAt sample code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setTitleAt(int, java.lang.String)

public void setTitleAt(int index,
                       String sample code for java.lang.String definition code for java.lang.String  title)
Sets the title at index to title which can be null. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the title should be set
title - the title to be displayed in the tab
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getTitleAt(int) sample code for javax.swing.JTabbedPane.getTitleAt(int) definition code for javax.swing.JTabbedPane.getTitleAt(int)

setIconAt sample code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setIconAt(int, javax.swing.Icon)

public void setIconAt(int index,
                      Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon)
Sets the icon at index to icon which can be null. This does not set disabled icon at icon. If the new Icon is different than the current Icon and disabled icon is not explicitly set, the LookAndFeel will be asked to generate a disabled Icon. To explicitly set disabled icon, use setDisableIconAt(). An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the icon should be set
icon - the icon to be displayed in the tab
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
setDisabledIconAt(int, javax.swing.Icon) sample code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) , getIconAt(int) sample code for javax.swing.JTabbedPane.getIconAt(int) definition code for javax.swing.JTabbedPane.getIconAt(int) , getDisabledIconAt(int) sample code for javax.swing.JTabbedPane.getDisabledIconAt(int) definition code for javax.swing.JTabbedPane.getDisabledIconAt(int)

setDisabledIconAt sample code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon) definition code for javax.swing.JTabbedPane.setDisabledIconAt(int, javax.swing.Icon)

public void setDisabledIconAt(int index,
                              Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  disabledIcon)
Sets the disabled icon at index to icon which can be null. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the disabled icon should be set
disabledIcon - the icon to be displayed in the tab when disabled
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getDisabledIconAt(int) sample code for javax.swing.JTabbedPane.getDisabledIconAt(int) definition code for javax.swing.JTabbedPane.getDisabledIconAt(int)

setToolTipTextAt sample code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String) definition code for javax.swing.JTabbedPane.setToolTipTextAt(int, java.lang.String)

public void setToolTipTextAt(int index,
                             String sample code for java.lang.String definition code for java.lang.String  toolTipText)
Sets the tooltip text at index to toolTipText which can be null. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the tooltip text should be set
toolTipText - the tooltip text to be displayed for the tab
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getToolTipTextAt(int) sample code for javax.swing.JTabbedPane.getToolTipTextAt(int) definition code for javax.swing.JTabbedPane.getToolTipTextAt(int)

setBackgroundAt sample code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setBackgroundAt(int, java.awt.Color)

public void setBackgroundAt(int index,
                            Color sample code for java.awt.Color definition code for java.awt.Color  background)
Sets the background color at index to background which can be null, in which case the tab's background color will default to the background color of the tabbedpane. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the background should be set
background - the color to be displayed in the tab's background
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getBackgroundAt(int) sample code for javax.swing.JTabbedPane.getBackgroundAt(int) definition code for javax.swing.JTabbedPane.getBackgroundAt(int)

setForegroundAt sample code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color) definition code for javax.swing.JTabbedPane.setForegroundAt(int, java.awt.Color)

public void setForegroundAt(int index,
                            Color sample code for java.awt.Color definition code for java.awt.Color  foreground)
Sets the foreground color at index to foreground which can be null, in which case the tab's foreground color will default to the foreground color of this tabbedpane. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where the foreground should be set
foreground - the color to be displayed as the tab's foreground
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getForegroundAt(int) sample code for javax.swing.JTabbedPane.getForegroundAt(int) definition code for javax.swing.JTabbedPane.getForegroundAt(int)

setEnabledAt sample code for javax.swing.JTabbedPane.setEnabledAt(int, boolean) definition code for javax.swing.JTabbedPane.setEnabledAt(int, boolean)

public void setEnabledAt(int index,
                         boolean enabled)
Sets whether or not the tab at index is enabled. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index which should be enabled/disabled
enabled - whether or not the tab should be enabled
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
isEnabledAt(int) sample code for javax.swing.JTabbedPane.isEnabledAt(int) definition code for javax.swing.JTabbedPane.isEnabledAt(int)

setComponentAt sample code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component) definition code for javax.swing.JTabbedPane.setComponentAt(int, java.awt.Component)

public void setComponentAt(int index,
                           Component sample code for java.awt.Component definition code for java.awt.Component  component)
Sets the component at index to component. An internal exception is raised if there is no tab at that index.

Parameters:
index - the tab index where this component is being placed
component - the component for the tab
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index >= tab count)
See Also:
getComponentAt(int) sample code for javax.swing.JTabbedPane.getComponentAt(int) definition code for javax.swing.JTabbedPane.getComponentAt(int)

setDisplayedMnemonicIndexAt sample code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) definition code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int)

public void setDisplayedMnemonicIndexAt(int tabIndex,
                                        int mnemonicIndex)
Provides a hint to the look and feel as to which character in the text should be decorated to represent the mnemonic. Not all look and feels may support this. A value of -1 indicates either there is no mnemonic for this tab, or you do not wish the mnemonic to be displayed for this tab.

The value of this is updated as the properties relating to the mnemonic change (such as the mnemonic itself, the text...). You should only ever have to call this if you do not wish the default character to be underlined. For example, if the text at tab index 3 was 'Apple Price', with a mnemonic of 'p', and you wanted the 'P' to be decorated, as 'Apple Price', you would have to invoke setDisplayedMnemonicIndex(3, 6) after invoking setMnemonicAt(3, KeyEvent.VK_P).

Note that it is the programmer's responsibility to ensure that each tab has a unique mnemonic or unpredictable results may occur.

Parameters:
tabIndex - the index of the tab that the mnemonic refers to
mnemonicIndex - index into the String to underline
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if tabIndex is out of range (tabIndex < 0 || tabIndex >= tab count)
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - will be thrown if mnemonicIndex is >= length of the tab title , or < -1
Since:
1.4
See Also:
setMnemonicAt(int,int) sample code for javax.swing.JTabbedPane.setMnemonicAt(int, int) definition code for javax.swing.JTabbedPane.setMnemonicAt(int, int) , getDisplayedMnemonicIndexAt(int) sample code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int) definition code for javax.swing.JTabbedPane.getDisplayedMnemonicIndexAt(int)

setMnemonicAt sample code for javax.swing.JTabbedPane.setMnemonicAt(int, int) definition code for javax.swing.JTabbedPane.setMnemonicAt(int, int)

public void setMnemonicAt(int tabIndex,
                          int mnemonic)
Sets the keyboard mnemonic for accessing the specified tab. The mnemonic is the key which when combined with the look and feel's mouseless modifier (usually Alt) will activate the specified tab.

A mnemonic must correspond to a single key on the keyboard and should be specified using one of the VK_XXX keycodes defined in java.awt.event.KeyEvent. Mnemonics are case-insensitive, therefore a key event with the corresponding keycode would cause the button to be activated whether or not the Shift modifier was pressed.

This will update the displayed mnemonic property for the specified tab.

Parameters:
tabIndex - the index of the tab that the mnemonic refers to
mnemonic - the key code which represents the mnemonic
Throws:
IndexOutOfBoundsException sample code for java.lang.IndexOutOfBoundsException definition code for java.lang.IndexOutOfBoundsException - if tabIndex is out of range (tabIndex < 0 || tabIndex >= tab count)
Since:
1.4
See Also:
getMnemonicAt(int) sample code for javax.swing.JTabbedPane.getMnemonicAt(int) definition code for javax.swing.JTabbedPane.getMnemonicAt(int) , setDisplayedMnemonicIndexAt(int,int) sample code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int) definition code for javax.swing.JTabbedPane.setDisplayedMnemonicIndexAt(int, int)

indexOfTab sample code for javax.swing.JTabbedPane.indexOfTab(java.lang.String) definition code for javax.swing.JTabbedPane.indexOfTab(java.lang.String)

public int indexOfTab(String sample code for java.lang.String definition code for java.lang.String  title)
Returns the first tab index with a given title, or -1 if no tab has this title.

Parameters:
title - the title for the tab
Returns:
the first tab index which matches title, or -1 if no tab has this title

indexOfTab sample code for javax.swing.JTabbedPane.indexOfTab(javax.swing.Icon) definition code for javax.swing.JTabbedPane.indexOfTab(javax.swing.Icon)

public int indexOfTab(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon)
Returns the first tab index with a given icon, or -1 if no tab has this icon.

Parameters:
icon - the icon for the tab
Returns:
the first tab index which matches icon, or -1 if no tab has this icon

indexOfComponent sample code for javax.swing.JTabbedPane.indexOfComponent(java.awt.Component) definition code for javax.swing.JTabbedPane.indexOfComponent(java.awt.Component)

public int indexOfComponent(Component sample code for java.awt.Component definition code for java.awt.Component  component)
Returns the index of the tab for the specified component. Returns -1 if there is no tab for this component.

Parameters:
component - the component for the tab
Returns:
the first tab which matches this component, or -1 if there is no tab for this component

indexAtLocation sample code for javax.swing.JTabbedPane.indexAtLocation(int, int) definition code for javax.swing.JTabbedPane.indexAtLocation(int, int)

public int indexAtLocation(int x,
                           int y)
Returns the tab index corresponding to the tab whose bounds intersect the specified location. Returns -1 if no tab intersects the location.

Parameters:
x - the x location relative to this tabbedpane
y - the y location relative to this tabbedpane
Returns:
the tab index which intersects the location, or -1 if no tab intersects the location
Since:
1.4

getToolTipText sample code for javax.swing.JTabbedPane.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JTabbedPane.getToolTipText(java.awt.event.MouseEvent)

public String sample code for java.lang.String definition code for java.lang.String  getToolTipText(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Returns the tooltip text for the component determined by the mouse event location.

Overrides:
getToolTipText sample code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
event - the MouseEvent that tells where the cursor is lingering
Returns:
the String containing the tooltip text

paramString sample code for javax.swing.JTabbedPane.paramString() definition code for javax.swing.JTabbedPane.paramString()

protected String sample code for java.lang.String definition code for java.lang.String  paramString()
Returns a string representation of this JTabbedPane. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
paramString sample code for javax.swing.JComponent.paramString() definition code for javax.swing.JComponent.paramString() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
a string representation of this JTabbedPane.

getAccessibleContext sample code for javax.swing.JTabbedPane.getAccessibleContext() definition code for javax.swing.JTabbedPane.getAccessibleContext()

public AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  getAccessibleContext()
Gets the AccessibleContext associated with this JTabbedPane. For tabbed panes, the AccessibleContext takes the form of an AccessibleJTabbedPane. A new AccessibleJTabbedPane instance is created if necessary.

Specified by:
getAccessibleContext sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() in interface Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible
Overrides:
getAccessibleContext sample code for javax.swing.JComponent.getAccessibleContext() definition code for javax.swing.JComponent.getAccessibleContext() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
an AccessibleJTabbedPane that serves as the AccessibleContext of this JTabbedPane