Re: Can not focus on TextFiled by Mnemonic key
Re: Can not focus on TextFiled by Mnemonic key
Subject : Re: Can not focus on TextFiled by Mnemonic key
From: Jerry <email@hidden >
Date: Thu, 28 Sep 2006 15:37:31 +0100
Delivered-to: email@hidden
Delivered-to: email@hidden
On 28 Sep 2006, at 15:30, Zhu Chenyang wrote:
I have a prolem with focus.
I can focus on the TextFiled by the Mnemonic key of associated label.
Can anyone tell me why? I am a fresh of using Java on Mac OS X.
====================================================
JLabel firstLabel = new JLabel("First Name", JLabel.LEFT);
firstLabel.setDisplayedMnemonic(KeyEvent.VK_F);
firstLabel.setLabelFor(firstField);
====================================================
This doesn't work...
I don't think it's supposed to work. The Mac doesn't use mnemonics. See
http://developer.apple.com/technotes/tn/tn2042.html
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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 © 2011 Apple Inc. All rights reserved.