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: Default button



That's it!! Thank you so much, now it works both in my JFrame and my modal dialogs (should have thought of that).

Josef

Op 7-apr-05 om 18:20 heeft Rob Ross het volgende geschreven:


On Apr 7, 2005, at 1:32 AM, Josef Henryson wrote:

		this.appOpenDialog.setVisible(true);
		this.appOpenDialog.enableDefaultButton();


If your dialog is a modal dialog, then your code blocks after the first line (setVisible(true)). The next line is executed *after* the dialog has been dismissed by the user. Try switching the order of the two lines.


Rob Ross, Senior Software Engineer
E! Networks
email@hidden
---------------------------------------------------
"Beware of he who would deny you access to information, for in his heart he dreams himself your master." -- Commissioner Pravin Lal




_______________________________________________ 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: Default button (From: email@hidden)
 >Re: Default button (From: Dustin Sacks <email@hidden>)
 >Re: Default button (From: Josef Henryson <email@hidden>)
 >Re: Default button (From: Josef Henryson <email@hidden>)
 >Re: Default button (From: Rob Ross <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.