1 7 8 package javax.swing.plaf.synth; 9 10 import java.awt.*; 11 import java.awt.event.*; 12 import javax.swing.*; 13 import javax.swing.border.*; 14 import javax.swing.plaf.*; 15 import javax.swing.text.View ; 16 17 23 class SynthRadioButtonUI extends SynthToggleButtonUI { 24 25 public static ComponentUI createUI(JComponent b) { 29 return new SynthRadioButtonUI (); 30 } 31 32 protected String getPropertyPrefix() { 33 return "RadioButton."; 34 } 35 36 39 protected Icon getSizingIcon(AbstractButton b) { 40 return getIcon(b); 41 } 42 43 void paintBackground(SynthContext context, Graphics g, JComponent c) { 44 context.getPainter().paintRadioButtonBackground(context, g, 0, 0, 45 c.getWidth(), c.getHeight()); 46 } 47 48 public void paintBorder(SynthContext context, Graphics g, int x, 49 int y, int w, int h) { 50 context.getPainter().paintRadioButtonBorder(context, g, x, y, w, h); 51 } 52 } 53 | Popular Tags |