请问有谁用java做过flash播放器的,小弟需求一份源码。有的请发给我一份,谢谢O(∩_∩)O.邮箱[email protected]
解决方案 »
- 进程同步问题
- 如何编写JUnit4中的运行器?
- 关于CJK解码的问题
- 如何获得远程web服务器的时间?
- java文件传输
- Fri Sep 03 09:12:45 CST 2004这种时间怎么转换?
- 散分请教老鸟关于Applet的问题,急!
- 急!如何使JTable中的所有单元格增加“失去焦点(lostfocus)"事件。(最好有源代码)
- 请问谁告诉我这是用什么做的,能不能把原代码给我?http://www.madeinwx.com.cn/gyninfo/babysails/wish/wish.htm
- 哪位能提供一份Java的程序编码风格标准?多谢了。
- java在页面中怎么控制页面5秒钟后自动跳转。
- 编译错误和运行错误,有什么区别?
使用swt来实现,前提是电脑必须安装有flash player,用native调用。
在xp下:
代码:
/*
* Christopher Deckers ([email protected])
* http://www.nextencia.net
*
* See the file "readme.txt" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
package chrriis.dj.nativeswing.swtimpl.demo.examples.flashplayer;
import java.awt.BorderLayout;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import chrriis.common.UIUtils;
import chrriis.dj.nativeswing.swtimpl.NativeInterface;
import chrriis.dj.nativeswing.swtimpl.components.JFlashPlayer;
/**
* @author Christopher Deckers
*/
public class SimpleFlashExample {
public static JComponent createContent() {
JFlashPlayer flashPlayer = new JFlashPlayer();
flashPlayer.load(SimpleFlashExample.class, "1.swf");
return flashPlayer;
}
/* Standard main method to try that test as a standalone application. */
public static void main(String[] args) {
NativeInterface.open();
UIUtils.setPreferredLookAndFeel();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame("DJ Native Swing Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(createContent(), BorderLayout.CENTER);
frame.setSize(800, 600);
frame.setLocationByPlatform(true);
frame.setVisible(true);
}
});
NativeInterface.runEventPump();
}
}截图:
我的资源有:http://download.csdn.net/download/geminit2011/4803008