List of usage examples for javax.swing JTabbedPane getTabRunCount
@BeanProperty(bound = false) public int getTabRunCount()
From source file:Main.java
public static void main(String[] argv) throws Exception { JTabbedPane pane = new JTabbedPane(); int rows = pane.getTabRunCount(); int policy = pane.getTabLayoutPolicy(); // WRAP_TAB_LAYOUT pane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); }