Article View: borland.public.jbuilder.java.swing
Article #12178Focus and JMenu - does anyone know how to solve this please?
From: kerbel
Date: Tue, 09 Feb 1999 00:00
Date: Tue, 09 Feb 1999 00:00
23 lines
1319 bytes
1319 bytes
Hi Using Java 2 and Swing : How is it possible to force the focus to be sent to a menu when it is "apparently" activated using a mnemonic. When the focus is in a JTextPane within the frame, I use the mnemonic and the menu displays, however, the focus is still within the JTextPane and I cannot select any menu items using the arrow keys - only the mouse works. When I exit from the menu, the mnemonic character is even displayed in the text pane. Is there any way of avoiding this? It seems as though the focus is not being sent correctly to the selected menu unless I use the mouse. Many thanks in advance for any suggestions Uri Kerbel -- uri@kalbi.demon.co.uk www.kalbi.demon.co.uk (Java Page) --
Technical Details
Message-ID:
<36c0bede.36949383@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,504cd2a8d2fe90cb,start X-Google-Attributes: gid111d45,public From: kerbel@kalbi.demon.co.uk Subject: Focus and JMenu - does anyone know how to solve this please? Date: 1999/02/09 Message-ID: <36c0bede.36949383@news.demon.co.uk> X-Deja-AN: 442588183 X-NNTP-Posting-Host: kalbi.demon.co.uk:158.152.128.133 X-Trace: news.demon.co.uk 918601465 nnrp-01:22431 NO-IDENT kalbi.demon.co.uk:158.152.128.133 Reply-To: kerbel@kalbi.demon.co.uk Newsgroups: borland.public.jbuilder.java.swing X-Complaints-To: abuse@demon.net