Results 1 to 2 of 2

Thread: Cursor Size

  1. #1
    ScottVal is offline Member
    Join Date
    Jan 2009
    Rep Power

    Default Cursor Size

    What is the size of the cursor?
    I don't see this documented, but I believe, through trial and error, that the size of the cursor is 32 x 32.

    I've tried creating cursors of different sizes and they seem to be transformed automatically to 32 x 32. (Stretched or shrunk as necessary.)

    And I don't see any way to change the cursor size.

    Maybe it is platform dependent? (I'm on Win XP.)

    What do you think?

  2. #2
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Rep Power


    It's certainly platform dependent.

    You can call Toolkit's getBestCursorSize() method to find out the nearest supported size to a given preferred cursor size -- this is the size to which Java/the system will convert a custom cursor of that size.

    As far as Java is concerned, it certainly appears to want to set any given cursor to a single size (as you say, 32x32)-- this is the behaviour that is documented to occur when the system in question supports only a single cursor size. I couldn't tell you for definite if XP really does impose that restriction, but as far as setting the cursor in Java is concerned, the bottom line is the same...

Similar Threads

  1. How to Hide cursor
    By priya in forum Java Software
    Replies: 1
    Last Post: 12-09-2010, 09:39 PM
  2. [SOLVED] Navigate with Cursor keys
    By hannehomuth in forum Advanced Java
    Replies: 7
    Last Post: 07-25-2008, 12:22 PM
  3. Cursor
    By serfster in forum New To Java
    Replies: 2
    Last Post: 06-15-2008, 05:49 AM
  4. GUI cursor change problem
    By ludragon in forum Advanced Java
    Replies: 2
    Last Post: 01-09-2008, 10:03 PM
  5. Using a cursor
    By notnumber6 in forum New To Java
    Replies: 3
    Last Post: 11-26-2007, 10:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts