Mailing Lists: Apple Mailing Lists

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

Button mnemonics on Leopard



Title: Button mnemonics on Leopard

Hi All,

I am still in the process of testing my Swing application on Leopard and I have been reading the Java on Leopard release notes provided by Apple but I am struggling to understand some items and would appreciate a bit of help (it could also be language problems I am not English speaking ;-)

My question refers to the bellow item in the release notes.

On Leopard, my buttons no longer display the mnemonics underline mark.

My understanding of the bellow item underline should appear regardless of Option key being pressed. Is my understanding correct?

Example:

For a button created with

  private JButton send = new JButton(Send);

       

        // Send button.

        send.setEnabled(false);

        send.setMnemonic(KeyEvent.VK_D);

        send.addActionListener(new ActionListener() {

          public void actionPerformed(ActionEvent e) {

            handleSend();

          }

        });

I am expecting the d to have an underline, it no longer does (on Leopard) regardless of state of Option key.

What am I missing here?

Thanks!!

Inbar.

Note: I set my application to use the system look & feel (UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());).

Radar #5042764

Accelerator mnemonic keys are not consistent with the Aqua user interface

Description:

Java no longer paints the underlined mnemonic character for components that have an accelerator key set until the user holds down the "option" key. The same accelerator behavior is still present, but the underline is not drawn on menus or controls until "option" key is held down by the user.

Resolution:

This problem is now fixed.


This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this on behalf of the addressee you must not use, copy, disclose or take action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply email and delete this message. Thank you.



 _______________________________________________
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



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.