| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The problem with show() and hide() isn't that visibility is a property, it's that they're less general than setVisible(), using two methods where one will suffice, and less consistent, since the "query" method (isVisible) isn't as obviously related to the "update" methods (show and hide). It would be perfectly reasonable to have, for example, enable() and disable() methods instead of setEnabled(). The logic that motivates adopting setVisible() in preference to show() and hide() applies just as much to windows as to any other component that can be shown and hidden.
How does "show()" make things any clearer than "setVisible(true)"? *Neither* one says "doesn't return until the dialog closes". You *still* have to remember that the call behaves differently when used with modal dialogs.
-Rolf -- Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK. _______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.