JTabbedPane
Mert Kahyaoğlu
Examples
A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.
Constructor
JTabbedPane()
JTabbedPane( int tabPlacement )
JTabbedPane( int tabPlacement, int tabLayoutPolicy )
Tab Placements:
JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, JTabbedPane.RIGHT
Tab Layout Policies:
WRAP_TAB_LAYOUT,
SCROLL_TAB_LAYOUT
Methods
addTab( String title, Icon icon, Component c, String tooltip )
addTab( String title, Icon icon , Component c )
addTab( String title, Component c )
insertTab( String title, Icon icon, Component c, String tooltip, int index )
int indexOfComponent( Component ) int indexOfTab( String ) int indexOfTab( Icon )
void setTabLayoutPolicy( int p ) , int getTabLayoutPolicy()
void setTabPlacement( int p ) , int getTabPlacement()
void setSelectedIndex( int index ) , int getSelectedIndex()
remove( Component c) , remove( int index ) , removeTabAt( int index) , removeAll()
setEnabledAt( int index, boolean enabled ) , boolean isEnabledAt( int index )
void setTabComponentAt( int, Component ) , Component getTabComponentAt( int )
void setMnemonicAt( int index, int mnemonic ) , int getMnemonicAt( int )
void setTitleAt( int index, String title ) , String getTitleAt( int index )
void setIconAt( int index, Icon icon) , Icon getIconAt( int index )
void setToolTipTextAt( int index, String tooltip ) , String getToolTipTextAt( int index)
References
http://docs.oracle.com/javase/7/docs/api/javax/swing/JTabbedPane.html
http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html
Mert Kahyaoğlu
117090001
JTabbedPane Presentation
By Mert Kahyaoğlu
JTabbedPane Presentation
- 1,650