L
leonardo.mcarreiro
How can I execute an action (or function) when the user will click
into the JPanel ???
Any examples may help-me...
tanks
into the JPanel ???
Any examples may help-me...
tanks
You need to make a class that implements MouseListener. There are aHow can I execute an action (or function) when the user will click
into the JPanel ???
You need to make a class that implements MouseListener. There are a
bunch of different mouse events - I forget them all off the top of my
head - so see the Javadocs. But a MouseListener is what you want. Or if
a click is all you're interested in, extend MouseAdapter.
Hope this helps..
Joe
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.