• 大小: 191KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-08-28
  • 语言: Java
  • 标签: 完整  

资源简介

目 录 1、学生成绩评定表………………………………………………3 2、课程设计任务说明书…………………………………………6 3、需求分析………………………………………………………7 4、程序设计过程…………………………………………………7 4.1 实验原理…………………………………………………7 4.2 程序设计图………………………………………………12 4.3 核心代码…………………………………………………13 5、实验结果………………………………………………………23 6、总结分析………………………………………………………23 8、参考文献………………………

资源截图

代码片段和文件信息

//ppp.java
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.net.MalformedURLException;
import java.util.Vector;
import javax.media.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.filechooser.FileFilter;
import javax.swing.*;

/*********************************************************************************/

public class ppp extends Jframe implements ChangeListener{
float newTime;
float fileTime;
 
boolean temp = false;
    boolean fullscreen=false;
boolean play_temp = false;
boolean IsPlaying=false;   //通过这个变量来决定“play”按钮是播放新的视频还是进行暂停或继续播放
private boolean mouseReleased=false;

private boolean isSingle_play=false;   //4种播放模式
private boolean isSingle_loop=false;
private boolean isLoop_play=false;
private boolean isRandom_play=true;
 
static int playlist_count=0;
static Thread timeThread;
Vector fileName = new Vector();// musicList-用于装列表中的元素
Vector fileDirection = new Vector();//保存文件路径
 
JMenuBar MBar = new JMenuBar();
JPopupMenu popupMenuList=new JPopupMenu();
JPopupMenu rightClickList=new JPopupMenu();
JMenuItem menuItem_playSelect=new JMenuItem(“播放选中文件“);
JMenuItem menuItem_delete =new JMenuItem(“从列表中删除“);
JMenuItem menuItem_Addfile=new JMenuItem (“向列表中添加“);
JMenuItem menuItem_deleteAll=new JMenuItem(“清除播放列表“);

JMenuItem menuItem_paly=new JMenuItem(“播放/暂停“);
JMenuItem menuItem_stop=new JMenuItem(“停止“);
JMenu menuItem_controlPlayer= new JMenu(“播放控制“);
JMenuItem menuItem_allScreen=new JMenuItem(“全屏“);
JMenuItem menuItem_skinForwind=new JMenuItem(“快进“);
JMenuItem menuItem_rewind=new JMenuItem(“快退“);
JMenuItem menuItem_exit=new JMenuItem(“退出“);

JMenu file = new JMenu(“文件“);
JMenu play = new JMenu(“播放“);
JMenu help = new JMenu(“帮助“);

JMenuItem open=new JMenuItem(“打开文件“);
JMenuItem exit=new JMenuItem(“退出“);

JMenuItem playOrpause=new JMenuItem(“播放/暂停“);
JMenuItem stop=new JMenuItem(“停止“);
JMenu playControl=new JMenu(“播放控制“);
JMenu playList=new JMenu(“播放列表“);
JMenu volume=new JMenu(“音量“);
  
JMenuItem quik_forward=new JMenuItem(“快进“);
JMenuItem quick_back=new JMenuItem(“快退“);
  
    ButtonGroup bgroup1=new ButtonGroup();
JRadioButtonMenuItem single_play=new JRadioButtonMenuItem (“单曲播放“);
JRadioButtonMenuItem single_loop=new JRadioButtonMenuItem (“单曲循环“);
JRadioButtonMenuItem loop_play = new JRadioButtonMenuItem (“循环播放“);
JRadioButtonMenuItem random_play=new JRadioButtonMenuItem (“随机播放“);
  
JMenuItem volume_increase=new JMenuItem(“增大“);
JMenuItem volume_decrease=new JMenuItem(“减小“);
JMenuItem volume_no   =   new JMenuItem(“静音“);
  
JMenuItem about=new JMenuItem(“关于“);
    JMenuItem help_=new JMenuItem(“帮助“); 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     215552  2009-01-06 21:21  java课程设计报告---视频播放器.doc

     文件        817  2009-01-04 17:44  Player\.classpath

     文件        382  2009-01-04 17:43  Player\.project

     文件        629  2009-01-04 17:43  Player\.settings\org.eclipse.jdt.core.prefs

     文件        813  2009-01-07 01:47  Player\bin\MyFileFilter.class

     文件       2547  2009-01-07 01:47  Player\bin\ppp$1.class

     文件        630  2009-01-07 01:47  Player\bin\ppp$10.class

     文件        629  2009-01-07 01:47  Player\bin\ppp$11.class

     文件       1130  2009-01-07 01:47  Player\bin\ppp$12.class

     文件       1074  2009-01-07 01:47  Player\bin\ppp$13.class

     文件       1402  2009-01-07 01:47  Player\bin\ppp$14.class

     文件        629  2009-01-07 01:47  Player\bin\ppp$15.class

     文件        630  2009-01-07 01:47  Player\bin\ppp$16.class

     文件        641  2009-01-07 01:47  Player\bin\ppp$17.class

     文件        550  2009-01-07 01:47  Player\bin\ppp$18.class

     文件        730  2009-01-07 01:47  Player\bin\ppp$19.class

     文件        967  2009-01-07 01:47  Player\bin\ppp$2.class

     文件        730  2009-01-07 01:47  Player\bin\ppp$20.class

     文件        730  2009-01-07 01:47  Player\bin\ppp$21.class

     文件        730  2009-01-07 01:47  Player\bin\ppp$22.class

     文件       1250  2009-01-07 01:47  Player\bin\ppp$23.class

     文件       1351  2009-01-07 01:47  Player\bin\ppp$24.class

     文件       1846  2009-01-07 01:47  Player\bin\ppp$25.class

     文件        639  2009-01-07 01:47  Player\bin\ppp$26.class

     文件       1384  2009-01-07 01:47  Player\bin\ppp$27.class

     文件       1486  2009-01-07 01:47  Player\bin\ppp$28.class

     文件       1030  2009-01-07 01:47  Player\bin\ppp$29.class

     文件       1882  2009-01-07 01:47  Player\bin\ppp$3.class

     文件       1201  2009-01-07 01:47  Player\bin\ppp$30.class

     文件       2920  2009-01-07 01:47  Player\bin\ppp$31.class

............此处省略40个文件信息

评论

共有 条评论

相关资源