0

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

4
Contributors
6
Replies
13
Views
4 Years
Discussion Span
Last Post by durim.kryeziu.927
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

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

This question has already been answered. Start a new discussion instead.
Take the time to help us to help you. Please be thoughtful and detailed and be sure to adhere to our posting rules.