Article View: borland.public.jbuilder.java.swing
Article #10780Re: Problem with Event-Handling
From: Vincent Nuijten
Date: Tue, 10 Aug 1999 00:00
Date: Tue, 10 Aug 1999 00:00
35 lines
2023 bytes
2023 bytes
the problem is that the inputpanel cannot get the focus. therefore the method isFocusTraversable needs to be overridden, always return true. now whenever you know that the panel should get the focus, for example when one of it's components is clicked than the panel must call its method requestFocus. so you shoiuld add focuslisteners to your textfields calling the panel requestFocus method, and a mouselistener to your panel doing the same. i gues this will solve you problem if any more problems occur please let me know greetings casper casper@stack.nl Marco L๏ฟฝbbering wrote in message <7ns5be$c6921@forums.borland.com>... >Hi >I build an application with a jtable and a inputpanel on an other panel. >On the inputpanel, which extends jPanel, there a few textfields. Now I want >to update the table when a user writes some text in the textfields on the >inputpanel. So I added a keylistener to the inputpanel (with the help of the >JBuilder design view). But when I execute the application and write text in >the textfields on the inputpanel nothing happens. I tried to add keylistener >to every textfield on my inputpanel, but the inputpanel is another class and >so I have no access to the jtable which should be updated by the events. >I hope somebody could give me a tip for this problem >Thank you very much >Marco > >
Technical Details
Message-ID:
<7ope0c$bj8$1@zonnetje.nl.uu.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ns5be$c6921@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,3cf9137ddcabec7e X-Google-Attributes: gid111d45,public From: "Vincent Nuijten" <info@c-content.nl> Subject: Re: Problem with Event-Handling Date: 1999/08/10 Message-ID: <7ope0c$bj8$1@zonnetje.nl.uu.net> X-Deja-AN: 511066380 References: <7ns5be$c6921@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@nl.uu.net X-Trace: zonnetje.nl.uu.net 934296396 11880 212.136.248.72 (10 Aug 1999 14:46:36 GMT) Organization: UUNET-NL (http://www.nl.uu.net) NNTP-Posting-Date: 10 Aug 1999 14:46:36 GMT Newsgroups: borland.public.jbuilder.java.swing