KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JTabbedPane

javax.swing
Class JTabbedPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTabbedPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
See Also:
Top Examples, Source Code, XMLEncoder, SingleSelectionModel

public Component add(Component component)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component add(Component component,
                     int index)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void add(Component component,
                Object constraints)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void add(Component component,
                Object constraints,
                int index)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component add(String title,
                     Component component)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addChangeListener(ChangeListener l)
See Also:
removeChangeListener(javax.swing.event.ChangeListener), fireStateChanged()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addTab(String title,
                   Component component)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addTab(String title,
                   Icon icon,
                   Component component)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addTab(String title,
                   Icon icon,
                   Component component,
                   String tip)
See Also:
removeTabAt(int), insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[668]Tabbed Panel
By Anonymous on 2004/02/20 02:24:37  Rate
contentPane =  ( JPanel ) this.getContentPane (  ) ; 
     //titledBorder1 = new TitledBorder ( "" ) ; 
     contentPane.setLayout ( borderLayout1 ) ; 
     contentPane.add ( tp ) ; 
     tp.addTab ( "Search Service", null,getMainJPanel (  ) , null ) ; 
     tp.addTab ( "publish service", null, getPublishJPanel (  ) , null ) ; 
     tp.addTab ( "node register service", null, getNodeRegJPanel (  ) , null ) ; 
     tp.setSize ( 180, 110 ) ;


protected transient ChangeEvent changeEvent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ChangeListener changeListener
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ChangeListener createChangeListener()
See Also:
fireStateChanged()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void fireStateChanged()
See Also:
EventListenerList, addChangeListener(javax.swing.event.ChangeListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
JComponent, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Color getBackgroundAt(int index)
See Also:
setBackgroundAt(int, java.awt.Color), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Rectangle getBoundsAt(int index)
See Also:
IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ChangeListener[] getChangeListeners()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[727]Remove all ChangeListener
By Anonymous on 2004/04/09 09:56:03  Rate
javax.swing.event.ChangeListener [  ]  thisChangeListener = filterJTabPane.getChangeListeners (  ) ; 
         int clsize = thisChangeListener.size (  ) ; 
         for (  int idx=0; idx  <  clsize; idx++ )  
             filterJTabPane.removeChangeListener ( thisChangeListener [ idx ]  ) ;


public Component getComponentAt(int index)
See Also:
setComponentAt(int, java.awt.Component), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Icon getDisabledIconAt(int index)
See Also:
setDisabledIconAt(int, javax.swing.Icon), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getDisplayedMnemonicIndexAt(int tabIndex)
See Also:
setMnemonicAt(int,int), setDisplayedMnemonicIndexAt(int,int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Color getForegroundAt(int index)
See Also:
setForegroundAt(int, java.awt.Color), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Icon getIconAt(int index)
See Also:
setIconAt(int, javax.swing.Icon), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMnemonicAt(int tabIndex)
See Also:
setMnemonicAt(int,int), setDisplayedMnemonicIndexAt(int,int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SingleSelectionModel getModel()
See Also:
setModel(javax.swing.SingleSelectionModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getSelectedComponent()
See Also:
setSelectedComponent(java.awt.Component)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSelectedIndex()
See Also:
setSelectedIndex(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTabCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTabLayoutPolicy()
See Also:
setTabLayoutPolicy(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTabPlacement()
See Also:
setTabPlacement(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTabRunCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getTitleAt(int index)
See Also:
setTitleAt(int, java.lang.String), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipText(MouseEvent event)
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipTextAt(int index)
See Also:
setToolTipTextAt(int, java.lang.String), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TabbedPaneUI getUI()
See Also:
setUI(javax.swing.plaf.TabbedPaneUI)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUIClassID()
See Also:
UIDefaults.getUI(javax.swing.JComponent), JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexAtLocation(int x,
                           int y)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexOfComponent(Component component)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexOfTab(String title)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexOfTab(Icon icon)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void insertTab(String title,
                      Icon icon,
                      Component component,
                      String tip,
                      int index)
See Also:
removeTabAt(int), addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isEnabledAt(int index)
See Also:
setEnabledAt(int, boolean), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JTabbedPane()
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JTabbedPane(int tabPlacement)
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JTabbedPane(int tabPlacement,
                   int tabLayoutPolicy)
See Also:
addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected SingleSelectionModel model
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String paramString()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove(int index)
See Also:
removeTabAt(int), addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String), IndexOutOfBoundsException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove(Component component)
See Also:
removeTabAt(int), addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAll()
See Also:
removeTabAt(int), addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeChangeListener(ChangeListener l)
See Also:
addChangeListener(javax.swing.event.ChangeListener), fireStateChanged()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeTabAt(int index)
See Also:
insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int), addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SCROLL_TAB_LAYOUT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setBackgroundAt(int index,
                            Color background)
See Also:
getBackgroundAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setComponentAt(int index,
                           Component component)
See Also:
getComponentAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDisabledIconAt(int index,
                              Icon disabledIcon)
See Also:
getDisabledIconAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDisplayedMnemonicIndexAt(int tabIndex,
                                        int mnemonicIndex)
See Also:
getDisplayedMnemonicIndexAt(int), setMnemonicAt(int,int), IllegalArgumentException, IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setEnabledAt(int index,
                         boolean enabled)
See Also:
isEnabledAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setForegroundAt(int index,
                            Color foreground)
See Also:
getForegroundAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setIconAt(int index,
                      Icon icon)
See Also:
getDisabledIconAt(int), getIconAt(int), setDisabledIconAt(int, javax.swing.Icon), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setMnemonicAt(int tabIndex,
                          int mnemonic)
See Also:
setDisplayedMnemonicIndexAt(int,int), getMnemonicAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setModel(SingleSelectionModel model)
See Also:
getModel()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectedComponent(Component c)
See Also:
getSelectedComponent(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectedIndex(int index)
See Also:
getSelectedIndex(), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setTabLayoutPolicy(int tabLayoutPolicy)
See Also:
getTabLayoutPolicy(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setTabPlacement(int tabPlacement)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setTitleAt(int index,
                       String title)
See Also:
getTitleAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setToolTipTextAt(int index,
                             String toolTipText)
See Also:
getToolTipTextAt(int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setUI(TabbedPaneUI ui)
See Also:
UIDefaults.getUI(javax.swing.JComponent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int tabPlacement
See Also:
setTabPlacement(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void updateUI()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int WRAP_TAB_LAYOUT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags