Class BasicLoginPaneUI


public class BasicLoginPaneUI extends LoginPaneUI
Base implementation of the JXLoginPane UI.
Author:
rbair, hb https://github.com/homebeaver (banner as CompoundPainter: ImagePainter + TextPainter)
  • Constructor Details

    • BasicLoginPaneUI

      public BasicLoginPaneUI(JXLoginPane dlg)
      Creates a new instance of BasicLoginDialogUI
      Parameters:
      dlg - JXLoginPane
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
      factory to create BasicLoginDialogUI
      Parameters:
      c - JXLoginPane
      Returns:
      instance of BasicLoginPaneUI
    • installUI

      public void installUI(JComponent c)

      implements javax.swing.plaf.ComponentUI method

      Overrides:
      installUI in class ComponentUI
    • installDefaults

      protected void installDefaults()
      install localized component
    • getBanner

      public Image getBanner()
      Creates default 400x60 Image banner for the login panel.
      Specified by:
      getBanner in class LoginPaneUI
      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

      protected Image getBasicBanner(String bannerText)
      get basic Banner
      Parameters:
      bannerText - text to display
      Returns:
      Image