JToolBar: isFloatable() : JToolBar « javax.swing « Java by API






JToolBar: isFloatable()

  

import javax.swing.JToolBar;

public class Main {
  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);
  }
}

   
    
  








Related examples in the same category

1.JToolBar: add(JComponent com)
2.JToolBar: addPropertyChangeListener(PropertyChangeListener listener)
3.JToolBar: addSeparator()
4.JToolBar: getOrientation()
5.JToolBar: setFloatable(boolean b)
6.JToolBar: setRollover(boolean v)