资源简介
代码片段和文件信息
/* AlgAnimApp.java */
import java.awt.*;
import java.applet.*;
import java.io.*;
import java.net.*;
/**
* This class creates an applet on a java compliant web browser. There
* is a single button on the applet which will bring up a frame
* performing the corresponding algorithm animation.
*
* This class is normally NOT TO BE CHANGED and is reuseable for any
* animation algorithm.
*
* The filename of the source code and the button label are
* passed into this class from the
* applet
tag in the HTML file.
*/
public class AlgAnimApp extends applet {
static String fn_label = “filename“;
static String button_label = “buttonname“;
URL homeURL sourceURL;
/**
* A awt button to bring up a frame. This button will be disabled once
* the frame is created and will be enabled again when the frame is
* destroy.
* @see AlgAnimframe
*/
public Button start_button;
/**
* This constructor is not to be manually called. It inherits completely
* the properties of the applet class.
*/
public AlgAnimApp() {}
/**
* applet initialization method which creates the button attribute.
*/
public void init() {
setBackground( Color.white );
String file_name = this.getParameter(fn_label);
homeURL = getCodebase();
try {
sourceURL = new URL( homeURL file_name );
} catch( IOException e ) {
System.out.println(“URL error “ + file_name );
}
start_button = new Button(getParameter(button_label));
add(start_button);
validate();
} // init()
/**
* The start_button
action handling method which is
* automatically invoked when the button is pressed.
*/
public boolean action(Event e object arg) {
object target = e.target;
if (target == start_button) {
start_button.disable();
new AlgAnimframe(this sourceURL);
return true;
//setVisible(true);
}
return false;
} // action()
} // class AlgAnimApp
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-15 20:16 java算法大全源码包\
目录 0 2016-10-15 20:16 java算法大全源码包\BD\
文件 2124 1999-09-02 23:18 java算法大全源码包\BD\AlgAnimApp.java
文件 15281 1999-09-02 23:18 java算法大全源码包\BD\AlgAnimfr
文件 4894 1999-09-02 23:18 java算法大全源码包\BD\AlgThread.java
文件 3519 1999-09-02 23:18 java算法大全源码包\BD\Arc.java
目录 0 2016-10-15 20:16 java算法大全源码包\BD\BD\
文件 399 1999-09-02 23:18 java算法大全源码包\BD\BD.form
文件 788 1999-09-02 23:18 java算法大全源码包\BD\BD1.form
文件 399 1999-09-02 23:18 java算法大全源码包\BD\BD\BD.form
文件 788 1999-09-02 23:18 java算法大全源码包\BD\BD\BD1.form
文件 241 1999-09-02 23:18 java算法大全源码包\BD\BD\FB.form
文件 27786 1999-09-02 23:18 java算法大全源码包\BD\BlockDiagram.java
文件 2612 1999-09-02 23:18 java算法大全源码包\BD\DrawingObj.java
文件 3897 1999-09-02 23:18 java算法大全源码包\BD\epm.txt
文件 241 1999-09-02 23:18 java算法大全源码包\BD\FB.form
文件 856 1999-09-02 23:18 java算法大全源码包\BD\FunctionBlock.java
文件 836 1999-09-02 23:18 java算法大全源码包\BD\IOPoint.java
文件 1771 1999-09-02 23:18 java算法大全源码包\BD\LabelledBox.java
文件 83968 1999-09-02 23:18 java算法大全源码包\BD\lecf.doc
文件 755 1999-09-02 23:18 java算法大全源码包\BD\Makefile
文件 440 1999-09-02 23:18 java算法大全源码包\BD\Node.java
文件 1094 1999-09-02 23:18 java算法大全源码包\BD\Subsc
文件 1100 1999-09-02 23:18 java算法大全源码包\BD\SummingPoint.java
文件 376 1999-09-02 23:18 java算法大全源码包\BD\test.html
文件 3453 1999-09-02 23:18 java算法大全源码包\BD\Textfr
文件 3693 1999-09-02 23:18 java算法大全源码包\BD\Textfr
文件 8140 1999-09-02 23:18 java算法大全源码包\BD\TextPanel.java
文件 7190 1999-09-02 23:18 java算法大全源码包\BD\TransformPanel.java
目录 0 2016-10-15 20:16 java算法大全源码包\bin_sort\
文件 1783 1999-04-05 10:57 java算法大全源码包\bin_sort\AlgAnimApp.class
............此处省略688个文件信息
- 上一篇:java编写的QQ聊天程序
- 下一篇:Android性能监测小工具——安测试
评论
共有 条评论