Shortcuts to TextField

I would like to have a mnemonic to navigate more quickly to a particular text field for example

say I have two textfields:

X []

Y []

Where X and Y are the labels for the textfields and [ ] are the textfields.

How would I add a mnemonic to quickly move to X's textfield or to Y's textfield?

Is there something else other than a textfield that allows this sort of navigation?

Thanks,

-frankie

[447 byte] By [Frankie_Liua] at [2007-10-2 4:47:15]
# 1
JLabel has two methods for this purpose: setDisplayedMnemonic, and setLabelFor. You would use it like this:JTextField text = ...JLabel label = ...label.setDisplayedMnemonic('X');label.setLabelFor(text);
happy_hippoa at 2007-7-16 0:52:02 > top of Java-index,Desktop,Core GUI APIs...