Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to grab Mouse Evetns external to an APPLET/FRAME

Posted on 1999-07-20
10
Medium Priority
?
293 Views
Last Modified: 2010-05-18
Hi
    I have to catch mouse events external to my applet space , can any body suggest how to do this.?
    MY currrent java Ver is 1.16 on win95
Thanks
Shivaki
0
Comment
Question by:shivaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 9

Accepted Solution

by:
Ovi earned 0 total points
ID: 1246652
If I've understand you need to capture mouse outside applet zone.
You do that in the HTML code ataching the onMouseOver(), onClick(), onMouseOut() methods to the object you want. This methods will be treated in asociated functions next.
0
 

Author Comment

by:shivaki
ID: 1246653
Let me to tell exactly what I need. I have to access mouse pointer postion on the screen in my applet( not only in applet/Frame zone, but enterire screen.) . Putting in other words, I have to do some thing based on mouse postion even the user is not focussing on applet.
     can U proivide a gen. info such that same thing is valid for both in applets/frames.
Thanks
Shivaki
0
 
LVL 9

Expert Comment

by:Ovi
ID: 1246654
I believe you can do something like this using native C code in which you must use asm directives for reading the mouse events, instead of mouse listeners in Java.

Another solution may be using dll's in your Java code, but in this I can give you more info's.
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
LVL 9

Expert Comment

by:Ovi
ID: 1246655
I believe you can do something like this using native C code in which you must use asm directives for reading the mouse events, instead of mouse listeners in Java.

Another solution may be using dll's in your Java code, but in this I can give you more info's.

Please reject if is no good.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1246656
1. you can't do this in 'pure Java'
2. ordinary applets are not allowed to access native code
(I don't think that you can find a native solution too)
3. probably you can use some JavaScript code for tracking the mouse cursor and call applet methods from JavaScript.

0
 

Expert Comment

by:oguse
ID: 1246657
to HeyHey : at comment 1. - HOW ?
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1246658
comment 1 is
1. you CAN'T do this in 'pure Java'

0
 

Expert Comment

by:oguse
ID: 1246659
OK, sorry, seems today I don't read all words
0
 

Author Comment

by:shivaki
ID: 1246660
Hi,
    Thanks to all for UR comments. I hope I read at once( sorry I forget), there is an event mask in JDK kit which can do this stuff. can U idetntify what it is. If it is not possible for applets I can use in applications.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6830442
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
http://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question