• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a few questions about JToolBar

 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a JToolBar and placed it on a JFrame, underneath a JMenuBar.

The problem I am having is it won't connect right below the JMenuBar, there is a dotted line(not sure what it is called) between the menu bar and tool bar. Clicking on that dotted line and sliding it up a bit will connect it. Is there a way to get this behavior by default? I looked at suns tutorials and JToolBAr docs, but nothing obvious jumped out.

Also, why did I have to call SetOrientation and pass it VERTICAL to get it to lay out horizontally across the JFrame? Passing it HORIZONTAL laid it out vertically on the left side of the JFrame.
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it working correctly, thanks anyway
 
Campbell Ritchie
Sheriff
Pie
Posts: 50278
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad you got it sorted, Rusty. The reason we didn't reply was because we didn't know how to help.

But how did you sort out the problem?

CR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic