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 RubyTheme extends DefaultMetalTheme { 54 55 public String getName() { return "Ruby"; } 56 57 private final ColorUIResource primary1 = new ColorUIResource(80, 10, 22); 58 private final ColorUIResource primary2 = new ColorUIResource(193, 10, 44); 59 private final ColorUIResource primary3 = new ColorUIResource(244, 10, 66); 60 61 protected ColorUIResource getPrimary1() { return primary1; } 62 protected ColorUIResource getPrimary2() { return primary2; } 63 protected ColorUIResource getPrimary3() { return primary3; } 64 65 } 66 | Popular Tags |