posted 15 years ago
I'd like a little popup menu to appear when I click on a button, I would like the menu to highlight the background of each menu item as the mouse moves over it.
This doesn't happen with a JPopupMenu, it works with a JMenu but I can't figure out how to trigger the menu without having a JMenuBar.
So, is there a way of making the JPopupMenu highlight elements? Or way to create a JMenu without a menu bar?
I've tried, menu.doClick(0); but that only works when the menu bar is also present.