Window decoration

105 views
Skip to first unread message

bogumi...@gmail.com

unread,
Dec 2, 2013, 8:29:42 AM12/2/13
to sea-glass-l...@googlegroups.com
Does anyone know how to change the color of the main window's frame or title? I tried looking it up in the UIManager's default properties but it doesn't seem to be there...

Bernd Rosstauscher

unread,
Dec 3, 2013, 5:42:52 AM12/3/13
to sea-glass-l...@googlegroups.com
Hi,
The code for this is in the class FrameAndRootPainter

http://code.google.com/p/seaglass/source/browse/seaglass/trunk/seaglass/src/main/java/com/seaglasslookandfeel/painter/FrameAndRootPainter.java?spec=svn1598&r=1598

there you can find all properties that might be interesting for you.

For example to set the title area to green do the following.

try {
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
UIManager.put("frameBaseActive", Color.GREEN.darker());
} catch (Exception e) {
e.printStackTrace();
}

Have fun,
- Rossi
Reply all
Reply to author
Forward
0 new messages