登录
首页 » Java Develop » JBuilder制作音频播放程序,需要注意的是,当播放时,界面上的各个按钮应当仍然可以对用户的操作进行事件响应,所以至少需要两个线程:一个控制歌曲的播放,另外一...

JBuilder制作音频播放程序,需要注意的是,当播放时,界面上的各个按钮应当仍然可以对用户的操作进行事件响应,所以至少需要两个线程:一个控制歌曲的播放,另外一...

于 2022-07-01 发布 文件大小:5.89 kB
0 105
下载积分: 2 下载次数: 1

代码说明:

JBuilder制作音频播放程序,需要注意的是,当播放时,界面上的各个按钮应当仍然可以对用户的操作进行事件响应,所以至少需要两个线程:一个控制歌曲的播放,另外一个对用户事件进行响应。因此我们的AudioPlay类需要实现Runable接口,以使用多线程技术。根据JDK的解释-JDK1.4.0,任何需要由线程执行的实例都应当实现Runable接口,而且由于我们只需要重写run()方法和stop()方法,并给start()方法多态化,所以我们选择实现Runable接口,这样就可以不需要继承Thread类而使用Thread类的实例来运行了。-JBuilder produced audio player, it needs attention is that when players, the interface on the various buttons can still be right for users to operate the incident response, at least two threads : a control song playback, the other to users respond to the incident. Therefore we need to achieve AudioPlay category Runable interface to the use of multi-threading. According to the interpretation of JDK- JDK1.4.0 any need for threaded implementation of the examples are to be achieved Runable interface, and because we only need to be rewritten to run () method and stop () method, and to start () method is polymorphic, so we have chosen to achieve Runable Interface so you can not inherit Thread type and category of use Thread e

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • er6yerygr
    er6yerygr
    2022-02-12 11:29:01下载
    积分:1
  • My graduation project, JAVA implementation into a database, I used Java as a pro...
    本人的毕业设计,JAVA实现数据库转化,我用Java作为编程语言(Java的版本是6.0),JDOM作为XML解析器。数据库是SQL Server 2000,开发工具是NetBeans IDE 5.5 大家在运行程序的时候最好还是使用NetBeans IDE 5.5和Java 6.0,因为我设计的是图形界面,在设计的时候我用到了NetBeans的Swing设计工具Martisse,如果把我的程序放在JBuilder、Eclipse或JCreator中无法运行的(NetBeans是免费下载的) src就是我程序的源代码,XRSystem.SQL就是建立数据库的脚本文件,解压缩后在查询分析器中打开直接运行就可以建立好数据库,文件夹XML是几个XML文档示例-My graduation project, JAVA implementation into a database, I used Java as a programming language (Java version 6.0), JDOM as an XML parser. Database is SQL Server 2000, development tools, NetBeans IDE 5.5 U.S. are running the program at a time when it would be better to use NetBeans IDE 5.5 and Java 6.0, because my graphics are designed to interface design at a time when I used the NetBeans Design Tools Martisse of Swing If I put the procedure on JBuilder, Eclipse or JCreator can not run in the (NetBeans is a free download) src is the source code of my program, XRSystem.SQL is set up the database script file, unzip it in the Query Analyzer open a direct op
    2022-07-27 23:50:33下载
    积分:1
  • 我用java做的记事本,不要太好啊!
    我用java做的记事本,不要太好啊!-I do with the notebook, not very good ah!
    2022-11-08 06:55:03下载
    积分:1
  • 郭克强老师视屏教程,第一课第二部分,手机应用程序结构,适合初学者...
    郭克强老师视屏教程,第一课第二部分,手机应用程序结构,适合初学者-Shiping Guo Keqiang teacher tutorials, the first lesson the second part, cell phone use program structure, suitable for beginners
    2022-04-09 14:49:58下载
    积分:1
  •  一款改造的J2me手机游戏项目,三国战纪游戏的源代码,游戏界面略显粗糙。不过游戏基本框架已经具备。一小部分功能没有实现。   项目源码可以在eclips...
     一款改造的J2me手机游戏项目,三国战纪游戏的源代码,游戏界面略显粗糙。不过游戏基本框架已经具备。一小部分功能没有实现。   项目源码可以在eclipse中直接运行。如果拿到wtk中测试的话,请修改源代码中的文件路径,譬如把"/res"去掉即可。 游戏名称:《三国战纪》手机版 游戏类型:横版过关 游戏支持屏幕:176*208 游戏支持需求:MIDP2.0,CLDC1.1 开发平台:J2ME+eclipse3.2+wtk2.5+jdk1.6 -A transformation of the mobile J2me Games project, the source code of the game Knights of Valor, a little rough game interface. But the basic framework of the game in place. NOT a small part of the functional implementation. Project source code can be run directly in the eclipse. Wtk get tested if so, please modify the source code of the file path, for example, put "/res " can be removed. Game Name: " Knights of Valor" mobile version of Game type: Games in support of cross-boundary version of the screen: 176* 208 games support needs: MIDP2.0, CLDC1.1 development platforms: J2ME+ eclipse3.2+ wtk2.5+ jdk1.6
    2022-05-16 18:48:02下载
    积分:1
  • 聚类算法的优秀文章,适合对聚类算法做深入的研究!
    聚类算法的优秀文章,适合对聚类算法做深入的研究!-Clustering Algorithm excellent articles, suitable for clustering algorithm to do in-depth study of
    2022-02-06 19:55:46下载
    积分:1
  • This the code for updation in data base in java server pages
    This the code for updation in data base in java server pages
    2022-07-27 17:24:54下载
    积分:1
  • 销售宠物, 销售宠物
    销售宠物, 销售宠物-sales pets, marketing pets, pet sales, marketing pets, pet sales
    2023-07-08 05:55:03下载
    积分:1
  • Optimal binary tree data structure of Huffman encoding realize, for reference on...
    java的邮件发送源码,直接拷贝到tomcat下即可运行-java source of the e-mail directly copied to the tomcat to run under
    2022-02-14 17:05:59下载
    积分:1
  • eclipse快捷键大全,很实用的工具,介绍了所有的快捷键操作
    eclipse快捷键大全,很实用的工具,介绍了所有的快捷键操作-eclipse shortcut keys Daquan, a very useful tool to introduce all the shortcut keys operate
    2022-03-17 13:02:42下载
    积分:1
  • 696518资源总数
  • 104271会员总数
  • 70今日下载