Title says it all, I want to change background and foreground color's of JMenuItem so that normal background is blue and when I put my mouse over it, it turns to green. once I move my mouse away it moves back to blue. I tried with Mouse Listener and with MouseDraggedListener and neither have worked.
If there is a solution please let me know.
Also another question is a similar one involving tabs. How do I change background and foreground of selected tab. I managed to change background of selected tab with this command
but can't seem to change the Foreground.
Any help is appreciated