• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA GUI builder - mnemonic for JTextField

 
Kai Witte
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I use Idea 4.5 @Win2k with the GUI designer.

I have a JPanel with a titled border. The title is being read from a resource bundle. Inside the JPanel there is a JTextField.

I want to associate a mnemonic to the JTextField. The mnemonic shall be displayed in the border title.

I tried to put an "&" in front of the corresponding letter in the resource file (.properties). That only displayed the word with the "&" literally.

How can I do what I want?

Conan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic