1 35 36 39 package demo.swingset; 40 import swingwtx.swing.plaf.*; 41 import swingwtx.swing.plaf.metal.*; 42 import swingwtx.swing.*; 43 import swingwtx.swing.border.*; 44 import swingwt.awt.*; 45 46 52 public class RubyTheme extends DefaultMetalTheme { 53 54 public String getName() { return "Ruby"; } 55 56 private final ColorUIResource primary1 = new ColorUIResource(80, 10, 22); 57 private final ColorUIResource primary2 = new ColorUIResource(193, 10, 44); 58 private final ColorUIResource primary3 = new ColorUIResource(244, 10, 66); 59 60 protected ColorUIResource getPrimary1() { return primary1; } 61 protected ColorUIResource getPrimary2() { return primary2; } 62 protected ColorUIResource getPrimary3() { return primary3; } 63 64 } 65 | Popular Tags |