How to find mouse coordinates when mouse pointer is outside of app screen?

Hello folks,
Does anyone know, how in a Swing/AWT app to find out the screen coordinates
of the mouse pointer when the mouse pointer is outside of the app screen?
Would appreciate your comments.
Tim

MouseInfo does work - thanks a lot for your hint!
I wasn't aware of this class actually because normally use 1.4.2.
Good time to switch :-)

Similar Messages

  • How to find port number , when there will be different instance number ?

    In case of portal url,
    port number is 50000 for default instance number 00.
    how to find port number , when there will be different instance number , instead of 00?
    Thanks

    Hi
    You can find the port number by your instance number as follows:
    There is a general format for the port number like you have mentioned.
    For 00 instance the port number is 50000.
    The general format for the port number goes like this:
        <b>5<instance_no>00</b>
    If your <b>instance number is 01</b> then the port number would be <b>50100</b>.
    It depends on the installation type which you perform.
    You can also change the instance number during the installation but normally you dont do this.
    If you have many components or units installed on your system you may have more than one instance in that case it may go like this 00, 01, 02....accordingly port number will be 50000, 50100, 50200...resp.
    Hope this solves your doubt.
    If you need some more clarification please lemme know.
    Regards
      Sumit Jain
    **Rewrd with points if useful.

  • How to find that 2 references are pointing to same obejct??

    how to find that 2 references are pointing to same obejct??
    i feel that hashCode and equals will not work as far as i understood from javadoc

    I wnat to know above because i want to check if ps in
    this loop is same object or on each iteration new
    object is created
    for (int i = 0; i < 10 ;i ++)
    PreparedStatement ps = con.prepareStatement(sql);
    ps.setInt(1,i);
    ps.executeUpdate();}
    Here's a better question. Why in the world did you put that statement in the loop in the first place, unless the variable 'sql' is modified within?

  • I lost my Iphon how to find it please when its offline please

    I lost my Iphon how to find it please when its offline please if  someone nowwww

    If it's offline, Find my iPhone will not work and the only way to find it is the old fashion way... physically looking for it.  Good luck.

  • How to find function module's and tables used for the particulat screen or TCODE?

    Hello Nation,
    I would like to know how to find the  function modules and tables used for the particular screen or TCODE or program.
    Example : I would like know the function module used in the program RDBGFT?
                     How can i find that?
    Thanks in advance ,Awaiting your reply.

    Make use of Find function  with the keyword "CALL FUNCTION".
    Make use of the same find function with the keyword "Select" to know the database tables used.
    Regards,
    Philip.

  • How do I get rid of the metadata hangin on my mouse arrow when I point on an image.

    How do I get rid of the metadata hanging on my mousearrow when I point on an image in aperture.
    I hope it is possible to uncheck this feature. It is rather disturbing and not needed all the time.
    I hope someone can help me out!
    Thanks

    And in case anyone is wondering, hitting the "T" key is the keyboard shortcut to turn this feature on and off.

  • Get mouse coordinates when its moved over a powerpoint slideshow -URGENT

    i am writing a code to get the mouse coordinates as its moved over the screen(especially over powerpoint slide show. plz help me if u know a simple code that perform this function without a plug-in, but if i have to use a plug-in advice me.
    tahnk u very much :)

    sorry for not using the code tags..just learn about it...thanx
    my problem is.when i want to record every coordinates of the mouse while it moves..but using the printstream,it only records the end point of the mouse and not while the mouse moves/dragged.I'm developing a sketch pad program. the program needs to capture the coordinates and saved it into a file.i tried using it but keeps on saving the last point but not all
    example
    point A..........................point N............................point Z
    i want the program to save the coordinate of point A,point B,C,D...point N....and last point Z
    but it keeps on saving only point Z.can u help or give any ideas..thanx

  • How to find detail of when/who created particular  entry in Z tabel

    Hi folks
    I have a Z table, and which contain one entry with incorrect data .
    Is there any way to find out , that when and who inserted that resord in Z table
    Regards
    PG

    Hi Sandeep,
    Thanks .
    This entry has not been created by any transaction.
    So i am not able to get the when/who created that entry.
    One Lead is that, this entry is present in Q system also .
    Regards
    PG

  • How to determine the coordinates of the point?

    I've achieved assignment 3 for CS193p course of Stanford, Fall 2011. The assignment basically asks to make a graph of points of an equation of something like X + 2, X is the X axis, and X + 2 (which is the result of the equation) is the Y axis.
    The problem is that it gives an already made class which draws axes, hashmarks and so. The lecturer describes how it works in a commented paragraph in the .h file of the drawer, I still can't understand though how can I count the number of points between the origin and the hashmark, then convert it to pixels and iterate over it. The hard part of it is getting the hashmark position, or in other words, knowing where to put X and where to put Y according to the current scale.
    A subtask is to make a zoom in and zoom out buttons, and I've already done that by the way.
    You can download everything from here.
    The axes drawer class: AxesDrawer.zip
    The assignment PDF: Assignment 3.pdf
    My project: Assignment 3.zip
    Any help is appreciated.

    Can someone help please?

  • How to find the date when entries were made in DEVACCESS table

    Hi All,
    I needed to know if there is a way to find the date when an a developer was registered in our SAP system.
    I can see in DEVACCESS table (in SE16) all users registered along with their developer key but i also need to see when those entries were  made. Can you please help in this.
    Regards,
    Ashish Robinson

    Hi all,
    Thanks for the replies but my issue is that I got only for some users from SCCR in service maketplace. It seems that that other users for which (i can see entries in table DEVACCESS in my system) were created with somne other s-user which we dont know at thsi time so finding from service marketplace is not working!
    I needed to know iff there is some way i could get this information (when entries went in table or when the users registered) from SAP itself.... or may be from oracle sql level.
    Thanks to suggest <removed by moderator>
    Regards,
    Ashish Robinson
    Edited by: Thomas Zloch on Nov 23, 2010 2:28 PM - priority normalised

  • How to find the date when the users has been created in Hyperion Essbase

    Please let me know, if there is any option or way to find the date when the users has been created in Hyperion.
    Essbase - 9.3.1.0.0
    Sun Solaris SPARC (32-bit) - 5.8
    If not in Hyperion, could you please let me know if it gets stored in the repository. If yes, please let me know the table name in Oracle.

    I don't know of a way of getting this information from Shared Services via the standard web UI. However you can see when a native user was created in openLDAP. If your users are all native then you can use an ldap browser to view the CreateTimestamp.
    Port: 58089
    User DN:CN=911,ou=People,dc=css,dc=hyperion,dc=com
    Password: Your shared services admin user password
    You should see each new native user under the ou=People and each CN will have a create timestamp.
    I can't help if all you users are external or your using the old Essbase native security.
    Gee

  • How to find apple ID when your email doesn't work

    Can anyone assist - I"m overseas and I have limited access to any of normality of getting things sorted
    I lost my iphone5, however I can't remember my apple ID to access find my iphone app - I've tried to use apple to find my account but none of my email address work in locating me.. can anyone offer help?

    See this
    Apple ID: How to find your Apple ID

  • How to clear text fields when the user navigates back to the screen

    Hi,
    Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
    My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
    Thanks

    This code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
    As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.containers.FormItem;
          import mx.controls.TextInput;
          import mx.events.IndexChangedEvent;
          import mx.core.Container;
          private function clearSreen(evt:IndexChangedEvent):void{
            var view:Container = tn.selectedChild as Container;
            for each(var child:Object in view.getChildren()){
              if(child is FormItem){
                var subchild:DisplayObject = child.getChildAt(0);
                if(subchild is TextInput){
                  TextInput(subchild).text = "";
        ]]>
      </mx:Script>
      <mx:TabNavigator id="tn" resizeToContent="true"
        change="clearSreen(event)">
        <mx:Form id="frm1" label="View Number One">
          <mx:FormItem label="First name:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Last name:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
        <mx:Form id="frm2" label="View Number Two">
          <mx:FormItem label="Address1:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Address2:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="City:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="State:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Zip code:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
      </mx:TabNavigator>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • How to find the coordinates of a mouse click in a Tree node ?

    Hello
    I have a JTree that have few nodes. The nodes contain an icon and a label (using custom cell renderer) and I want to receive right clicks on the icon and show a popup menu.
    The problem is I can only get the right click on the whole tree node, not only the icon.
    I tried two approaches:
    1. register the mouse listener directly with the icon in the cell renderer. That doesnt work since the events received by the tree node do not propagate to its sub-components.
    2. Register the event with the JTree itself and then try to find which part of the tree node was clicked (see if it was within the coordinates of the icon).
    But I cant get the node's coordinates or width.
    I tried using SwingUtilities.convertPoint or SwingUtilities.ConvertMouseEvent but it just doesnt work with DefaultMutableTreeNode.
    Any ideas how to do it ?

    user11973359 wrote:
    1. register the mouse listener directly with the icon in the cell renderer. That doesnt work since the events received by the tree node do not propagate to its sub-components.No, it doesn't work because a renderer isn't added to any component hierarchy. It isn't in any way a 'sub-component'.
    Read about editor and renderer concepts in the Oracle tutorial on How to Use Tables.
    user11973359 wrote:
    2. Register the event with the JTree itself and then try to find which part of the tree node was clicked (see if it was within the coordinates of the icon).
    But I cant get the node's coordinates or width.<tt>getPathForLocation(...) </tt>in conjunction with<tt> getPathBounds(...)</tt>.
    db

  • How To Make Text Disappear When Mouse is On a Button?

    Hello,  I'm completely new to Flash and well I need some help. I created a page that has static text in the center.
    The page has buttons on side and when I rollover a button text appears, but the problem is that when I rollover a button, the static text in the center is there and I want to hide it as I can't read anything because the texts are overlapped.
    How do I make the text in the center disappear/hide when I rollover a button and how do I make it reappear when the the mouse is off the button?
    I hope what I am explaining makes sense.

    You can assign onRollOver and onRollOut code to the buttons to make the text dispappear, but you'll need to make the text a movieclip with an instance name that you can use to target it to turn it invisible.  In the simple example below, the button has an instance name of "btn" and the text movieclip has an instance name of "text_mc"
    btn.onRollOver = function(){
          text_mc._visible = false;
    btn.onRollOut = function(){
          text_mc._visible = true;

Maybe you are looking for

  • Brand New Mini - Can't Migrate from Old

    OK, Santa brought a brand new mini to replace my trusty 2007 mini. I fired it up and tried to use migration assistant to migrate from the 2007. First I tried it via network. It got to the screen where it showed the old mini as the source but then jus

  • Problems with rented movie

    I just rented a movie with my apple tv and it has no audio, the preview has audio but the movie doesn't.

  • Just subscribed, paid and finally doesn't succeed !!!

    Just subscribed and paid for a yearly fee but I am unable to access to the process  ; Adobe always asked me to "subscribe again" (but I already paid). I want simply to know HOW DO I DO FOR converting a PDF file to an EXCEL one ; I hope it will respec

  • CS5 Bridge labels. Where are they recorded and stored?

    I am hoping to get some editing script developed that will make decisions based on labels in RAW files (.cr2). I am wondering where the bridge label data is stored? I understand they are not stored in xmp files and i cant see the .bridgelabels file a

  • POP fw from Gmail comes in installments!

    I've setup my Gmail to POP forward, so I can collect it through my Mail. Recently (although I can't point to the moment exactly) I noticed the following strange behavior: I click on "Get new mail in all accounts" and all my accounts in the sidebar sh