|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|