| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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. -Werner Josef Henryson wrote: >I'm trying to set a button to have the 'blue' default look and listen to the 'Enter' key. I use this code: > >JButton okButton = new JButton(app.getActions().getActionConsultOK()); > okButton.setDefaultCapable(true); > app.getRootPane().setDefaultButton(okButton); > >But it still looks the same as the other buttons and does not have the >desired behaviour. > >Does anyone know something that could be of conflict when setting this? > >Thanks, Josef _______________________________________________ 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: | |
| >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.