MediaPlayer代码,部分代码,合适请用:
import java.awt.*
import java.awt.event.*
import javax.swing.*
import javax.media.*
import java.io.*
import java.util.* //为了导入Vector
//import com.sun.java.swing.plaf.windows.*
public class MediaPlayer extends JFrame implements ActionListener,Runnable
{
private JMenuBar bar //菜单条
private JMenu fileMenu,choiceMenu,aboutMenu
private JMenuItem openItem,openDirItem,closeItem,about,infor
private JCheckBoxMenuItem onTop
private boolean top=false,loop //设定窗口是否在最前面
private Player player //Play是个实现Controller的接口
private File file,listFile //利用File类结合JFileChooser进行文件打开操作,后则与list.ini有关
标签:
MediaPlayer
代码
上传时间:
2016-07-08
上传用户:爺的气质