1 36 37 40 41 import javax.swing.plaf.*; 42 import javax.swing.plaf.metal.*; 43 import javax.swing.*; 44 import javax.swing.border.*; 45 import java.awt.*; 46 47 53 public class EmeraldTheme extends DefaultMetalTheme { 54 55 public String getName() { return "Emerald"; } 56 57 private final ColorUIResource primary1 = new ColorUIResource(51, 142, 71); 58 private final ColorUIResource primary2 = new ColorUIResource(102, 193, 122); 59 private final ColorUIResource primary3 = new ColorUIResource(153, 244, 173); 60 61 protected ColorUIResource getPrimary1() { return primary1; } 62 protected ColorUIResource getPrimary2() { return primary2; } 63 protected ColorUIResource getPrimary3() { return primary3; } 64 65 } 66 | Popular Tags |