The default settings of swing. properties files

Source: Internet
Author: User

Some JDK does not contain swing. properties. According to the description in the Java document, if it does not exist, manually add the file to the JRE/lib folder. Add the following content to the file:

# Swing. defaultlaf = javax. Swing. plaf. Metal. metallookandfeel
# Swing. defaultlaf = com. Sun. java. Swing. plaf. motif. motiflookandfeel
# Swing. defaultlaf = com. Sun. java. Swing. plaf. Windows. windowslookandfeel

Swing. defaultlaf = com. Sun. java. Swing. plaf. Windows. windowsclassiclookandfeel

Where # The content following is commented out. If there are two rows without #, the last setting prevails.

Many documents on the webpage are written under the JRE/lib pointed to by java_home. However, after my attempt, if you use the eclipse environment, you need to put the file in Java in help-> Installation Details-> configuration. under JRE/lib in the path described by home. Instead of the JRE/lib under java_home in the system variable. None of the other paths work.

Note: I have tried it only in eclipse. I haven't tried it in other Java development environments. Maybe this file can be stored in jdkxxx/JRE/lib in some development environments. Haha ~~~

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.