Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Rep Power

    Default Mouse Curosr, Music

    Hi There
    Ive been doing a program for uni for a while now its due in tomorrow. so my program does what I want it to do now mostly!. But I wanted to try and get a mouse icon on my screen that isent in the netbeans 6.5 default cursors but dont know how to do that. any help would be great.

    And secondly I wanted to add a music file to my program so that it plays a certain song when the user plays my game on the main screen. any help with this also would be great.


  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    The Toolkit class has a createCustomCursor method that you can use.
    You can create your own image by making a BufferedImage and drawing on it.
    Use Cursor methods and a MouseMotionListener/Adapter to change the cursor for desired components/situations.
    Creating and Drawing to an Image

Similar Threads

  1. Music in Java Program
    By AWPtic in forum New To Java
    Replies: 1
    Last Post: 04-06-2009, 07:35 PM
  2. adding music to a applet.
    By ramsrocker in forum New To Java
    Replies: 1
    Last Post: 02-14-2009, 05:31 AM
  3. Please recommend music to ringtone converter
    By hyang in forum Sun Java Wireless Toolkit
    Replies: 2
    Last Post: 01-26-2009, 06:15 PM
  4. Play music
    By carderne in forum New To Java
    Replies: 4
    Last Post: 08-05-2008, 02:09 PM
  5. Music File Conversion
    By Dave Almighty in forum Advanced Java
    Replies: 11
    Last Post: 04-21-2008, 04:30 AM

Posting Permissions

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