Package editor

Class LabButtonUI


  • public class LabButtonUI
    extends WindowsButtonUI
    Needed to properly handle painting of disabled text
    • Constructor Summary

      Constructors 
      Constructor Description
      LabButtonUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected void paintButtonPressed​(java.awt.Graphics g, javax.swing.AbstractButton b)  
      protected void paintText​(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text)  
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LabButtonUI

        public LabButtonUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • paintButtonPressed

        protected void paintButtonPressed​(java.awt.Graphics g,
                                          javax.swing.AbstractButton b)
        Overrides:
        paintButtonPressed in class WindowsButtonUI
      • paintText

        protected void paintText​(java.awt.Graphics g,
                                 javax.swing.AbstractButton b,
                                 java.awt.Rectangle textRect,
                                 java.lang.String text)
        Overrides:
        paintText in class javax.swing.plaf.basic.BasicButtonUI