×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




David Gibbs wrote:
I've found that, when the OK button is clicked, sometimes the controls
on the page are disposed. This obviously causes problems when I try to
retrieve information from those controls.

Ok, I've narrowed this down a bit more ... it appears that the focusLost
event is firing when I don't expect it.

I've got a FocusAdapter attached to a text field that is supposed to
interactively validate the information in the field, when the field is
exited.

Problem is ... when I change the field, and click the OK button, the
focusLost method is firing when a widget that the method references is
disposed.

I would expect the focusLost method to be invoked before the OK button's
selected method is invoked (thus, none of the widgets would be disposed
yet).

FWIW: I do have the wantAutomaticValidManagement method returning true.
Also, the verifyPageContents method in the SystemBasePropertyPage
doesn't seem to be firing at all.

david


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.