Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I am making a Windows 8 style Nimbus skin for my Java application, and this involved customizing the title bar's buttons, such as using windows 8 X buttons etc. My issue is that in Windows 8, the maximize and minimize buttons are the same color as the title bar, this is fine when the window is focused, but when a InternalFrame becomes deactivated, my program mimics windows and makes it a lighter color, so now there's an issue as the icon won't be the same color as the bar. I tried making it transparent, but this lets you see the original icon underneath, and I don't really want to change every single painter, there are around 20 for just the maximize icon! Does anyone know a simple way to detect when the frame is deactivated, then change the button's icon? Ideally I would want it to be a thread or listener attached to the button itself.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900