Reputation: 449
As I'm modifying an existing Look and Feel, I also want to change how the "buttons" of a PopUpMenu
behave. Right now it behaves like this, when I hover my mouse over it. As you can see it behaves very "3D":
And I want to let it behave like the buttons I made below them:
I've looked trough alot of documentation of Java Swing but I can't seem to find it. So if someone knows, please help me out. I have tried to change every property I could find.
Upvotes: 0
Views: 48
Reputation: 449
The correct answer here is, as I found out, not everything can be managed by the LaF. Therefore, sometimes you have to get your hands dirty.
In this case I created my own CSTMButton
, because in Swing one is also able to add buttons to a menubar. Now I can create it's own listener to generate the behaviour I want.
Upvotes: 0