Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JTextField String drop notification



So both Apple (with 1.4) and Sun (with 1.5) have now added automatic String drop support to all JTextFields. Unfortunately, I can't figure out a way to get notification that a string has been dropped on a text field. There is no support for a ChangeListener, the ActionListener isn't notified, the text field doesn't gain focus and I can't differentiate DocumentListener changes from those made by updating the text field or performing edits on the text field.

The only solution that I see, that I hate, is that I could override the default textfield DropTarget on all text fields to catch the drop () myself. Any good Swing solution that I'm missing? Does everyone (anyone? :-) else handle text field string drops correctly in their apps?

jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.