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






JToolBar: getOrientation()

  


import javax.swing.JToolBar;

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

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

   
    
  








Related examples in the same category

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