How to detect when a component is moved from 1 Panel to another

M

Marty Gagnon

I have several JPanels. One of them has a JToolbar in it. I want to know
when the toolbar is moved from it's original panel to another panel?

I put a MouseMotionListen on the JToolBar and it does detect that it's
getting dragged, but when I release the mouse in the new JPanel, what
listener does that JPanel need to have to detect that event. I'm not sure
if FocusListener on the JPanel will detect when the mouse is released?
And I don't think the mouseRelease event on the JToolBar will know anything
about the different JPanel that it's been dragged over.

Thanks
Marty Gagnon
Shawnee, KS.
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top