In Linux, the default swing theme is really ugly. If it is not in harmony with the system GTK theme, the font is quite awkward.
About howCodeCustomized swing themes, many of which are available on the InternetArticle. But after all, this is a solution from the developer's standpoint, and it won't work as a user.
In fact, Java tutorial has a detailed introduction to the "how to set the (swing) Look and Feel" issue. As mentioned in "specifying the look and feel: swing. properties file", you can modify the swing. properties file to set the default topic. Swing. properties is not mentioned in any text, but it is clear that this is a configuration file and should be in the/etc directory.
The final swing. properties I found opened the file in the/etc/java-6-openjdk directory with the following content:
# Uncomment to set the default look and feel to GTK
# Swing. defaultlaf = com. Sun. java. Swing. plaf. GTK. gtklookandfeel
The Code already exists (if not, add it), but it is commented out. Just remove the comment.
So far, swing-based JavaProgramIn Linux, it seems much more harmonious.