How to set look and feel on Java Swing applications

Use the method setLookAndFeel like the following to change Java Swing applications’ appearance

try {
} catch (Exception ex) {
//Just print stacktrace here since it's an example.

And if you get an exception like the following one while trying to integrate SyntheticaStandardLookAndFeel for your application;

java.text.ParseException: Error parsing: org.xml.sax.SAXException: bind: unknown type REGİON null
    at javax.swing.plaf.synth.SynthParser.parse(
    at javax.swing.plaf.synth.SynthLookAndFeel.load(
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.loadXMLConfig(
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.<init>(
    at de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel.<init>(
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    at java.lang.reflect.Constructor.newInstance(
    at java.lang.Class.newInstance0(
    at java.lang.Class.newInstance(
    at javax.swing.UIManager.setLookAndFeel(
    at examples.WelcomeForm.main(

You should change your current locale to English before setting Look and Feel like the code below;

try {
} catch (Exception ex) {
//Just print stacktrace here since it's an example.

example Look and Feel class names;


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s