Class FlatPasswordFieldUI

    • Field Detail

      • KEY_REVEAL_SELECTED

        private static final java.lang.String KEY_REVEAL_SELECTED
        See Also:
        Constant Field Values
      • echoChar

        private java.lang.Character echoChar
      • showCapsLock

        protected boolean showCapsLock
      • showRevealButton

        protected boolean showRevealButton
        Since:
        2
      • capsLockIcon

        protected javax.swing.Icon capsLockIcon
      • revealIcon

        protected javax.swing.Icon revealIcon
        Since:
        2
      • capsLockListener

        private java.awt.event.KeyListener capsLockListener
      • capsLockIconShared

        private boolean capsLockIconShared
      • revealButton

        private javax.swing.JToggleButton revealButton
      • uninstallEchoChar

        private boolean uninstallEchoChar
    • Constructor Detail

      • FlatPasswordFieldUI

        public FlatPasswordFieldUI()
    • Method Detail

      • createUI

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

        protected java.lang.String getPropertyPrefix()
        Overrides:
        getPropertyPrefix in class javax.swing.plaf.basic.BasicTextFieldUI
      • installKeyboardActions

        protected void installKeyboardActions()
        Overrides:
        installKeyboardActions in class javax.swing.plaf.basic.BasicTextUI
      • applyStyleProperty

        protected java.lang.Object applyStyleProperty​(java.lang.String key,
                                                      java.lang.Object value)
        Overrides:
        applyStyleProperty in class FlatTextFieldUI
        Since:
        2
      • create

        public javax.swing.text.View create​(javax.swing.text.Element elem)
        Specified by:
        create in interface javax.swing.text.ViewFactory
        Overrides:
        create in class javax.swing.plaf.basic.BasicTextFieldUI
      • paintIcons

        protected void paintIcons​(java.awt.Graphics g,
                                  java.awt.Rectangle r)
        Description copied from class: FlatTextFieldUI
        Paints the leading and trailing icons in the given rectangle. The rectangle is updated by this method so that subclasses can use it without painting over leading or trailing icons.
        Overrides:
        paintIcons in class FlatTextFieldUI
        Since:
        2
      • paintCapsLock

        protected void paintCapsLock​(java.awt.Graphics g,
                                     java.awt.Rectangle r)
        Since:
        2
      • isCapsLockVisible

        protected boolean isCapsLockVisible()
        Since:
        1.4
      • installRevealButton

        protected void installRevealButton()
        Since:
        2
      • createRevealButton

        protected javax.swing.JToggleButton createRevealButton()
        Since:
        2
      • updateRevealButton

        protected void updateRevealButton()
        Since:
        2.5
      • updateEchoChar

        private void updateEchoChar​(boolean selected)
      • uninstallRevealButton

        protected void uninstallRevealButton()
        Since:
        2