1 7 package javax.swing.plaf.synth; 8 9 import java.awt.*; 10 import javax.swing.*; 11 import javax.swing.plaf.ComponentUI ; 12 13 19 class SynthFormattedTextFieldUI extends SynthTextFieldUI { 20 26 public static ComponentUI createUI(JComponent c) { 27 return new SynthFormattedTextFieldUI (); 28 } 29 30 37 protected String getPropertyPrefix() { 38 return "FormattedTextField"; 39 } 40 41 void paintBackground(SynthContext context, Graphics g, JComponent c) { 42 context.getPainter().paintFormattedTextFieldBackground(context, g, 0, 43 0, c.getWidth(), c.getHeight()); 44 } 45 46 public void paintBorder(SynthContext context, Graphics g, int x, 47 int y, int w, int h) { 48 context.getPainter().paintFormattedTextFieldBorder(context, g, x, y, 49 w, h); 50 } 51 } 52 | Popular Tags |