Package org.jdesktop.swingx.plaf.basic
Class BasicLoginPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.jdesktop.swingx.plaf.LoginPaneUI
org.jdesktop.swingx.plaf.basic.BasicLoginPaneUI
Base implementation of the
JXLoginPane
UI.- Author:
- rbair, hb https://github.com/homebeaver (banner as CompoundPainter: ImagePainter + TextPainter)
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of BasicLoginDialogUI -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
factory to create BasicLoginDialogUICreates default 400x60 Image banner for the login panel.protected Image
getBasicBanner
(String bannerText) get basic Bannerprotected void
install localized componentvoid
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, uninstallUI, update
-
Constructor Details
-
BasicLoginPaneUI
Creates a new instance of BasicLoginDialogUI- Parameters:
dlg
- JXLoginPane
-
-
Method Details
-
createUI
factory to create BasicLoginDialogUI- Parameters:
c
- JXLoginPane- Returns:
- instance of BasicLoginPaneUI
-
installUI
implements javax.swing.plaf.ComponentUI method
- Overrides:
installUI
in classComponentUI
-
installDefaults
protected void installDefaults()install localized component -
getBanner
Creates default 400x60 Image banner for the login panel.- Specified by:
getBanner
in classLoginPaneUI
- Returns:
- The Image to use as the banner for the JXLoginPane. If this method returns null, then no banner will be shown.
- See Also:
-
getBasicBanner
get basic Banner- Parameters:
bannerText
- text to display- Returns:
- Image
-