1 30 31 package com.jgoodies.looks.plastic; 32 33 import javax.swing.UIDefaults ; 34 35 42 public class Plastic3DLookAndFeel extends PlasticLookAndFeel { 43 44 47 public Plastic3DLookAndFeel() { 48 if (null == getMyCurrentTheme()) 49 setMyCurrentTheme(createMyDefaultTheme()); 50 } 51 52 public String getID() { 53 return "JGoodies Plastic 3D"; 54 } 55 56 public String getName() { 57 return "JGoodies Plastic 3D"; 58 } 59 60 public String getDescription() { 61 return "The JGoodies Plastic 3D Look and Feel" 62 + " - \u00a9 2001-2005 JGoodies Karsten Lentzsch"; 63 } 64 65 protected boolean is3DEnabled() { 66 return true; 67 } 68 69 74 protected void initComponentDefaults(UIDefaults table) { 75 super.initComponentDefaults(table); 76 77 Object menuBarBorder = PlasticBorders.getThinRaisedBorder(); 78 Object toolBarBorder = PlasticBorders.getThinRaisedBorder(); 79 80 Object [] defaults = { 81 "MenuBar.border", menuBarBorder, 82 "ToolBar.border", toolBarBorder, 83 }; 84 table.putDefaults(defaults); 85 } 86 87 protected static void installDefaultThemes() {} 88 } | Popular Tags |