File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTable Nimbus Look and Feel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Nimbus Look and Feel" Watch "JTable Nimbus Look and Feel" New topic
Author

JTable Nimbus Look and Feel

Bojan Ivkovic
Greenhorn

Joined: May 17, 2009
Posts: 7
Hi, I have one form with JTable and other components (etc JButton, JLabel...). How can I set Nimbus Look and Feel only on JTbale, no on JButton, JLabelj JTextField on this form...?
Thanks
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2177
    
    7
Cross posted: http://www.java-forums.org/awt-swing/71909-jtable-nimbus-look-feel.html. Next time I notice a cross posted question I will delete my answer.

A component gets is LAF when it is created. So you can do something like:

1. set LAF
2. create LAF
3. reset LAF

Not sure if this will cause any problems using mixed LAF's or not.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTable Nimbus Look and Feel