欢迎来到天天文库
浏览记录
ID:11611596
大小:435.50 KB
页数:107页
时间:2018-07-13
《基于java的音乐播放器设计源代码+实验报告》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、主类MUSICPLAYER类:importjava.util.*;importjavax.swing.JSlider;importjava.awt.BorderLayout;importjava.awt.FlowLayout;importjava.awt.Point;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjava.awt.event.MouseAdapter;importjava.awt.event.MouseEvent;importjava.io.Buffered
2、OutputStream;importjava.io.File;importjava.io.FileInputStream;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;importjava.io.IOException;importjava.io.ObjectInputStream;importjava.io.ObjectOutputStream;importjava.io.Serializable;importjavax.media.ControllerEvent;importjava
3、x.media.ControllerListener;importjavax.media.EndOfMediaEvent;importjavax.media.Manager;importjavax.media.MediaLocator;importjavax.media.NoPlayerException;importjavax.media.Player;importjavax.media.PrefetchCompleteEvent;importjavax.media.Time;importjavax.swing.ButtonGroup;importjavax.swing.D
4、efaultListModel;importjavax.swing.ImageIcon;importjavax.swing.JButton;importjavax.swing.JFileChooser;importjavax.swing.JFrame;importjavax.swing.JList;importjavax.swing.JMenu;importjavax.swing.JMenuBar;importjavax.swing.JMenuItem;importjavax.swing.JOptionPane;importjavax.swing.JPanel;importj
5、avax.swing.JRadioButtonMenuItem;importjavax.swing.JScrollBar;importjavax.swing.JScrollPane;importjavax.swing.filechooser.FileNameExtensionFilter;107publicclassMusicPlayerimplementsActionListener,Serializable,ControllerListener{privatestaticfinallongserialVersionUID=1L;privateJFrameframe=nul
6、l;privateJPanelcontrolPanel=null;privateJButtonbtnPlay=null;privateJButtonbtnPre=null;privateJButtonbtnNext=null;privateJScrollPanelistPane=null;privateJListlist=null;privateDefaultListModellistModel=null;privateJMenuBarmenubar=null;privateJMenumenuFile=null,menuAbout=null,menuMode=null;pri
7、vateJMenuItemitemOpen,itemOpens,itemExit,itemAbout;privateJRadioButtonMenuItemitemSingle,itemSequence,itemRandom;privateListItemcurrentItem=null;privatestaticPlayerplayer=null;privatebooleanisPause=false;privateintmode;privateintcurrentIndex;privateImage
此文档下载收益归作者所有