Previously I created a JToolBar with JButton and JComboBox .Below example shows how to create a JToolBar with vertical Orientation. im...
Previously I created a JToolBar with JButton and JComboBox.Below example shows how to create a JToolBar with vertical Orientation.
import javax.swing.JToolBar;
public class VerticalToolBar {
VerticalToolBar(){
JToolBar bar=new JToolBar(null,JToolBar.VERTICAL);
int orient=bar.getOrientation();
System.out.println(orient);
}
public static void main(String args[])
{
new VerticalToolBar();
}
}