using custom cursor image

Discussion in 'Java' started by Ian, Apr 23, 2004.

  1. Ian

    Ian Guest

    Hi,
    Is there a way to customise the cursor to use different images - I have a
    number of gifs in the current directory of my source files which I would
    like to use.

    From what I understand of the API and the Java tutorial you can use the
    various images/cursors from inside the API for cursors. But if I distribute
    my program to another PC which does not have these images then the cursor
    types may not be available(as not in their API images directory) . Basically
    I need the cursor image to point to my gif file -- ./myImage.gif

    Any pointers appreciated
    regards
     
    Ian, Apr 23, 2004
    #1
    1. Advertising

  2. On Fri, 23 Apr 2004 15:50:15 +0930, Ian wrote:

    > ...if I distribute
    > my program to another PC which does not have these images then the cursor
    > types may not be available(as not in their API images directory) . Basically
    > I need the cursor image to point to my gif file -- ./myImage.gif


    Distribute the image in your .jar file,
    use Class.getResource("/myImage.gif")
    to get an URL and you are in business.
    <http://www.physci.org/codes/javafaq.jsp#path>

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
     
    Andrew Thompson, Apr 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,323
    Bruce Barker
    Apr 5, 2005
  2. Niels Dybdahl

    inverting custom cursor

    Niels Dybdahl, Nov 21, 2005, in forum: Java
    Replies:
    0
    Views:
    405
    Niels Dybdahl
    Nov 21, 2005
  3. invy
    Replies:
    4
    Views:
    391
    CBFalconer
    Dec 28, 2006
  4. dmaziuk
    Replies:
    3
    Views:
    581
    Chris Gonnerman
    Jan 25, 2011
  5. Roger
    Replies:
    1
    Views:
    90
Loading...

Share This Page