JtoolBar in visual Designer

View: New views
1 Messages — Rating Filter:   Alert me  

JtoolBar in visual Designer

by jahnvi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to use JToolBar in netbeans IDE.
i want to add JButton to right side of JToolBar.

how do i do that using netbeans visual designer.

i can do by writing code

jToolBar1.add(Box.createHorizontalGlue());
jToolBar1.add(new JButton("Button 4"));

any idea, how this can be done using IDE.

Thanks