Example usage for javax.swing JToolBar isFloatable

List of usage examples for javax.swing JToolBar isFloatable

Introduction

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

Prototype

public boolean isFloatable() 

Source Link

Document

Gets the floatable property.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {

    // Create a horizontal toolbar
    JToolBar toolbar = new JToolBar();

    // Get current floatability
    boolean b = toolbar.isFloatable();

    // Disable floatability
    toolbar.setFloatable(false);/*from w w  w.  j  av  a2  s .c o m*/
}