Changing the mouse

I want to be able to control the appearance of the mouse after certain events. Catching these events is not a problem, but I need to find out how I can access and change the mouse.

Use setCursor(Cursor)

Similar Messages

  • How to change the mouse cursor

    Hi,
    I need to change the mouse cursor on a mouseover event of a text filed?
    Please help for the same...
    Thanks,
    Abhijit

    I guess your are simply out of luck.....share with us if you find a way.

  • 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.

  • I would suggest a new feature:The possibilty to change the mouse pointer icon when you hover on an a

    I would suggest a new feature:The possibilty  to change the mouse pointer icon when you hover on an active link by any other one icon I select.

    Current Firefox versions have a feature called tear-off tabs.<br />
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.<br />
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    bug489729 (Disable detach and tear off tab):
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • Change the mouse icon.

    Hi all I need to change the mouse icon.
    I'm using:
    setCursor(Cursor.WAIT_CURSOR);
    buet the problem is that this only works inside the application. If the mouse cursors does out of the application (f.e. to the windows desk) the mouse changes into the typical arrow icon.
    What I need is the mouse icon to remain as a sand-watch icon till some opperations are done in the application.
    Thanks in advance.
    Dani.

    I believe this behaviour is controlled by the operating system. This is part of the pre-emptive multi-tasking system, the principle being that one busy application should not disrupt the rest of the OS (compare with Win 3.1).
    So I don't think you can do that, and even if you can, you probably shouldn't
    HTH

  • I would like to change the mouse shortcut for ctrl-click to be shift-click

    Hi,
    basically I would like to change the mouse shortcut for ctrl-click to be shift-click - that is I want to harmonize my browser shortcuts and there are other browsers out there that open a new tab on shift-click, not on ctrl-click.
    How can i customize this?
    THNAKS!!!

    Firefox has always used Ctrl + left click to open links in a new tab and Shift + left-click to open a link in a new window.
    Maybe a tab related extension can change that behavior.
    *Tab Mix Plus: https://addons.mozilla.org/firefox/addon/1122
    *Tabberwocky: https://addons.mozilla.org/firefox/addon/14439
    *Tab Control: https://addons.mozilla.org/firefox/addon/1480

  • Could anyone tell me how too change the mouse cursor to the waiting mode?

    Could please anyone tell me how too change the mouse cursor to the waiting mode while my applet is processing?
    Well i have 3 combos in my applet.....and in my actionPerformed code i have:
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == combo1) {
              setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_reg = combo1.getSelectedIndex();
    Do_Accion1();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    if (e.getSource() == combo2) {
    setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_mun = combo2.getSelectedIndex();
    Do_Accion2();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    if (e.getSource() == combo3) {
    setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_loc = combo3.getSelectedIndex();
    Do_Accion3();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    } // Fin action event
    But my cursor is never change to WAIT_CURSOR....Somebody could help me please?....
    Thanks in advance....
    Mary

    YourComponent.setCursor(
         Cursor.getPredefinedCursor(
         Cursor.WAIT_CURSOR));

  • Changing the mouse style....

    Hi ,
    How to change the mouse style.....when the mouse is over a specified item in Dev10g....????
    I found how to... but in which trigger...???? The WHEN-MOUSE-ENTER does not work...!!!!
    Thanks,
    Simon
    Message was edited by:
    sgalaxy

    this works in Forms 6i, dunno if it works for 10g,
    Before processing use,
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
    When finished use,
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
    Regards,
    Amol

  • Changing the mouse cursor...

    I am looking for a quick way to change the mouse cursor in an application. If you could e-mail me with some kind of explanation, it would be greatly appreciated....[email protected]

    http://search.java.sun.com/search/java/?qt=setCursor
    The search function is a wonderful thing...so is reading the API.

  • How to change the mouse cursor icon type when mouse moves out of client area ( propertysheet) WTL?

    I got stuck with an issue in property sheet .I want to load different cursor when the mouse position is within the client area and load another when moves out of the client area.
    In the porpetysheet I added four page. In the first page when I click next I am loading cursor of IDC_WAIT type and loading IDC_ARROW when the mouse moves out of the client area.
    In the page class I triggered the event for WM_MOUSEMOVE as follow:
        MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
    LRESULT OnMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    if(TRUE == m_bIsNextBtnClicked)
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    else
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    This event is getting triggered and absolutely had no issue with this. Similarly I tried adding `MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseLeave)` this event making an assumption that this will get triggered if the mouse moves out of the client area,  but
    this event did not get triggered at all.If this is not the mouse event to be triggered for mouseleave which event should I trigger?
    LRESULT OnMouseLeave(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    Now when I click Next button , **I was actually calling a function which is taking sometime to return** . Before to this function I am loading IDC_WAIT cursor i.e., 
     `::SetCursor(LoadCursor(NULL, IDC_WAIT));` . 
    Now when move the mouse cursor on to the non-client area I want to load IDC_ARROW cursor i.e., 
        ::SetCursor(LoadCursor(NULL, IDC_ARROW)); 
    When the moves on to the non-client area I am handling the mouse event in sheet derived class as follows,
    MESSAGE_HANDLER(WM_NCMOUSEMOVE, OnNCMouseMove)
    LRESULT OnNCMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return 0;
    This event is not getting triggered until unless the function in the Next button event is executed.
    I want both of them to be done in parallel i.e, click Next button now hover mouse on the client area, Busy icon should come and when mouse moves out of the client area then IDC_ARROW icon should come.
    LRESULT OnWizardNext()
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    m_bIsNextBtnIsClicked = TRUE;
    BOOL bRet = MyFun();
    m_bIsNextBtnIsClicked = FALSE;
    //Until this function(MyFun()) is executed **WM_NCMOUSEMOVE**
    //event is not getting triggered.But this event should get triggered and I
    //should be able to see the change of cursor within and out of client area.
    Can anyone kindly help me to solve this issue.
    SivaV

    Hello
    sivavuyyuru,
    For this issue, I am trying to involve someone to help look into, it might take some time and as soon as we get any result, we will tell you.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I change the mouse-over value format on the secondary axis?

    Can anyone tell me how I can change the number format for the mouse-over values on the secondary axis of a combination chart?  Right now they take on the format of the primary axis values.  In my case, I need the primary to reflect a general number with three decimals, and the secondary to reflect currency. 
    Many thanks,
    Devin

    Agreed. The option I've used before is to name the axes "Revenue ($)" and "Gross Margin (%)" (or whatever) and that makes the numbers a little more readable.

  • Changing the mouse pointer to a cursor?

    Hi,
    I am using a graph or perhaps a polar plot, not sure yet, but I realy wanted to know if there is any way to make the mouse pointer act like a cursor, such that I can click on something on the graph and know where the mouse clicked (the coordinates) and perhaps change the appearance of the hand to something else? So I DO NOT have to use a cursor. I want the user to just click and not have to drag a cursor around.

    Check out the Gtoolbox at gtoolbox.topcool.net. It has the functionality you are looking for.

  • Change the mouse pointer to an Hour glass

    hello,
    Could any one of you let me know how to make mouse pointer to an hour glass in swing application.
    Thanking you in advance..
    Ram

    Check out how I do this in my Draggable classs
    you are welcome to use and modify this class, but please don't change the package or take credit for it as your own work
    package tjacobs.ui;
    import java.awt.Component;
    import java.awt.Cursor;
    import java.awt.Dimension;
    import java.awt.Point;
    import java.awt.Window;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionListener;
    * tjacobs.ui.Draggable<p>
    * Makes a component draggable. Does not work if there's a layout manager
    * messing with things<p>
    * <code>
    *  usage:
    *                 Component c = ...
    *                 new Draggable(c);
    *                 parent.add(c);
    *  </code>
    public class Draggable extends MouseAdapter implements MouseMotionListener {
        Point mLastPoint;
        Component mDraggable;
        public Draggable(Component w) {
            w.addMouseMotionListener(this);
            w.addMouseListener(this);
            mDraggable = w;
         public Draggable(Window w, Component drag) {
              drag.addMouseMotionListener(this);
            drag.addMouseListener(this);
              mDraggable = w;
        public void mousePressed(MouseEvent me) {
              if (mDraggable.getCursor().equals(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR))) {
                   mLastPoint = me.getPoint();
              else {
                   mLastPoint = null;
         private void setCursorType(Point p) {
              Point loc = mDraggable.getLocation();
              Dimension size = mDraggable.getSize();
              if ((p.y + WindowUtilities.RESIZE_MARGIN_SIZE < loc.y + size.height) && (p.x + WindowUtilities.RESIZE_MARGIN_SIZE < p.x + size.width)) {
                   mDraggable.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        public void mouseReleased(MouseEvent me) {
            mLastPoint = null;
        public void mouseMoved(MouseEvent me) {
              setCursorType(me.getPoint());
        public void mouseDragged(MouseEvent me) {
            int x, y;
            if (mLastPoint != null) {
                x = mDraggable.getX() + (me.getX() - (int)mLastPoint.getX());
                y = mDraggable.getY() + (me.getY() - (int)mLastPoint.getY());
                mDraggable.setLocation(x, y);
    }

  • How can I change the mouse pad scrolling option?

    I am sure before my recent upgrade it was the opposite way round for scrolling  I have OS X  10.9.4

    Hi, I'm not sure what OS X version you upgraded from, but I was not aware that the menubar text changed in size in Mavericks from previous versions. Unfortunately there is not any system wide text size setting, however, you can change the screen resolution, which wil increase the text size (and everything else) on the screen.
    System Preferences - Displays. Select 'Scaled' radio button and select a different screen resolution and decide if that setting aids you.
    If there are not enough screen resolution options, hold the 'Option' key, while clicking on the 'Scaled' radio button and more resolutions will be presented.

  • Interactive SVG : Can't change the mouse cursor to pointer

    Hello I am having issue with the interactive SVG file I have followed the example from adobe tv and edgedocks and created my own project and everything is working just fine, now my question is how to change the cursor that hovers over the svg into pointer, I tried the box inside adobe edge animate and everything but not working even jquery or javascript nothing is really working and I can't get the id from the svg itself so I can target it with jquery so could somebody help me with that, Thanks

    you can use css to change the cursor in the init function with
    sym.$("selectedPartTxt").css({'cursor':'cursormode'});
    change cursormode to one of these:
    http://www.w3schools.com/cssref/playit.asp?filename=playcss_cursor&preval=all-scroll
    add this to the element that needs the cursor asshown above (element chosen from edgecommmons example).

Maybe you are looking for