Example usage for javax.swing JTabbedPane getTabPlacement

List of usage examples for javax.swing JTabbedPane getTabPlacement

Introduction

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

Prototype

public int getTabPlacement() 

Source Link

Document

Returns the placement of the tabs for this tabbedpane.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JTabbedPane pane = new JTabbedPane();
    int loc = pane.getTabPlacement();

    int location = JTabbedPane.LEFT; // or TOP, BOTTOM, RIGHT
    pane = new JTabbedPane(location);
    pane.setTabPlacement(JTabbedPane.BOTTOM);
}