资源简介
代码片段和文件信息
import java.applet.applet;
import java.applet.appletContext;
import java.applet.appletStub;
import java.applet.AudioClip;
import java.awt.frame;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.WindowListener;
import java.awt.event.WindowEvent;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Iterator;
/**
* A frame for running an applet so the applet can run as an application.
*/
public class appletframe extends frame implements appletStub appletContext WindowListener {
Gameapplet applet;
Hashtable props = new Hashtable ();
/**
* Construct a frame of the given size to run the given applet
*
* @param name the frames title
* @param applet the applet to run
* @param width width of the game frame
* @param height height of the game frame
*/
public appletframe (String name Gameapplet applet int width int height)
{
super (name);
this.applet = applet;
applet.setStub (this);
applet.setAsApplication();
// Get insets
show ();
width += this.getInsets().left + this.getInsets().right;
height += this.getInsets().top + this.getInsets().bottom;
hide ();
setSize (width height);
this.add (“Center“ applet);
show ();
addWindowListener (this);
applet.init ();
applet.start ();
}
// appletStub API
public void appletResize (int width int height) {
setSize (width height);
}
public appletContext getappletContext () {
return this;
}
public URL getCodebase () {
URL u = null;
try {
u = new File (System.getProperty (“user.dir“)).toURL ();
}
catch (MalformedURLException me) {}
return u;
}
public URL getDocumentbase () {
URL u = null;
try {
u = new File (System.getProperty (“user.dir“)).toURL ();
}
catch (MalformedURLException me) {}
return u;
}
public String getParameter (String name) {
return (String) props.get (name);
}
public void setParameter (String name String value) {
props.put (name value);
}
public boolean isActive () {
return true;
}
// appletContext API
public applet getapplet (String name) {
return applet;
}
public Enumeration getapplets () {
return null;
}
public AudioClip getAudioClip (URL url) {
return applet.newAudioClip (url);
}
public Image getImage (URL url) {
return Toolkit.getDefaultToolkit ().getImage (url);
}
pu
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 483 2006-05-11 08:49 FrozenBubble\FrozenBubble.jcw
文件 0 2006-05-09 17:00 FrozenBubble\aa.txt
文件 22016 2006-05-14 10:40 FrozenBubble\新建 Microsoft Word 文档.doc
文件 2197 2006-05-16 16:25 FrozenBubble\FrozenBubble\FrozenBubble.jcp
文件 7460 2006-05-08 21:30 FrozenBubble\FrozenBubble\SplashScreen.java
文件 1157 2006-05-09 15:37 FrozenBubble\FrozenBubble\GameContext.java
文件 2053 2006-05-09 15:37 FrozenBubble\FrozenBubble\GameMedia.java
文件 1870 2006-05-09 15:37 FrozenBubble\FrozenBubble\GameFont.java
文件 478 2006-05-09 15:37 FrozenBubble\FrozenBubble\ImageSprite.java
文件 17634 2006-05-08 21:28 FrozenBubble\FrozenBubble\FrozenGame.java
文件 1785 2006-05-08 21:29 FrozenBubble\FrozenBubble\HighscoreManager.java
文件 3286 2006-05-08 21:29 FrozenBubble\FrozenBubble\HighscoreScreen.java
文件 5580 2006-05-08 21:29 FrozenBubble\FrozenBubble\LaunchBubbleSprite.java
文件 1931 2006-05-08 21:30 FrozenBubble\FrozenBubble\LevelManager.java
文件 764 2006-05-08 21:30 FrozenBubble\FrozenBubble\LifeManager.java
文件 2637 2006-05-08 21:26 FrozenBubble\FrozenBubble\PenguinSprite.java
文件 18554 2006-05-09 15:37 FrozenBubble\FrozenBubble\MiniDOM.java
文件 2458 2006-05-09 15:37 FrozenBubble\FrozenBubble\ScrollingTextSprite.java
文件 3030 2006-05-09 15:37 FrozenBubble\FrozenBubble\SoundManager.java
文件 1677 2006-05-09 15:37 FrozenBubble\FrozenBubble\Sprite.java
文件 1245 2006-05-09 15:37 FrozenBubble\FrozenBubble\SunAudioManager.java
文件 1525 2006-05-09 15:37 FrozenBubble\FrozenBubble\TextSprite.java
文件 1443 2006-05-09 17:48 FrozenBubble\FrozenBubble\src_frozenbubble.txt
文件 486 2006-05-09 15:38 FrozenBubble\FrozenBubble\InvalidConstructionException.java
文件 1815 2006-05-09 17:48 FrozenBubble\FrozenBubble\SunAudioManager.class
文件 5351 2006-05-16 16:25 FrozenBubble\FrozenBubble\Gameap
文件 2986 2006-05-14 10:43 FrozenBubble\FrozenBubble\GameScreen.class
文件 1145 2006-05-09 17:48 FrozenBubble\FrozenBubble\GameContext.class
文件 2329 2006-05-09 17:48 FrozenBubble\FrozenBubble\GameMedia.class
文件 1709 2006-05-09 17:48 FrozenBubble\FrozenBubble\Sprite.class
............此处省略100个文件信息
相关资源
- 疯狂Java讲义(第4版)地址.txt
- j67rc0.jar
- JavaWeb聊天室毕设项目.txt
- JetbrainsCrack-2.7-release-str.jar
- ExcelUtils.java
- java培训视频资源获取.zip
- 一个基于androidstudio开发的二手交易平
- java书籍Java从入门到精通(第三版)
- Android开发从入门到精通第2版.rar
- Android智能穿戴设备开发实战详解.ra
- MD5加密的jar包.zip
- androidlog.7z
- java8.txt
- JavaSocket建立连接和发送消息.zip
- java基于socket公共聊天室的实现.zip
- javaismy.txt
- 《Java从入门到精通》第4版光盘资源
- BAT大牛带你深度剖析Android10大开源框
- Java从入门到精通视频+Java架构师vip视
- JAVA面试实际项目经验.rar
- 2015年传智播客java第33期全套完整.tx
- 轻量级JavaEE企业级应用实战.txt
- 毕向东javaSE基础视频35天.txt
- JetbrainsCrack-2.6.10-release-enc.jar
- C开发Android应用实战_pdf_以及.zip
- jAVA从入门到精通.docx
- 百度网盘javaEE.txt
- Android安卓开发全套112GB教程很全.txt
- SMS4国密封装接口直接可用java.zip
- Android 仿QQ侧滑删除—一个满足ListVi
评论
共有 条评论