Browse Source

rollback

master
MoMeak 7 years ago
parent
commit
eb3b987f71
  1. 12
      designer_base/src/com/fr/design/gui/itextfield/UITextField.java

12
designer_base/src/com/fr/design/gui/itextfield/UITextField.java

@ -61,19 +61,13 @@ public class UITextField extends JTextField implements UIObserver, GlobalNameObs
protected void initListener() { protected void initListener() {
if (shouldResponseChangeListener()) { if (shouldResponseChangeListener()) {
getDocument().addDocumentListener(new DocumentListener() { addFocusListener(new FocusListener() {
@Override @Override
public void insertUpdate(DocumentEvent e) { public void focusGained(FocusEvent e) {
attributeChange();
}
@Override
public void removeUpdate(DocumentEvent e) {
attributeChange();
} }
@Override @Override
public void changedUpdate(DocumentEvent e) { public void focusLost(FocusEvent e) {
attributeChange(); attributeChange();
} }
}); });

Loading…
Cancel
Save