-
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 :-)
-
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!
-
Similar Threads
-
By RikMeucci in forum Java
Replies: 2
Last Post: 12-05-2005, 06:59 AM
-
By midnait in forum VB Classic
Replies: 0
Last Post: 04-27-2001, 03:23 AM
-
By midnait in forum VB Classic
Replies: 0
Last Post: 04-27-2001, 03:23 AM
-
By Drew Warren in forum VB Classic
Replies: 4
Last Post: 05-08-2000, 01:52 PM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks