๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10565

"Mnemonic-key" appears in JTextField

#10565
From: Alex
Date: Thu, 09 Sep 1999 00:00
18 lines
1027 bytes
Hi everybody,

I want the user to give me some info in a JDialog window. I added some
JTextFields and a JButton (OK).
Then I set a mnemonic for the Button:

"button.setMenemonic ('o');"

When the user has entered some text into a JTextField and then presses
"ALT+O" to activate the OK-Button,
the letter "o" is added to the text in the JTextField (the one with the
focus) before the button๏ฟฝs actionPerformed method is executed.


What can I do against that ?

Thank you very much for your help !
Alex.
Technical Details
Message-ID: <7r8pk9$8k014@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,d2655702133b60a3,start
X-Google-Attributes: gid111d45,public
From: "Alex" <alexbged@linux.zrz.tu-berlin.de>
Subject: "Mnemonic-key" appears in JTextField
Date: 1999/09/09
Message-ID: <7r8pk9$8k014@forums.borland.com>
X-Deja-AN: 523028999
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing