1.11M Members

How to make a swing.properties file?

 
0
 

My computer does not have the swing.properties. How to make a swing.properties file and with what software?

 
0
 

notepad? it's basically just a textfile which you give the extension .properties

 
0
 

Ok, so I made it with my text editor and wrote this:
swing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
expecting Nimbus. I still get Metal. Why?

 
0
 

I have no idea. how are you using that properties file in your code?

 
0
 

another way to specify the current L&F is to use the swing.properties file to set the swing.defaultlaf property. This file, which you may need to create, is located in the lib directory of Sun's Java release (other vendors of Java may use a different location). For example, if you're using the Java interpreter in javaHomeDirectory\bin, then the swing.properties file (if it exists) is in javaHomeDirectory\lib

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#properties

Question Answered as of 2 Years Ago by stultuske and JamesCherrill
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article