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 ComponentUIfactory to create BasicLoginDialogUICreates default 400x60 Image banner for the login panel.protected ImagegetBasicBanner(String bannerText) get basic Bannerprotected voidinstall localized componentvoidMethods 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:
installUIin classComponentUI
-
installDefaults
protected void installDefaults()install localized component -
getBanner
Creates default 400x60 Image banner for the login panel.- Specified by:
getBannerin 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
-