javax.swing.plaf.synth


  1. Creating a Synth UI

import javax.swing.plaf.synth.SynthLookAndFeel;
import javax.swing.UIManager;

public class SynthExample {

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new SynthLookAndFeel());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
  1. Setting the Synth Style

import javax.swing.plaf.synth.SynthLookAndFeel;
import javax.swing.UIManager;

public class SynthStyleExample {

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(new SynthLookAndFeel());
            UIManager.put("synth.style", "GTK+");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
  1. Customizing the Synth Look and Feel

  1. Creating a custom Synth style factory

  1. Using the Synth API to create custom UI components

  1. Using the Synth API to customize the appearance of existing UI components

  1. Using the Synth API to load a custom theme

  1. Using the Synth API to create a custom menu

  1. Using the Synth API to create a custom toolbar