I was wondering what all of your takes on window decorations (min/max buttons, title bars, etc.) is. That is, should the app use Swing window decorations or native window decorations? I personally think window decorations are a window manager's job, as it guarantees uniformity of appearance, however, I'm wondering if Sun wants to see Swing decorations.
I noticed that Max's app uses native (wm-supplied) decorations and so this got me wondering.
Thanks and regards,
Am I thinking too much about this for the SCJD? In the real world what happens when you want the app to look native on all platforms? Apparently some platforms (mine - Linux, no Gnome or KDE) can't tell Java what their native look is, so simple querying may not work.
Thanks and regards,
The GTK+ look and feel was released in all versions of the 1.4.2 SDK. However, it was not included in the 1.4.2 JRE release for Microsoft Windows. If you are running the 1.4.2 JRE for Windows and wish to use the GTK+ look and feel, you need to download the 1.4.2 SDK. We expect GTK+ to be shipped for all platforms in future JRE releases.
I would be a little worried about hard coding the GTK look and feel, because I have no idea if the examiners test the application using the JRE or the SDK.
If you use the UIManager to return the system look and feel with the code I put in my earlier post, it will return the Windows look and feel on Microsoft Windows platforms, the Mac OS look and feel on Mac OS platforms, and the default cross platform look and feel (CDE/Motif) on other Unix platforms, such as Solaris or Linux. So this is not guaranteed to return the same look and feel as the system, but it does provide more flexibility. I have not looked at SDK 1.5 (or 5.0 or whatever the heck it is called!) yet, but I am hoping the UIManager has a few more looks to choose from when querying the system, including the GTK+.
[ October 15, 2004: Message edited by: Paul Bourdeaux ]