J
Jason Cavett
Is it possible to update a Swing component (such as calling
JTextField.setText(String)) without an event being fired off?
Currently, any call I make to setText fires the DocumentListener on
the JTextField's document.
Basically, I want a way to temporarily disable actions on a
JComponent. Or, if that's not possible, I would like a way to know
what fired the event (AKA, was it me calling "setText" or was it a
user typing on the keyboard) so I can handle it in a different manner
depending on the situation.
JTextField.setText(String)) without an event being fired off?
Currently, any call I make to setText fires the DocumentListener on
the JTextField's document.
Basically, I want a way to temporarily disable actions on a
JComponent. Or, if that's not possible, I would like a way to know
what fired the event (AKA, was it me calling "setText" or was it a
user typing on the keyboard) so I can handle it in a different manner
depending on the situation.