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 / February 2005

Tip: Looking for answers? Try searching our database.

Is there an eqivalent for JInternalFrame.getMousePosition() in 1.4?

Thread view: 
Rene Ruppert - 16 Feb 2005 13:29 GMT
Hi,

I just had to downgrade to 1.4 and now I'm missing
JInternalFrame.getMousePosition().
I tried to add a MouseMotionAdapter to my JInternalFrame which stores the
mouse coordinates for me. The problem is, that the listener is not called
when the mouse cursor is over a component (JPanel) which is displayed inside
the JInternalFrame.
Any solutions?

Thanks.

Ren?
Steve W. Jackson - 16 Feb 2005 17:51 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> Ren?

As a general rule, I can't imagine why your JInternalFrame needs to
listen to mouse activities.  Instead, its contents would want to handle
this.  So you might want to add your MouseMotionAdapter to that JPanel
instead of the frame itself.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Rene Ruppert - 16 Feb 2005 20:47 GMT
Hi,

> As a general rule, I can't imagine why your JInternalFrame needs to
> listen to mouse activities.  Instead, its contents would want to handle
> this.  So you might want to add your MouseMotionAdapter to that JPanel
> instead of the frame itself.

In fact that's what I have done now. :-)

Ren?


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.