🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Typing in JComboBox doesn't cause the keyTyped event to be fired

#9011
From: Andreas Schnell
Date: Wed, 31 May 2000 00:00
26 lines
1346 bytes
Christer Brattlund <christer.brattlund@REMOVE_THIS.aerotechtelub.se> schrieb
in im Newsbeitrag: 8gg5un$cs74@bornews.borland.com...
> Ok, I found the answer in a message posted here earlier:
>
>  ...
>   JTextField tf = (JTextField)cb.getEditor().getEditorComponent();
>   tf.addMouseListener(new java.awt.event.MouseAdapter() {...});
>   tf.addKeyListener(...);

this works fine to get the input in a ComboBox, but it don't react on
VK_TAB. For JTextFields is used

field = new JTextField()
{
    public boolean isManagingFocus()
   {
       return true;
   }
};

to manage the Focus myself, but what about JComboBoxes. I expect to do the
same for the EditorComponent of a JComboBox, but how??


Andreas Schnell
Technical Details
Message-ID: <3934dd8a@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8gg2u8$csb4@bornews.borland.com> <8gg5un$cs74@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d1eaa09f97497005
X-Google-Attributes: gid111d45,public
From: "Andreas Schnell" <Andreas.Schnell@innovations.de>
Subject: Re: Typing in JComboBox doesn't cause the keyTyped event to be fired
Date: 2000/05/31
Message-ID: <3934dd8a@dnews>
X-Deja-AN: 629386677
References: <8gg2u8$csb4@bornews.borland.com> <8gg5un$cs74@bornews.borland.com>
X-Trace: 31 May 2000 02:38:18 -0800, 127.0.0.1
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300