Changeset 30749 in osm for applications/editors/josm/plugins/plastic_laf/src
- Timestamp:
- 2014-10-19T18:50:58+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/plastic_laf/src/plastic_laf/Plugin.java
r19469 r30749 1 //License: GPL 1 2 package plastic_laf; 2 3 … … 6 7 import org.openstreetmap.josm.plugins.PluginInformation; 7 8 9 import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; 8 10 import com.jgoodies.looks.plastic.PlasticLookAndFeel; 11 import com.jgoodies.looks.plastic.PlasticXPLookAndFeel; 9 12 13 /** 14 * Plugin that brings JGoodies Plastic Look and Feel to JOSM. 15 */ 10 16 public 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 */ 11 23 public Plugin(PluginInformation info) throws UnsupportedLookAndFeelException { 12 24 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()); 14 28 } 15 29 }
Note:
See TracChangeset
for help on using the changeset viewer.