Search in sources :

Example 1 with PlasticXPLookAndFeel

use of com.jgoodies.looks.plastic.PlasticXPLookAndFeel in project SIMRacingApps by SIMRacingApps.

the class MainFrame method createInstance.

public static void createInstance() {
    try {
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground", "true");
        // JGoodies
        // menu icons
        Options.setDefaultIconSize(new Dimension(16, 16));
        Options.setUseNarrowButtons(false);
        Options.setPopupDropShadowEnabled(true);
        UIManager.setLookAndFeel(System.getProperty("os.name").toLowerCase().startsWith("windows") ? new WindowsLookAndFeel() : new PlasticXPLookAndFeel());
        _instance = new MainFrame();
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : PlasticXPLookAndFeel(com.jgoodies.looks.plastic.PlasticXPLookAndFeel) Dimension(java.awt.Dimension) WindowsLookAndFeel(com.jgoodies.looks.windows.WindowsLookAndFeel) ExecException(net.sf.launch4j.ExecException) InvariantViolationException(net.sf.launch4j.binding.InvariantViolationException) BuilderException(net.sf.launch4j.BuilderException) ConfigPersisterException(net.sf.launch4j.config.ConfigPersisterException) BindingException(net.sf.launch4j.binding.BindingException)

Example 2 with PlasticXPLookAndFeel

use of com.jgoodies.looks.plastic.PlasticXPLookAndFeel in project beast-mcmc by beast-dev.

the class MainFrame method createInstance.

public static void createInstance() {
    try {
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground", "true");
        // JGoodies
        // menu icons
        Options.setDefaultIconSize(new Dimension(16, 16));
        Options.setUseNarrowButtons(false);
        Options.setPopupDropShadowEnabled(true);
        UIManager.setLookAndFeel(System.getProperty("os.name").toLowerCase().startsWith("windows") ? new WindowsLookAndFeel() : new PlasticXPLookAndFeel());
        _instance = new MainFrame();
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : PlasticXPLookAndFeel(com.jgoodies.looks.plastic.PlasticXPLookAndFeel) Dimension(java.awt.Dimension) WindowsLookAndFeel(com.jgoodies.looks.windows.WindowsLookAndFeel) ExecException(net.sf.launch4j.ExecException) InvariantViolationException(net.sf.launch4j.binding.InvariantViolationException) BuilderException(net.sf.launch4j.BuilderException) ConfigPersisterException(net.sf.launch4j.config.ConfigPersisterException) BindingException(net.sf.launch4j.binding.BindingException)

Example 3 with PlasticXPLookAndFeel

use of com.jgoodies.looks.plastic.PlasticXPLookAndFeel in project cogtool by cogtool.

the class MainFrame method createInstance.

public static void createInstance() {
    try {
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground", "true");
        // JGoodies
        // menu icons
        Options.setDefaultIconSize(new Dimension(16, 16));
        Options.setUseNarrowButtons(false);
        Options.setPopupDropShadowEnabled(true);
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        _instance = new MainFrame();
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : PlasticXPLookAndFeel(com.jgoodies.looks.plastic.PlasticXPLookAndFeel) Dimension(java.awt.Dimension) ExecException(net.sf.launch4j.ExecException) InvariantViolationException(net.sf.launch4j.binding.InvariantViolationException) BuilderException(net.sf.launch4j.BuilderException) ConfigPersisterException(net.sf.launch4j.config.ConfigPersisterException) BindingException(net.sf.launch4j.binding.BindingException)

Example 4 with PlasticXPLookAndFeel

use of com.jgoodies.looks.plastic.PlasticXPLookAndFeel in project megameklab by MegaMek.

the class MainFrame method createInstance.

public static void createInstance() {
    try {
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground", "true");
        // JGoodies
        // menu icons
        Options.setDefaultIconSize(new Dimension(16, 16));
        Options.setUseNarrowButtons(false);
        Options.setPopupDropShadowEnabled(true);
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        _instance = new MainFrame();
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : PlasticXPLookAndFeel(com.jgoodies.looks.plastic.PlasticXPLookAndFeel) Dimension(java.awt.Dimension) ExecException(net.sf.launch4j.ExecException) InvariantViolationException(net.sf.launch4j.binding.InvariantViolationException) BuilderException(net.sf.launch4j.BuilderException) ConfigPersisterException(net.sf.launch4j.config.ConfigPersisterException) BindingException(net.sf.launch4j.binding.BindingException)

Example 5 with PlasticXPLookAndFeel

use of com.jgoodies.looks.plastic.PlasticXPLookAndFeel in project chipKIT32-MAX by chipKIT32.

the class MainFrame method createInstance.

public static void createInstance() {
    try {
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground", "true");
        // JGoodies
        // menu icons
        Options.setDefaultIconSize(new Dimension(16, 16));
        Options.setUseNarrowButtons(false);
        Options.setPopupDropShadowEnabled(true);
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        _instance = new MainFrame();
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : PlasticXPLookAndFeel(com.jgoodies.looks.plastic.PlasticXPLookAndFeel) Dimension(java.awt.Dimension) ExecException(net.sf.launch4j.ExecException) InvariantViolationException(net.sf.launch4j.binding.InvariantViolationException) BuilderException(net.sf.launch4j.BuilderException) ConfigPersisterException(net.sf.launch4j.config.ConfigPersisterException) BindingException(net.sf.launch4j.binding.BindingException)

Aggregations

PlasticXPLookAndFeel (com.jgoodies.looks.plastic.PlasticXPLookAndFeel)5 Dimension (java.awt.Dimension)5 BuilderException (net.sf.launch4j.BuilderException)5 ExecException (net.sf.launch4j.ExecException)5 BindingException (net.sf.launch4j.binding.BindingException)5 InvariantViolationException (net.sf.launch4j.binding.InvariantViolationException)5 ConfigPersisterException (net.sf.launch4j.config.ConfigPersisterException)5 WindowsLookAndFeel (com.jgoodies.looks.windows.WindowsLookAndFeel)2