Re: JPanel Listener Problem
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Apr 2006 10:20:08 -0700
MikeSmith813@xxxxxxxxx wrote:
I have a JApplet that contains a JPanel. The JPanel contains
JComponents, each of which have a FocusListener. On FocusGained I do
something with the JComponent.
My problem is that I need the JApplet class to know each time the
FocusGained() method is invoked inside the JPanel and it needs to do
something based on the JComponent selected.
How do I implement a listener on the JPanel in the JApplet class that
will know when one of the components is clicked.
I tried adding a MouseListener, FocusListener, and a ContainerListener
to the JPanel and I've been unable to determine when a component was
clicked with each.
Any help would be great!
One way is to put a method in the applet that you can call from your component focus listener.
--
Knute Johnson
email s/nospam/knute/
.
- References:
- JPanel Listener Problem
- From: MikeSmith813
- JPanel Listener Problem
- Prev by Date: JPanel Listener Problem
- Next by Date: Re: I have 2 JLists. How can I find which JList user clicked?
- Previous by thread: JPanel Listener Problem
- Index(es):
Relevant Pages
|
|