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