Can I control the mouse pointer?

I would like to know is there any classes in the API that I can control the mouse pointer(cursor) like the one that is done in JavaScript? I couldn't find anything about it. In MouseEvent, the only thing that I found was getX() and getY() that will not assign the location to the current cursor. Since I need to do a First Person View mode stuff, I need to use mouse to pan and this is very important, thank you for all your repies.
Andy

I've never used it, but it appears the Robot class is what you are looking for.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html

Similar Messages

  • How can I control the mouse by command-line ?

    Hi,
    Does anybody know if there is any command that I can use to control the mouse event, like: move cursor to some place, click, double-click, etc.?
    Thank you!
    ps. what I want to do is to bind keyboard to mouse, so that I can use keyboard to control the mouse, but I want to try some algorithms of controlling.

    I'm not aware of mousekeys being configurable, but switch to it:
    alt-shift numlock
    then try the number pad.
    EDIT: Or were you looking for something an easy binding to xlib as in swarp?
    Last edited by vogt (2008-02-15 04:44:25)

  • How can i change the mouse pointer image?

    Hi friends!!
    It's possible to change the mouse pointer image in Swing?
    Thanks a lot.

    There's a setCursor() method on the frame component.

  • How can I control the mask point?

    Hi everyone.
    How can I control point in the circle by using the Expression???
    Is it possible?

    There's no direct and easy way to control individual mask path vertices with expressions, but it is possible.
    Christopher Green has a script (Connect_Vertex_To_Point.jsx) on his website that attaches a vertex to a control point. You can use that script to figure out how to do something similar.
    I'll try to put something more direct together myself.

  • How to hide the mouse pointer

    How can I hide the mouse pointer in an application that I don't want to use the mouse?
    thanks

    what about
    somecomponent.setCursor( null );but i think the user is still able to click on components, without seeing where the user clicks. ;-)
    sorry, i don't know for sure how to do this.
    tobias

  • After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer.

    After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer. The rainbow wheel was runnig 8 hrs and I turn off mac mini by power button, then I turn on mac mini with key Shift and p/w, checked HD. My HD has
    capacity 499.25 GB used 86.91GB. Is there a solution to fix this problem axcept the reinstall os?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.  
    These steps are to be taken while booted in safe mode.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    for k in /Sy*/L*/Ex*/{,.?}*.kext; do test -f "$k/Contents/Info.plist" && /usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$_" | egrep -qv "apple|Accusys|ArcMSR|ATTO|CalDigit|HighPoint|hp-fax|JMicron|print|SoftRAID|stex" && echo $k; done | open -f -a TextEdit
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo defaults read com.apple.loginwindow LoginHook | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3 
    Repeat with this line:
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 4
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null | open -f -a TextEdit 
    Remember, Steps 1-4 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • I updated my iMac to lion and now when i leave my desktop and it goes into stand by it like a picture is taken of the screen and when i want to log in the mouse point removes pixels so i can get to the user login screen this never happened ith snow leopar

    i upgraded my iMac to lion and now when i leave my desktop and it goes into stand by mode, its like a picture is taken of the actice desktop and when i want to log in the mouse point removes pixels so i can get to the user login screen this never happened ith snow leopard. does anyone else experience this and is there a fix?

    I have an iMac 8, 1 that I upgraded Leopard to Snow Leopard.  It was totally updated with the latest from Apple when I bought and tried installing Lion.  The upgrade failed, shot my OS and I couldn't boot.  Had the constant spinner on a grey screen..  did a format of the drive, hdd repair and everything came back clean... got back to Snow Leopard and all the updates on it again and then retried the Lion thing... same bs... dead duck.  Crashed my system one too many times.  I can't see where a few small changes, mostly app related can be classified as an OS upgrade and is not compatible with my iMac.  I have the stuff running on my Mac Pro but have yet to notice anything impressive.  I've always used F3 and really didn't require Mission Control.  Just open you app folder for launch pad... duh?  I use the hot corners anyhow.  As far as Safari is concerned... as a power user, Apple missed the boat on that for me.. full screen etc.. Wow.  I don't like the new Mail either..
    As you can see/read, I'm less than impressed with this release from Apple but I own so many of their products that I will have to put up with it for now... somehow the MS logo should apply to this release Steve.

  • When a link is rolled over by the mouse pointer a very annoying pop up with the link address shows up. There seems to be no way to prevent this from happening. How can this pop up be made to go away?

    no matter what website, every time I move the mouse pointer over something to click on a line of black printing in a thin white box pops up at the bottom of the screen and shows me the http address of the item I'm about to click on. I want to shut this function off or remove it if possible. I find that the previous version did not do this, it seems to be unique to 6.0. It's VERY distracting and ANNOYING. How can I make it go away????

    When you hover the mouse cursor over any link, it will display the link details at the bottom left of the screen; black font on white background.
    This display can be very important as it shows the full address of the hyperlink. This can be particulary useful for checking on whether the link is bona-fida. For example; if you receive an email that looks like it is from a bank , hovering over the link will indicate instantly that the link is pretending to be something it isn't.
    Another example that can be useful; a website link may say 'contact me' rather than give the actual email address. However, when you hover over the link, the actual email address will be displayed at the bottom of the screen. If you click on the link then Outlook usually opens, however I do not use Outlook, so displaying the email address is useful.
    This display is something that has always been present and it is also displayed if you use IE.
    However, I can see that this annoys you, so you could try the following:
    [[https://addons.mozilla.org/en-US/firefox/addon/link-location-bar/?src=api]]
    After installing the addon, you will need to restart Firefox, then go to History and Restore previous session to get all your tabs and webpages back.
    You will now find that when you hover over any link, it will now display in your address bar on the right hand side.
    If this helps, please say this question has been solved.

  • How can I control the zoom on my mac mouse?

    How can I control the zoom function on my mouse? In the middle of working on things my hand will rub the mouse by accident and all of a sudden the context within the screen is large. I have no idea of how to work this feature on my mouse and most times to get it to return to normal, I have to escape out of the work I am performing.

    If you are pressing the "Control" button on the Mac keyboard, scrolling up will zoom in and scrolling down will zoom out. You can disable this if it annoys you through System Preferences > Universal Access. If you are using Mountain Lion, it would be System Preferences > Accessibility.
    Uncheck the in the "Seeing" or "Zoom" section that says "Use scroll gesture with modifier keys to zoom".  It may be slightly different if you have an older OS X version. I have Mountain Lion and am going off of memory on the older versions.

  • Can I change the look of the mouse pointer?

    I was wondering if it’s possible to change the look/style of the mouse pointer just like you can in Windows?

    Unsanity's Mighty Mouse is the only one I know of that can.
    They also have this page of cursors they've already made you can use with the program.

  • I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836
    If that does not help, reinstall OS X

  • I try to move a program to the dock, but the symbol gets "glued" to the mouse pointer/cursor and can't be moved. What is wrong?

    I try to move a program to the dock, but the symbol gets "glued" to the mouse pointer/cursor and can't be moved. What is wrong?

    This splved my question, tank you so much!!!

  • Why the mouse pointer in Logic Pro does not change shape during work in OSX 10.9.1?

    I've a MacBook Pro Retina 15-inch Late 2013 and I'm using two external displays. One connected to to the HDMI port (display 1) the other to thunderbolt (display 2). The MacBook display is closed. I’m working with Logic Pro 9.1.8 (32bit) with OSX 10.9.1
    Why the mouse pointer in Logic Pro does not change shape during work???
    It was already difficult with OSX 10.9 but now after upgrading to 10.9.1 it's game over!
    At least before I could select which display use Logic Pro to have all the shape functions of the pointer. Not in both displays, so to be forced to edit in ONLY ONE of the two displays using this workaround: (right click on Logic icon in Dock: Option --> Desktop on Display 1). Now or I select “Option --> All Desktops” or does not work. However, by selecting all displays you say goodbye to Mission Control. This can’t be a solution!!!
    The amazing thing is that Nuendo has no problem while Logic Pro, Apple's native software, it can't!
    With Nuendo it’s indifferent in which display you are working, the shape of the mouse pointer changes shape depending on the requirement in both displays.
    This thing drives me crazy!
    Solutions?
    Here some ideas in other foums:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=86264
    But this aren't really solutions but workarounds. Use Logic in all desktops makes Mission Control useless!!

    I installed all over again by formatting as suggested by the genes of pro application support. Each plug-in, each virtual instrument, a job that lasted 3 days. And as suggested for each new plug-in I proceeded to check the proper functioning of Logic Pro and did each time a back up with Time Machine.
    The Result:
    Logic works as it should ONLY on the primary monitor and ONLY on the first desktop.
    BUT
    Reason and Nuendo dont' have this issue !!
    I believe that Apple developers are thinking only to mobile phones and things like messages or face time.
    And that's not all!
    After a few weeks, perhaps by installing a version of Adobe Acrobat, I say maybe because I'm not sure, logic has stopped working properly. Again problems with the mouse pointer.
    Luckily I had a back up! But now I'm terrified to install new programs. Thanks Apple!

  • Problem setting project end point (can't access the end point marker)

    I can't seem to set my project end point because the slider control that adjusts the spacing of the measures is obstructing my pointer from being able to click on the end point marker. Any hints as to how I can move the coation of this slider control so that I can access the end point marker with my pointer?

    6ftmama wrote:
    FYI - the end point marker now turns into a bracket when you hover over it.
    THe End-of-Project Marker doesn't change at all. What you see is a change of the Mouse Pointer.
    This is called a "Click Zone" where the Mouse Pointer changes to different shapes when moving over or click on an object or an area in the window.
    Here the Mouse Pointer changes to "Trim Tool" or "Resize Tool".
    Pointer Tool:
    Resize Tool:
    It is the same Tool wne you move the Mouse Pointer of the right edge of a Region to resize its length.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Adjust the 'aim' of the mouse pointer

    Hello,
    Back in the days of Tiger I used a little haxie called Might Mouse from Unsanity. This allowed me to tweak the click point of the mouse cursor. By default the click point of the mac's cursor is a few pixels within the cursor image itself.
    Call me crazy, but I feel the 'aim' of the mouse cursor should be the very tip of the mouse. If you're unsure of what I'm talking about, click and drag on an empty space on the desktop. You should be creating a selection square. If you're dragging down and to the right, the bottom right corner of the square will line up with upper left of the mouse cursor. Now notice where the selection box meets the mouse. It's not exactly at the tip of the mouse, but a few pixels behind the tip.
    When you magnify the mouse cursor, this issue is magnified as well. With the upgrade to leopard most Unsanity apps are broken... And for all intents and purposes dead.
    Does anyone know of an app that lets you adjust the click point or 'aim' of the mouse pointer? I thought I'd eventually just get used to it, buts it's driving me crazy!
    Thanks.

    Pinpoint- Used to create animations around the mouse, and maybe custom cursors. But I'm ignorant of how to use quartz composer to make my own cursor to use in the app.
    MoundoMouse- Used to resize and move windows with mouse movements (w/o actually clicking the window) ...Might keep this one for the ‘window focus follows mouse’, reminded me of the old UNIX box I worked on for a few years. The mouse focus can be very handy.
    SteerMouse- Used to add more control to unsupported mouses and extra control over tracking/acceleration and cursor snapping to buttons. ...Might keep this one. Hopefully I can turn down the horizontal scrolling speed of the scrollball... always seems way to fast. Not sure as it needs a restart, and I'm converting vids...
    *...Sadly, none of these seem to have the feature I was talking about. Please let me know if I missed something.*
    However, thank you for your response!

Maybe you are looking for

  • Ipod not connecting with itunes

    My itunes works fine until I plug my ipod in. Then is won't respond and recognize that I connected the ipod. When I disconnect my ipod is says "The required folder cannot be found" If any one could help me with this problem I would be very grateful.

  • Issue with Consumption based Planning( MRP )

    Hello Experts, I have a requirement in my client to run CBP for Spares. There is no issue till MRP run. Background MRP runs every night for Plant and new proposals in the form of PR are generated as per requirements. After MRP run user wants to puts

  • Export to CSV from tracker crashes Acrobat on multiple machines.  (xml works though)

    I have encountered a crash exporting data to csv from a distributed PDF in the tracker, yet exporting to xml works.  This occurs on multiple machines. I can email dump file if requested. [Product] (0x1): Windows 7 Ultimate[/Product] [Edition] Ultimat

  • Input only working once with JTextField

    Hi, I've created an GUI with one JTextField, a JTextArea and a JLabel that I use to display an imageIcon. I want the user to be able to input text into the JTextField without having to click on it with the mouse. I've used requestFocus() to do this a

  • My brand new mac mini is super slow

    Dear Apple people of the world, I just bought a new entry-level Mac Mini to supplement by 2010 Apple Air. It's the basic model (2.5 GHZ Dual Core Intel core i5, 4gb memory, 500 gb hard drive, intel hd graphics 4000, os x mavericks). As soon as I got