This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala Swing FormattedTextField inheritance

No replies
mvackel
Joined: 2009-08-03,
User offline. Last seen 1 year 39 weeks ago.

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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland