Ignore:
Timestamp:
2014-10-19T18:50:58+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plastic_laf] fix plugin, update to latest version of look and feel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/plastic_laf/src/plastic_laf/Plugin.java

    r19469 r30749  
     1//License: GPL
    12package plastic_laf;
    23
     
    67import org.openstreetmap.josm.plugins.PluginInformation;
    78
     9import com.jgoodies.looks.plastic.Plastic3DLookAndFeel;
    810import com.jgoodies.looks.plastic.PlasticLookAndFeel;
     11import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
    912
     13/**
     14 * Plugin that brings JGoodies Plastic Look and Feel to JOSM.
     15 */
    1016public class Plugin {
     17
     18        /**
     19         * Constructs a new {@code Plugin}.
     20         * @param info plugin info
     21         * @throws UnsupportedLookAndFeelException if look and feel cannot be set
     22         */
    1123    public Plugin(PluginInformation info) throws UnsupportedLookAndFeelException {
    1224        UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader());
    13         UIManager.setLookAndFeel(new PlasticLookAndFeel());
     25        UIManager.installLookAndFeel("Plastic", PlasticLookAndFeel.class.getName());
     26        UIManager.installLookAndFeel("Plastic3D", Plastic3DLookAndFeel.class.getName());
     27        UIManager.installLookAndFeel("PlasticXP", PlasticXPLookAndFeel.class.getName());
    1428    }
    1529}
Note: See TracChangeset for help on using the changeset viewer.