List of usage examples for javax.swing JToolBar isFloatable
public boolean isFloatable()
floatable
property. 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*/ }