How to get a button that behaves like a JMenuBar?
I want to have in my application a JMenuBar somewhere in the middle of my app, which just pops up Menu-Items. The main reason, why I cannot use the JMenuBar itself is due to the fact, that the JMenuBar is layouted like it would be in the Toolbar. But I need it to be layouted like a Button.
The problem becomes a pain, when using customized LaF, where the MenuBar is layouted like the above mentioned policy. And then it becomes really recognizable cause the background is painted.
The reason, why I wanna stuck with the JMenuBar is, that it provides mechanism to automatically position the Popup-window resp. moves around when the frame is dragged. But if there is already a similar button available, I would take it as well.
Setting the background or opaque does not help.
Anybody an idea, how I can get a button with the above described behaviour?