Cursor invisible

I'm in the process of setting up ArchLinux on my new laptop, an ASUS A6Km. But I've got a rather strange problem.
After I installed slim (Simple Login Manager) to boot in init 5, my cursor disappears. I can still use it, I just can't see it.
But it's visable in urxvt and opera (which uses qt) but not in any gtk-apps, the rootwindow or any windowframe.
I'm using Xorg7, my wm is WindowLabs.
I havn't any clue what's wrong, anyone have any clue?

This happened to me as well, several weeks, maybe even months ago. In my case, it seemed to coincide with installing cinnamon. Is cinnamon something you installed recently, by any chance? At any rate, I ended up having issues in cinnamon as well, and I wonder if running both DE's side-by-side potentially causes issues. For instance, I noticed that some settings in tweak-tool in gnome carried over to cinnamon. They share a lot of core apps and maybe it has something to do with config files...?? I eventually just made a list of apps I wanted to keep and did a fresh install using my existing home partition and deleted any config files I didn't want. I really needed to do that anyway. I now have KDE and Gnome. KDE is as buggy is ever, but gnome does seem to be behaving itself this time around. Sorry I don't have any better suggestions.
Last edited by nicklej (2013-10-02 12:33:50)

Similar Messages

  • Making the mouse cursor invisible.

    I am currently in the deployment phase of software made for two touchscreen kiosks.
    When moving the applications over to these kiosks I realized that we needed to make the mouse cursor invisible.
    I have tried the
    Cursor cursor = new Cursor();// ALthough i was unable to find a cursor constant that gave me an invisible pointer.
    testFrame.setCursor(cursor);
    Any ideas how I could remove the pointer from view alltogether?

    Toolkit tk = Toolkit.getDefaultToolkit();
    Image image = tk.getImage("yourPicture.gif");
    Cursor invisibleCursor = tk.createCustomCursor(image, new Point(0,0), "invisible cursor");I usually use a 1 x 1 transparent gif.

  • Exception when trying to make cursor invisible

    i don't want my application to display a window, so i'm creating a custom cursor from a 1X1 transparent image, and set the cursor to that... after trying that i get an exception...
    here's the code:
    try
                BufferedImage ec=new BufferedImage(1,1,BufferedImage.TYPE_INT_ARGB);
                Cursor cc=Toolkit.getDefaultToolkit().createCustomCursor(ec,
                        new Point(1,1),"");
                frame.setCursor(cc);
            catch(Exception e)
                System.out.println("Couldn't make cursor invisible: "+e.toString());
                e.printStackTrace();
            }and here's the exception:
    java.lang.IndexOutOfBoundsException: invalid hotSpot
         at sun.awt.CustomCursor.<init>(CustomCursor.java:61)
         at sun.awt.X11CustomCursor.<init>(X11CustomCursor.java:26)
         at sun.awt.X11.XCustomCursor.<init>(XCustomCursor.java:27)
         at sun.awt.X11.XToolkit.createCustomCursor(XToolkit.java:742)
         at no_germs.pong.Game.<init>(Game.java:101)
         at no_germs.pong.GameLauncher.<init>(GameLauncher.java:157)
         at no_germs.pong.GameLauncher.main(GameLauncher.java:87)
    what's my problem, and is there a way around it? if not, can i make the cursor invisible some other way?

    Image image = Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(16, 16, new int[16 * 16], 0, 16));
    Cursor transparentCursor = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), "transparentCursor");
    frame.setCursor(transparentCursor);

  • Mouse cursor invisible, but still functional

    So, I recently updated my system and after the next reboot, the cursor was gone.
    Okay, it was not that gone, it was just invisible, but I can use it right now as it was there.
    Unfortunately, it was not the smallest update, so I currently have no clue, which package may have caused this.
    Any ideas?
    Here's the log of the problematic update:
    [2013-09-30 17:10] [PACMAN] upgraded glib2 (2.36.4-1 -> 2.38.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded at-spi2-core (2.8.0-1 -> 2.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded atk (2.8.0-1 -> 2.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded at-spi2-atk (2.8.1-1 -> 2.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded dconf (0.16.1-1 -> 0.18.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gdk-pixbuf2 (2.28.2-1 -> 2.30.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gtk-update-icon-cache (2.24.20-1 -> 2.24.21-1)
    [2013-09-30 17:10] [PACMAN] upgraded pango (1.34.1-1 -> 1.36.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gtk3 (3.8.4-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gsettings-desktop-schemas (3.8.2-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded baobab (3.8.2-1 -> 3.10-1)
    [2013-09-30 17:10] [PACMAN] upgraded cdparanoia (10.2-4 -> 10.2-5)
    [2013-09-30 17:10] [PACMAN] upgraded gstreamer (1.0.10-1 -> 1.2.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gst-plugins-base-libs (1.0.10-1 -> 1.2.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded neon (0.29.6-4 -> 0.30.0-1)
    [2013-09-30 17:10] [PACMAN] installed libsrtp (15.1c9bd90-1)
    [2013-09-30 17:10] [PACMAN] upgraded gst-plugins-bad (1.0.10-1 -> 1.2.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gst-plugins-base (1.0.10-1 -> 1.2.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded glib-networking (2.36.2-1 -> 2.38.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded libsoup (2.42.2-1 -> 2.44.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gst-plugins-good (1.0.10-1 -> 1.2.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded cogl (1.14.0-5 -> 1.16.0-2)
    [2013-09-30 17:10] [PACMAN] upgraded json-glib (0.16.0-1 -> 0.16.2-1)
    [2013-09-30 17:10] [PACMAN] installed libevdev (0.4-2)
    [2013-09-30 17:10] [PACMAN] upgraded clutter (1.14.4-3 -> 1.16.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded clutter-gst (2.0.6-1 -> 2.0.8-1)
    [2013-09-30 17:10] [PACMAN] upgraded clutter-gtk (1.4.4-3 -> 1.4.4-4)
    [2013-09-30 17:10] [PACMAN] upgraded librsvg (1:2.37.0-1 -> 1:2.39.0-2)
    [2013-09-30 17:10] [PACMAN] upgraded gnome-desktop (1:3.8.4-1 -> 1:3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded nautilus-sendto (3.8.0-2 -> 3.8.1-1)
    [2013-09-30 17:10] [PACMAN] upgraded cheese (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gobject-introspection (1.36.0-1 -> 1.38.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gjs (1.36.1-2 -> 1.38.1-1)
    [2013-09-30 17:10] [PACMAN] upgraded libnotify (0.7.5-1 -> 0.7.6-1)
    [2013-09-30 17:10] [PACMAN] installed bluez (5.9-1)
    [2013-09-30 17:10] [PACMAN] upgraded gnome-bluetooth (3.8.1-2 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gnome-icon-theme-symbolic (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded gnome-icon-theme (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] upgraded systemd (207-5 -> 207-6)
    [2013-09-30 17:10] [PACMAN] upgraded libgweather (3.8.2-1 -> 3.10.0-1)
    [2013-09-30 17:10] [PACMAN] installed geocode-glib (3.10.0-1)
    [2013-09-30 17:10] [PACMAN] installed geoclue2 (1.99.4-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-settings-daemon (3.8.5-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-session (3.8.4-1 -> 3.10.0-2)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-themes-standard (3.8.4-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded libgnome-keyring (3.8.0-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded muffin (1.8.2-1 -> 1.8.2-2)
    [2013-09-30 17:11] [PACMAN] upgraded webkitgtk (2.0.4-1 -> 2.2.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-settings-daemon-compat (3.6.4-3 -> 3.6.4-4)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-online-accounts (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded evolution-data-server (3.8.5-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-panel (3.8.0-1 -> 3.8.0-2)
    [2013-09-30 17:11] [PACMAN] upgraded cinnamon (1.8.8-5 -> 1.8.8-7)
    [2013-09-30 17:11] [PACMAN] upgraded network-manager-applet (0.9.8.4-1 -> 0.9.8.4-2)
    [2013-09-30 17:11] [PACMAN] upgraded cinnamon-control-center (1.8.2-2 -> 1.8.2-3)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-screensaver (3.6.1-5 -> 3.6.1-6)
    [2013-09-30 17:11] [PACMAN] upgraded cinnamon-screensaver (1.8.0-2 -> 1.8.0-3)
    [2013-09-30 17:11] [PACMAN] upgraded device-mapper (2.02.100-1 -> 2.02.102-1)
    [2013-09-30 17:11] [PACMAN] upgraded popt (1.16-6 -> 1.16-7)
    [2013-09-30 17:11] [PACMAN] upgraded cryptsetup (1.6.2-1 -> 1.6.2-2)
    [2013-09-30 17:11] [PACMAN] upgraded dialog (1.2_20130923-1 -> 1.2_20130928-1)
    [2013-09-30 17:11] [PACMAN] upgraded libpeas (1.8.1-1 -> 1.9.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded eog (3.8.2-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gcr (3.8.2-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gtksourceview3 (3.8.2-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded python-cairo (1.10.0-2 -> 1.10.0-3)
    [2013-09-30 17:11] [PACMAN] upgraded pygobject-devel (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded python-gobject (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gedit (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded glibmm (2.36.2-1 -> 2.37.93-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-screenshot (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded gnome-terminal (3.8.4-1 -> 3.10.0-2)
    [2013-09-30 17:11] [PACMAN] upgraded gtk2 (2.24.20-1 -> 2.24.21-1)
    [2013-09-30 17:11] [PACMAN] upgraded gvfs (1.16.3-2 -> 1.18.1-1)
    [2013-09-30 17:11] [PACMAN] upgraded gvfs-smb (1.16.3-2 -> 1.18.1-1)
    [2013-09-30 17:11] [PACMAN] installed s-nail (14.4.2-2)
    [2013-09-30 17:11] [PACMAN] upgraded libgee (0.10.4-1 -> 0.12.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded libsasl (2.1.26-4 -> 2.1.26-6)
    [2013-09-30 17:11] [PACMAN] upgraded libtracker-sparql (0.16.2-1 -> 0.16.2-2)
    [2013-09-30 17:11] [PACMAN] upgraded lvm2 (2.02.100-1 -> 2.02.102-1)
    [2013-09-30 17:11] [PACMAN] upgraded mtdev (1.1.3-1 -> 1.1.4-1)
    [2013-09-30 17:11] [PACMAN] upgraded nemo (1.8.5-1 -> 1.8.5-2)
    [2013-09-30 17:11] [PACMAN] upgraded p11-kit (0.18.4-1 -> 0.20.1-1)
    [2013-09-30 17:11] [PACMAN] upgraded pambase (20130821-1 -> 20130928-1)
    [2013-09-30 17:11] [PACMAN] upgraded python2-gobject (3.8.3-1 -> 3.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded python2-atspi (2.8.0-1 -> 2.10.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded rsync (3.0.9-6 -> 3.1.0-1)
    [2013-09-30 17:11] [PACMAN] upgraded systemd-sysvcompat (207-5 -> 207-6)
    [2013-09-30 17:11] [PACMAN] upgraded wget (1.14-2 -> 1.14-3)
    Last edited by WolleTD (2013-10-02 08:29:03)

    This happened to me as well, several weeks, maybe even months ago. In my case, it seemed to coincide with installing cinnamon. Is cinnamon something you installed recently, by any chance? At any rate, I ended up having issues in cinnamon as well, and I wonder if running both DE's side-by-side potentially causes issues. For instance, I noticed that some settings in tweak-tool in gnome carried over to cinnamon. They share a lot of core apps and maybe it has something to do with config files...?? I eventually just made a list of apps I wanted to keep and did a fresh install using my existing home partition and deleted any config files I didn't want. I really needed to do that anyway. I now have KDE and Gnome. KDE is as buggy is ever, but gnome does seem to be behaving itself this time around. Sorry I don't have any better suggestions.
    Last edited by nicklej (2013-10-02 12:33:50)

  • I Beam Cursor Invisible.

    Does anyone know why the I Beam Cursor is sometimes missing or invisible in a document or on a web page.
    This behaviour is since Snow Leopard installation.
    Thanks
    AK

    Originally posted by: kjones.leapfrog.com
    I've determined that my carat becomes visible again if
    I disable "Highlight current line".
    That works for me. But it does look like there's a bug.
    Cheers,
    KC

  • Cursor invisible in JTextField

    Hi,
    I have tried disabling and making JTextField uneditable separately.
    Text if navigable but the cursor is invisible. Any solution ?

    Hi,
    I have tried disabling and making JTextField uneditable separately.
    Text if navigable but the cursor is invisible. Any solution ?

  • Making a cursor invisible?

    Does any one know how i can make my cursor turn transparent while I am running a labview program? I'm finding it rather obtrusive to have my mouse visible at all times during the program when it doesnt need to be
    "There will be water if God wills it"

    smercurio_fc wrote:
    I think making the cursor transparent is a BAD idea. What happens if your program crashes? Now you can't see the cursor. If it's obtrusive, then move the cursor off to the side. You can do this programmatically if you need to.
    Not only that but the mouse will probably still be functional. If you don't know where the cursor is and click then who knows what will happen.
    =====================
    LabVIEW 2012

  • Invisible Cursor

    Is there anybody that knows how to make the mouse cursor invisible either always or when it's in the field of my program?

    Don't know for sure, but I would start with the Component.setCursor() method. I don't see an "invisible" cursor in the Cursor class, but there is a Toolkit.createCustomCursor() method that you might look at.

  • How to 'warp' the cursor through cli

    As the topic states, I was wondering if there was a way to warp the position of the cursor on the X screen to the corner (kind of like the ratpoison window-manager's "banish"). The only way I do it now is just by moving the cursor manually with my touchpad to the bottom right corner and then disabling it (via touchpad 'disable' button). I was just curious if there was a way to do this with the command-line, such as sending a signal to a certain program or library or something. I searched the forums and couldn't find anything as "cursor warp mouse, etc" were vague. But a Google search revealed something about doing
    You can instead use a custom cursor which is invisible.
    In Unix, save the following as none.cur:
    #define none_width 1
    #define none_height 1
    #define none_x_hot 0
    #define none_y_hot 0
    static unsigned char none_bits[] = {
    0x00};
    Then use:
    proc show_cursor {} { .c conf -cursor "" }
    proc hide_cursor {} { .c conf -cursor "@path_to_cursor/none.cur black" }
    This is supposed to make the cursor invisible and then reveal it again (could be keybound, I guess) but I can't seem to get it to work. Any tips on warping it to the corner or making it completely disappear/reappear are appreciated, thanks.

    Peasantoid wrote:
    To move the cursor, you'd do:
    xdotool mousemove $x $y
    where $x is the width of your screen and $y is the height.
    Oh, neat. I didn't even have that installed. Did so, and it works like a charm! Thanks, much.
    Peasantoid wrote:
    Disabling touchpad:
    synclient -s TouchpadOff=1
    (if you have a Synaptics touchpad)
    Well, I tried this from the command-line and it says:
    %: synclient -s TouchpadOff=1
    Can't access shared memory area. SHMConfig disabled?
    %: sudo synclient -s TouchpadOff=1
    Can't access shared memory area. SHMConfig disabled?
    So I went to http://embraceubuntu.com/2006/03/24/dis … -touchpad/ and did as stated, adding the xorg.conf entry, etc, then restarted X and it still says the thing about SHMConfig disabled.  Not a big deal, I can always just press the little button on my laptop anyway; just like mapping the command to another key. Still, I'm wondering why it wont work.
    @Procyon: Thanks! I was wondering about that. I'm on a laptop so I won't need the multi-monitor thing, not just yet anyway.

  • Cursor in swing

    I am very new to swing, and have gone thru the swing tutorial looking for how to make the cursor invisible, and I just cant seem to find it.
    Can someone help me out? I have a textarea and I want no blinking cursor in the area.
    THANKS
    John McDonald

    THANKS.... that did if for me.... I appreciate the help
    textField.addFocusListener( new FocusAdapter()
         public void focusGained(FocusEvent e)
              textField.getCaret().setVisible(false);

  • How does one use the middle and right buttons in AIR without the cursor showing?

    All I want to do is use all three botton clicks without the cursor showing (assistive technology situation). So I use Mouse.hide(). All works fine with the Left mouse button. With the middle and right buttons the cursor reappears as soon as the middle and right mouse is in the DOWN state (and stays visible until rehidden--see code). Are there Mouse parameters that could be added? (I can't find any such references.) Do I need to create a custom cursor Class that makes the cursor invisible at all times? Here is my simple AS 3 test code.
    // MyClickListener.fla
    // Using the Stage to listen for button events
    // Why do the Middle and Right clicks reexpose the mouse cursor as soon as the DOWN state is encountered?
    import flash.display.DisplayObject;
    import flash.events.*;
    import flash.ui.Mouse;
                Mouse.hide();
                var leftClick:int = 0;
                var middleClick:int = 0;
                var rightClick:int = 0;   
    function leftClickHandler(event:MouseEvent):void
                // Mouse.hide();   // I do not need this -- mouse cursor does not reappear
                trace(event.target.name);          
                trace("You pressed the Left Button.");
                leftClick ++;
                trace("Left Clicks = " + leftClick);
    function middleClickHandler(event:MouseEvent):void
                Mouse.hide(); //I use this to rehide the mouse that reappears after click.
                trace(event.target.name);
                trace("You pressed the Middle Button.");
                middleClick ++;
                trace("Middle Clicks = " + middleClick);
    function rightClickHandler(event:MouseEvent):void
                Mouse.hide();  // I use this to rehide the mouse that reappears after click.
                trace(event.target.name);
                trace("You pressed the Right Button.");
                rightClick ++;
                trace("Right Clicks = " + rightClick);
    stage.addEventListener(MouseEvent.CLICK, leftClickHandler);
    stage.addEventListener(MouseEvent.MIDDLE_CLICK, middleClickHandler);
    stage.addEventListener(MouseEvent.RIGHT_CLICK, rightClickHandler);
    Help appreciated.
    Thanks,
    Michael
    Message was edited by: MBM111

    Dear Tuttle and Tom:
    You both sent me to the appropriate place. I downloaded the instruction file (PDF). Many thanks.
    Incidentally, I then downloaded the upgrade offered at the top of that page (from v3.2 to v3.2.4) but after ±90% of the necessary time needed, it shut down with a "Failed to Mount" message (whatever that might mean). It took more than 28 minutes to download that much even though I'm using DSL! Have either of you upgraded to v3.2.4 with or without difficulty?
    Thanks again for your right-on assistance.
    PowerBook G4   Mac OS X (10.4.2)  

  • Can't change cursor using Java 1.4

    Hi all,
    I wrote a program that worked while I had my Java Platform set to be 1.5. However, when I set my platform to be 1.4.2 (Java Hotspot) I encounter an error. What would be the best way to make the program work as I would like it to?
    The code is:
      Toolkit tk = Toolkit.getDefaultToolkit();
      Cursor invisCursor = tk.createCustomCursor(tk.createImage(""),new Point(),null);
      this.setCursor(invisCursor);that is, I'm trying to hide the mouse cursor in my full-screen application.
    When running the program in 1.4, the program works, but the mouse does not disappear and I get the following error:
      2006-12-05 14:52:21.935 java[744] *** NSThread: ignoring exception '*** -[NSCFArray objectAtIndex:]: index (2) beyond
       bounds (2)' that raised during delayed perform of target 0xa9a8bc20 and selector '_setNativeCursor:'What would be the best way to make my cursor invisible using Java 1.4?
    Thanks!

    Ok, here's my SSCCE that replicates my problem on my computer.
    I am using a Mac (didn't get to try it on my PC, but regardless, I need this to work on a Mac), and the problem only occurs when I am using set my libraries to be Java 1.4.2.
    The first option in hideMouse() simply fails to hide my mouse.
    The second option fails to hide my mouse, and gives me the following error message:
      2006-12-06 10:02:27.785 java[394] *** NSThread: ignoring exception '*** -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)'
        that raised during delayed perform of target 0xa9a8bc20 and selector '_setNativeCursor:'It gives me this message only if I move my mouse, and repeats this message for as long as I move my mouse.
    My goal is to hide my mouse.
    Any help will be more than appreciated.
    SSCCE:
    import java.awt.*;
    import javax.swing.*;
    public class MouseExample extends JFrame {
        public MouseExample() {
            makeFullScreen();
            hideMouse();
        private void makeFullScreen(){
            this.setUndecorated(true);
            this.setResizable(false);
            GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
            GraphicsDevice device = env.getScreenDevices()[0];  
            DisplayMode oldMode = device.getDisplayMode();
            this.setSize(new Dimension(oldMode.getWidth(), oldMode.getHeight()));       
            device.setFullScreenWindow(this);
            addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyPressed(java.awt.event.KeyEvent evt) {
                    System.exit(0);
        private void hideMouse(){
            // ***** Neither this:
            ImageIcon emptyIcon = new ImageIcon(new byte[0]);
            Cursor invisibleCursor = getToolkit().createCustomCursor(
                    emptyIcon.getImage(), new Point(0,0), "Invisible");
            this.setCursor(invisibleCursor);
            // ***** nor this:
            Toolkit tk = Toolkit.getDefaultToolkit();
            Cursor invisCursor = tk.createCustomCursor(tk.createImage(""),new Point(),null);
            this.setCursor(invisCursor);
            // ***** works
        public static void main(String[] args) {
            MouseExample m = new MouseExample();
    }

  • Hide the mouse cursor for whole application

    I can hide a mouse cursor for my frame with following code:
    int[] pixels = new int[16 * 16];
    Image image = Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(16, 16, pixels, 0, 16));
    Cursor transparentCursor =Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), "invisibleCursor");
    myFrame.setCursor(transparentCursor);What is the simple way to set the cursor invisible for all current and future childs of my frame?

    hi,
    write a new class for this: class CursorHandler
      private static Vector frames = new Vector ();
      public static void addFrame (JFrame f)
        frames.add (f);
      public static void setCursor (Cursor s)
        for (int i = 0; i < frames.size (); i++)
          JFrame f = (JFrame) frames.get (i);
          f.SetCursor (s);
    }then just do:CursorHandler.addFrame (this); //for all frames
    CursorHandler.setCursor (new Cursor (Cursor.WAIT_CURSOR)); //in any framegreetings,
    Stijn

  • Cursor in FullScreenMode

    I have my game in FullScreenMode, and i cant seem to find a way to
    make the cursor invisible, is it even possible?
    I think i played a game in fullscreen one time and the cursor wasnt there.
    Can someone tell me if what im talking about is possible in java, or any language?

    A real quick and nasty way to do it would be to create a cutom cursor- but use a completely transparent GIF- this way the user would never see the it!!
    The only danger is, I presume they would see be able to cause mouse events- you would obviously have to handle this in your app i.e. only use keyboard controls.

  • How to hidden mouse pointer?

    When mouse moves inside Frame, how to hidden mouse pointer?
    Thanks,
    Quinten

    It depends on what you mean. If you want to make the cursor invisible, here is one way of doing it:
                ImageIcon emptyIcon = new ImageIcon(new byte[0]);
                Cursor invisibleCursor = getToolkit().createCustomCursor(
                    emptyIcon.getImage(), new Point(0,0), "Invisible");
                frame.getContentPane().setCursor(invisibleCursor);Note that even though the cursor is invisible it will still be a cursor, i.e. you can click on buttons etc.
    Or do you want to disable the cursor completely?

Maybe you are looking for