Example usage for javax.swing JToolBar getOrientation

List of usage examples for javax.swing JToolBar getOrientation

Introduction

In this page you can find the example usage for javax.swing JToolBar getOrientation.

Prototype

public int getOrientation() 

Source Link

Document

Returns the current orientation of the tool bar.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JToolBar toolbar = new JToolBar(null, JToolBar.VERTICAL);

    // Get current orientation
    int orient = toolbar.getOrientation();
}