This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MUSIC start, not stops

 
sparsh khandelwal
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
i try to make a program,in which i use a button "music".such that if i click it then it start playing music and on other click it stop the music.
in the given program when i click on "music" button,it start music but on other click it not stop the same.
please help!!!
thanks in advance...
program.jpg
action performed when click music button
[Thumbnail for program.jpg]
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you told us which library you are using. Neither the Java SE API nor JMF has a class called AudioPlayer.
 
sparsh khandelwal
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are the libraries.......
library.jpg
libraries....
[Thumbnail for library.jpg]
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please drop the habit of posting screenshots that contain text - this forum software works quite well for text.
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't ever uses classes that are located in packages that start with sun, sunw or com.sun. These are undocumented and not part of the API. Oracle can drop or change these between each release of the JVM, and can therefore break any application that uses them.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic