public class UIManagerextends Objectimplements SerializableThis class keeps track of the current look and feel and its defaults. The default look and feel class is chosen in the following manner:
1- If the system property swing.defaultlaf is non-null, use it as the default look and feel class name.
2-If the Properties file swing.properties exists and contains the key swing.defaultlaf, use its value as default look and feel class name. The location of swing.properties may vary depending upon the implementation of the Java platform. In Sun's implementation this will reside in &java.home>/lib/swing.properties. Refer to the release notes of the implementation you are using for further details.
3-Otherwise use the Java look and feel.
q1 Why I cannot find swing.properties any where in my java home folder downloaded and installed from sun?
q2 What is difference between system properties and environment varaibles?
1. Because it does not exist You can create this file and Java will use the parameters you set in there. If it doesn't exist or does not contain the required keys, default values will be used.
2. Java does not support environment variables. In Java all "environment variables" are stored in a class, most of them in the properties of System. Variables without a parent class do not exist.