File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA GUI builder - mnemonic for JTextField

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

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?

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic