- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala Swing FormattedTextField inheritance
Tue, 2012-01-17, 20:38
Hello,
the Scala Swing class FormattedTextField inherits from the class
TextComponent but in Swing (peer class JFormettedTextField) inherits
from JTextField.
When using the Scala FormattedTextField it does not publish the
DoneEdit event that is published by the Scala TextField class.
This makes the usage of the class very limited.
TextComponent publishes:
CaretUpdate
ValueChanged (for the DocumentEvent)
TextField publishes:
EditDone (for the FocusEvent)
Shouldn't the Scala FormattedTextField inherit from TextField
directly?
Thank you,
Marcos Ackel