• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MUSIC start, not stops

 
sparsh khandelwal
Ranch Hand
Posts: 76
  • 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
[Thumbnail for program.jpg]
action performed when click music button
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are the libraries.......
library.jpg
[Thumbnail for library.jpg]
libraries....
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • 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: 20512
54
Chrome Eclipse IDE Java Windows
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic