The nimbusx project is rather small so far and really only contains two classes that are of interest right now. NimbusFrame and NimbusDialog. Simply use these two classes as a replacement for JFrame and JDialog and you will be rewarded with the correct window decorations when running the Nimbus look and feel on Windows.
Dirk
P.S.: both window classes will behave exactly like their super classes when not running the Nimbus look and feel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Dirk,
I can't make nimbusx work... I use, and instantiate, NimbusFrame instead of JFrame but I get a runtime exception:
Exception in thread "main" java.lang.ClassCastException: javax.swing.plaf.nimbus.InternalFramePainter cannot be cast to com.sun.java.swing.Painter
at com.dlsc.nimbusx.NimbusContentPane.paintComponent(NimbusContentPane.java:129)
Running on latest java 7 JRE.
Could you please provide a simple working demo showcasing nimbusx usage?
Cheers,
Unai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The nimbusx project is rather small so far and really only contains two classes that are of interest right now. NimbusFrame and NimbusDialog. Simply use these two classes as a replacement for JFrame and JDialog and you will be rewarded with the correct window decorations when running the Nimbus look and feel on Windows.
Dirk
P.S.: both window classes will behave exactly like their super classes when not running the Nimbus look and feel.
Hi Dirk,
I can't make nimbusx work... I use, and instantiate, NimbusFrame instead of JFrame but I get a runtime exception:
Exception in thread "main" java.lang.ClassCastException: javax.swing.plaf.nimbus.InternalFramePainter cannot be cast to com.sun.java.swing.Painter
at com.dlsc.nimbusx.NimbusContentPane.paintComponent(NimbusContentPane.java:129)
Running on latest java 7 JRE.
Could you please provide a simple working demo showcasing nimbusx usage?
Cheers,
Unai