|
|
@ -22,30 +22,33 @@ public class UIPassWordField extends JPasswordField { |
|
|
|
|
|
|
|
|
|
|
|
public UIPassWordField() { |
|
|
|
public UIPassWordField() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
init(); |
|
|
|
addRollOverListener(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIPassWordField(String text) { |
|
|
|
public UIPassWordField(String text) { |
|
|
|
super(text); |
|
|
|
super(text); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
init(); |
|
|
|
addRollOverListener(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIPassWordField(int columns) { |
|
|
|
public UIPassWordField(int columns) { |
|
|
|
super(columns); |
|
|
|
super(columns); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
init(); |
|
|
|
addRollOverListener(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIPassWordField(String text, int columns) { |
|
|
|
public UIPassWordField(String text, int columns) { |
|
|
|
super(text, columns); |
|
|
|
super(text, columns); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
init(); |
|
|
|
addRollOverListener(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIPassWordField(Document doc, String txt, int columns) { |
|
|
|
public UIPassWordField(Document doc, String txt, int columns) { |
|
|
|
super(doc, txt, columns); |
|
|
|
super(doc, txt, columns); |
|
|
|
|
|
|
|
init(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 每个构造方法里都需要做的一些操作 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public void init() { |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
addRollOverListener(); |
|
|
|
addRollOverListener(); |
|
|
|
} |
|
|
|
} |
|
|
|