Changing a Java Frame's close/min/max icons
Posted on 2009-03-29
I have an application that uses a JFrame as the main window for the app. I am using swing plaf to change certain things about how the frame looks and how the components look, for example:
String dLook = UIManager.getSystemLookAndFeelClassName();
UIManager.put("TextPane.font", new FontUIResource("Dialog", Font.PLAIN, 14));
What I'd like to do is to change the default icons for close/minimize/maximize on my Frame/windowsTitle (I'm not sure which one am I actually referring to, but they are the ones at the top right of every window.) I saw a bunch of JInternalFrame properties to edit, but none for the overall frame (External frame?) I want to set the icons for things like close, close_pressed, and close_mouse_over to my own png images.