|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
package com.fr.design.gui.ipasswordfield; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.common.inputevent.InputEventBaseOnOS; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.JPasswordField; |
|
|
|
|
import javax.swing.text.Document; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
|
@ -21,26 +22,31 @@ public class UIPassWordField extends JPasswordField {
|
|
|
|
|
|
|
|
|
|
public UIPassWordField() { |
|
|
|
|
super(); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
|
addRollOverListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UIPassWordField(String text) { |
|
|
|
|
super(text); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
|
addRollOverListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UIPassWordField(int columns) { |
|
|
|
|
super(columns); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
|
addRollOverListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UIPassWordField(String text, int columns) { |
|
|
|
|
super(text, columns); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
|
addRollOverListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UIPassWordField(Document doc, String txt, int columns) { |
|
|
|
|
super(doc, txt, columns); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
|
addRollOverListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|