adding sound to buttons/onclick


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: adding sound to buttons/onclick

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1

    adding sound to buttons/onclick

    hi, was wondering if anyone could help me with adding sound to a button so that when its clicked it basically makes a sound/plays a short beep sound file???

    also do i import a sound library?

    cheers :-)

  2. #2
    Join Date
    Dec 2005
    Posts
    19
    do you have a sound library already? In JAR format is it?

    Also what IDE you are using? If using Eclipse you can go to: Windows->preferences. Expand: java -> Classpath variables. Then click on New... and specify the path your JAR file is located. You can put in any name though.

    After that (Still inside Eclipse), go to the project where you need to import this library, right-click -> properties. Then go to: Java Build Path -> Library tab. Click on add variable and locate the JAR file you added just now. Done!

  3. #3
    Join Date
    Mar 2004
    Posts
    635

Similar Threads

  1. Is the Java Sound API too complex?
    By RikMeucci in forum Java
    Replies: 2
    Last Post: 12-05-2005, 06:59 AM
  2. how change preferred sound card?
    By midnait in forum VB Classic
    Replies: 0
    Last Post: 04-27-2001, 03:23 AM
  3. how change preferred sound card?
    By midnait in forum VB Classic
    Replies: 0
    Last Post: 04-27-2001, 03:23 AM
  4. Disabling Default Sound in NT
    By Drew Warren in forum VB Classic
    Replies: 4
    Last Post: 05-08-2000, 01:52 PM
  5. Disabling Default Sound in NT
    By Drew Warren in forum VB Classic
    Replies: 0
    Last Post: 05-08-2000, 01:21 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center