我有一个JAVA的音频播放代码 想加入音量控制和进度条 那位大哥能帮忙啊

来源:百度知道 编辑:UC知道 时间:2024/04/28 19:02:03
import java.applet.*;import java.awt.*;import java.awt.event.*;
public class by10 extends Applet implements ActionListener,Runnable,ItemListener
{ AudioClip clip;//声明一个音频对象.
Choice choice;
TextField text;
Thread thread;
String item=null;
Button button_play,button_loop,button_stop;
public void init()
{ choice=new Choice();
thread=new Thread(this);
int N=Integer.parseInt(getParameter("总数"));
for(int i=1;i<=N;i++)
{ choice.add(getParameter(String.valueOf(i)));
}
button_play=new Button("开始播放");
button_loop=new Button("循环播放");
button_stop=new Button("停止播放");
text=new TextField(12);
button_play.addActionListener(this);
button_stop.addActionListener(this);
button_loop.addActionListener(this);
choice.addItemListener(this);
add(choice);
a

如果不是很重要 为了玩的话 劝你放弃 JAVA 做的音频播放软件不行 而且你还用applet 我原来弄过 , 绝对的木,光这些I/O 就把我弄的快疯了

问题呢?