Article View: borland.public.jbuilder.java.swing
Article #7945JPopupMenu key handling
From: Ernesto Bascon Pantoja
Date: Mon, 13 Nov 2000 00:00
Date: Mon, 13 Nov 2000 00:00
13 lines
965 bytes
965 bytes
Hi: I have a JPopupMenu, I want to change the selected item with the arrow keys and I want to fire an ActionPerformed event with the enter key; I added a KeyListener to my popup menu and changed the selectedIndex in the SingleSelectionModel, but it does not work; I also added a MenuKeyListener to every menuitem and it does not work either. How can I implement it? Thanks in advance Ernesto
Technical Details
Message-ID:
<3A1061B9.1D1B3DB5@ucbcba.edu.bo>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,bfc05519c86ca630,start X-Google-Attributes: gid111d45,public From: Ernesto Bascon Pantoja <bascone@ucbcba.edu.bo> Subject: JPopupMenu key handling Date: 2000/11/13 Message-ID: <3A1061B9.1D1B3DB5@ucbcba.edu.bo> X-Deja-AN: 693228654 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: IIIA - pirAMide Project - UCB Cbba. Mime-Version: 1.0 Reply-To: bascone@ucbcba.edu.bo Newsgroups: borland.public.jbuilder.java.swing