Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JMenuBar

Status
Not open for further replies.

OhioSteve

MIS
Joined
Mar 12, 2002
Messages
1,352
Location
US
I created a Jmenu and added it to a JMenuBar. Unfortunately the JMenu is aligned vertically to the top of the JMenuBar. This leaves me with white space at the bottom of the JMenuBar.

JMenuBars have BOTTOM_ALIGNMENT as a data member. BOTTOM_ALIGNMENT=1.0f on my JMenuBar. I strongly suspect that if I could make that 0.0f, it would solve my problem.

I tried using .setAlignmentX(). Unfortunately it did not change BOTTOM_ALIGNMENT, and it did not eliminate the white space. I don't see any other methods in JMenuBar that are relevant.

Please give me some advice on this issue.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top