Available Methods
- addTab ( )
- add ( )
- TOP
- setSelectedIndex ( )
- getTabCount ( )
- addChangeListener ( )
- SCROLL_TAB_LAYOUT
- RIGHT
- setPreferredSize ( )
- getSelectedIndex ( )
- getComponentAt ( )
- getComponents ( )
- insertTab ( )
- LEFT
- BOTTOM
- setTabLayoutPolicy ( )
- getSelectedComponent ( )
- HORIZONTAL
- setTabComponentAt ( )
- addMouseListener ( )
- setTabPlacement ( )
- getTabPlacement ( )
- revalidate ( )
- getUI ( )
- putClientProperty ( )
- setForeground ( )
- setFocusable ( )
- setSize ( )
- getTitleAt ( )
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.event.WindowEvent
- java.awt.Rectangle
- java.awt.Toolkit
- javax.swing.JTextField
- javax.swing.SwingUtilities
- javax.swing.ImageIcon
- javax.swing.JComponent
- java.awt.event.WindowAdapter
- javax.swing.JCheckBox
Java Code Examples for javax.swing.JTabbedPane#revalidate()
The following examples show how to use
javax.swing.JTabbedPane#revalidate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CloseTabPaneUI.java From iBioSim with Apache License 2.0 | 5 votes |
@Override public void stateChanged(ChangeEvent e) { JTabbedPane tabPane = (JTabbedPane) e.getSource(); tabPane.revalidate(); tabPane.repaint(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { int index = tabPane.getSelectedIndex(); if (index < rects.length && index != -1) { tabScroller.tabPanel.scrollRectToVisible(rects[index]); } } }
Example 2
Source File: BasicOutlookBarUI.java From CodenameOne with GNU General Public License v2.0 | 4 votes |
public void stateChanged(ChangeEvent e) { JTabbedPane tabPane = (JTabbedPane)e.getSource(); tabPane.revalidate(); tabPane.repaint(); }