Browse Source

主要修改:

1.将MacOS系统下的粘贴键添加到UIPasswordField的InputMap中,使其支持command+v为粘贴键
2.修改导包
feature/big-screen
Yvan 4 years ago
parent
commit
b0fe3f1243
  1. 6
      designer-base/src/main/java/com/fr/design/gui/ipasswordfield/UIPassWordField.java

6
designer-base/src/main/java/com/fr/design/gui/ipasswordfield/UIPassWordField.java

@ -22,35 +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();
}
private void addRollOverListener() {
InputEventBaseOnOS.addBasicEditInputMap(this);
this.addMouseListener(new MouseAdapter() {
@Override
public void mouseEntered(MouseEvent e) {

Loading…
Cancel
Save