1 21 22 package org.armedbear.j; 23 24 import java.awt.Graphics ; 25 import javax.swing.JComponent ; 26 import javax.swing.JLabel ; 27 import javax.swing.plaf.ComponentUI ; 28 import javax.swing.plaf.metal.MetalLabelUI ; 29 30 public final class LabelUI extends MetalLabelUI  31 { 32 private static final LabelUI labelUI = new LabelUI(); 33 34 public static ComponentUI createUI(JComponent c) 35 { 36 return labelUI; 37 } 38 39 protected void paintEnabledText(JLabel l, Graphics g, String s, 40 int textX, int textY) 41 { 42 Display.setRenderingHints(g); 43 super.paintEnabledText(l, g, s, textX, textY); 44 } 45 46 47 protected void paintDisabledText(JLabel l, Graphics g, String s, 48 int textX, int textY) 49 { 50 Display.setRenderingHints(g); 51 super.paintDisabledText(l, g, s, textX, textY); 52 } 53 } 54 | Popular Tags |