| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Dustin,
Your trick works fine for my JFrame. Thanks!
But for my JDialogs it doesn't happen except the first one that is a login dialog. It seems like something in my code is in conflict with this behaviour. I got it to work for the login dialog after removing the line 'dialog.dispose()' which I called last in the constructor and then I called 'dialog.setVisible()' to show it. So I removed all 'dispose()' calls on the other dialogs but without success.
Anyone else with experience on this?
Regards, Josef
Op 5-apr-05 om 23:20 heeft Dustin Sacks het volgende geschreven:
I have been able the get a default button to show the blue pulsing look on a JFrame. The key seems to be setting the default button after the frame is visible. e.g.:
jframe.show();
jframe.getRootPane().setDefaultButton(button);
If you show/hide the frame then you will have to set the default button every time it gets made visible.
--
Dustin Sacks
Sillysoft Games
http://sillysoft.net
On Apr 5, 2005, at 4:40 AM, email@hidden wrote:
The JButton needs to be on a JDialog.
If it is on a JFrame the Aqua Look and Feel will not change its appearance.
The behaviour should be correct though. Press the Enter key and the button
fires the action performed event.
_______________________________________________
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
_______________________________________________
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
_______________________________________________ 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>) |
| 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.