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.
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.