posted 15 years ago
I'm trying to add a component other than a JMenu to a JMenuBar. In particular, I'm adding a label that displays the current date and time. I can add the label fine but it gets added and is located right next to the last JMenu that I added. I'd really like it to be right-justified (while all the JMenus are left-justified). I thought maybe by adding the label via a
call would work but this didn't do anything. Is there any way to force the justification of a component in a JMenuBar?
Thanks,
Dave