• Post Reply Bookmark Topic Watch Topic
  • New Topic

look and feel issue  RSS feed

 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does setting the look and feel affect all the application's components?

or can you set a look and feel for a specific swing component?

i want to set the look and feel of a JFileChooser to windows without affecting the look and feel of the other swing components
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try using a java.awt.FileDialog instead.
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi darryl. thanks for that but im using swing
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So long as you're not mixing AWT and Swing components in the same top-level window it's not a problem.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Darryl - using a FileDialog with Swing provides a much better experience; JFileChooser is rather deficient.
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems that setting the look and feel cannot be done on specific components. what i did was change the UI to windows style

http://tech.chitgoks.com/2010/04/06/jfilechooser-windows-look-and-feel/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!