Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Marty Gagnon - 26 Nov 2003 16:22 GMT
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.
ak - 27 Nov 2003 00:04 GMT
use HierarchyListener

> 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?
[quoted text clipped - 9 lines]
> Marty Gagnon
> Shawnee, KS.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.