Package UI
Class BlueishButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- UI.BlueishButtonUI
-
- Direct Known Subclasses:
BLeveledButtonUIX
public class BlueishButtonUI extends javax.swing.plaf.basic.BasicButtonUIBlueishButtonUI.java This class extends BasicButtonUI to create a custom button UI with a blueish theme. It provides a unique look and feel for buttons in a Swing application.
-
-
Constructor Summary
Constructors Constructor Description BlueishButtonUI()Constructs a BlueishButtonUI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinstallUI(javax.swing.JComponent c)Installs the UI for a specified component.voidpaint(java.awt.Graphics g, javax.swing.JComponent c)Paints the specified component.-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
-
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
Installs the UI for a specified component. Sets the rollover enabled, makes the button non-opaque, and adjusts text position.- Overrides:
installUIin classjavax.swing.plaf.basic.BasicButtonUI- Parameters:
c- the component where this UI will be installed
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)Paints the specified component. Changes the background and border colors based on the button's state.- Overrides:
paintin classjavax.swing.plaf.basic.BasicButtonUI- Parameters:
g- the Graphics context in which to paintc- the component being painted
-
-