1 7 8 package javax.swing.plaf.synth; 9 10 import javax.swing.*; 11 import java.awt.*; 12 import java.awt.event.*; 13 import javax.swing.plaf.*; 14 import java.io.Serializable ; 15 16 17 23 class SynthCheckBoxUI extends SynthRadioButtonUI { 24 25 public static ComponentUI createUI(JComponent b) { 29 return new SynthCheckBoxUI (); 30 } 31 32 protected String getPropertyPrefix() { 33 return "CheckBox."; 34 } 35 36 void paintBackground(SynthContext context, Graphics g, JComponent c) { 37 context.getPainter().paintCheckBoxBackground(context, g, 0, 0, 38 c.getWidth(), c.getHeight()); 39 } 40 41 public void paintBorder(SynthContext context, Graphics g, int x, 42 int y, int w, int h) { 43 context.getPainter().paintCheckBoxBorder(context, g, x, y, w, h); 44 } 45 } 46 | Popular Tags |