Example usage for javax.swing JTabbedPane getTabRunCount

List of usage examples for javax.swing JTabbedPane getTabRunCount

Introduction

In this page you can find the example usage for javax.swing JTabbedPane getTabRunCount.

Prototype

@BeanProperty(bound = false)
public int getTabRunCount() 

Source Link

Document

Returns the number of tab runs currently used to display the tabs.

Usage

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);

}