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 SynthToggleButtonUI extends SynthButtonUI { 24 public static ComponentUI createUI(JComponent b) { 28 return new SynthToggleButtonUI (); 29 } 30 31 protected String getPropertyPrefix() { 32 return "ToggleButton."; 33 } 34 35 void paintBackground(SynthContext context, Graphics g, JComponent c) { 36 context.getPainter().paintToggleButtonBackground(context, g, 0, 0, 37 c.getWidth(), c.getHeight()); 38 } 39 40 public void paintBorder(SynthContext context, Graphics g, int x, 41 int y, int w, int h) { 42 context.getPainter().paintToggleButtonBorder(context, g, x, y, w, h); 43 } 44 } 45 | Popular Tags |