Mailing Lists: Apple Mailing Lists

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

Re: Newbie question about Window.hide(): Workaround




On 14 mar 2006, at 16.28, Gary Ford wrote:

Thanks to those who made suggestions regarding my problem with
Window.hide().

A simple workaround that solves the problem for me is to do
setEnabled(false) along with each hide(), and setEnabled(true) along
with each show(). (I only make those calls in one place each.)
Apparently, the code to recognize and dispatch mouseEvents checks for
enabled but not visible.

So far, I have not encountered any undesirable side effects from this
workaround.

More generally, subclasses of JFrame and JDialog could override hide()
and show() to include the disabling and enabling.

Gary Ford
Plaid Flannel Software
_______________________________________________
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/tommy.nordgren% 40chello.se


This email sent to email@hidden

------------------------------------- This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren email@hidden



_______________________________________________
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
References: 
 >Re: Newbie question about Window.hide(): Workaround (From: Gary Ford <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.