• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Nimbus Look and Feel  RSS feed

 
Bojan Ivkovic
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!