Methods Summary |
---|
public javax.swing.text.View | create(javax.swing.text.Element elem)Creates a view (PasswordView) for an element.
return new PasswordView(elem);
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)Creates a UI for a JPasswordField.
return new SynthPasswordFieldUI();
|
protected java.lang.String | getPropertyPrefix()Fetches the name used as a key to look up properties through the
UIManager. This is used as a prefix to all the standard
text properties.
return "PasswordField";
|
protected void | installKeyboardActions()
super.installKeyboardActions();
ActionMap map = SwingUtilities.getUIActionMap(getComponent());
if (map != null && map.get(DefaultEditorKit.selectWordAction) != null) {
Action a = map.get(DefaultEditorKit.selectLineAction);
if (a != null) {
map.put(DefaultEditorKit.selectWordAction, a);
}
}
|
void | paintBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, javax.swing.JComponent c)
context.getPainter().paintPasswordFieldBackground(context, g, 0, 0,
c.getWidth(), c.getHeight());
|
public void | paintBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
context.getPainter().paintPasswordFieldBorder(context, g, x, y, w, h);
|