I’m writing a typing application where jbutton should react on key pressing by changing it’s color, but the Mac LAF refuses to change it and i don’t want use other LAFs. Is their any way to use “system clicking effect” (button becomes gray for a sec) on key pressing event?
I’m writing a typing application where jbutton should react on key pressing by changing
Share
1) easiest and by default correct way –>
Mac L&Fwith one of (todays) custom Look and Feels2) possible way –> required deepest knowledge of Swing, Java and LookAndFeels,
MacOSXuser, don’t know if you are usingSystemLookAndFeeelorMetalLookAndFeel, but you could be able get and override fromMetalButtonUI/QuaquaButtonUIextendsBasicButtonUI, maybe this one can help you