resize( width, height )的问题??没反应!
import java.applet.Applet;
import java.applet.AppletStub;
import java.awt.*;
public class QLoader extends Applet
implements Runnable, AppletStub {
String appletToLoad;
Thread appletThread;
public void init() {
appletToLoad = getParameter("appletToLoad");
setBackground(Color.white);
}
public void paint(Graphics g) {
g.drawString("Loading the BIG ONE ...", 30, 30);
}
public void run() {
try {
Class appletClass = Class.forName(appletToLoad);
Applet realApplet = (Applet)appletClass.newInstance();
realApplet.setStub(this);
setLayout( new GridLayout(1,0));
add(realApplet);
realApplet.init();
realApplet.start();
}
catch (Exception e) {
System.out.println( e );
}
validate();
}
public void start(){
appletThread = new Thread(this);
appletThread.start();
}
public void stop() {
appletThread.stop();
appletThread = null;
}
public void appletResize( int width, int height ){
resize( width, height );
}
}
第一问题:
注:::我把RESIZE中的数值改了后没什么变化啊?
请问下:public void appletResize( int width, int height ){
resize( width, height );
}
这个有什么用???我觉得都没用到,在这里???
谢谢了啊
第二问题:
请问这里的setStub是什么意思啊。我查了API还是看不懂,说太少了
问题点数:20、回复次数:4Top
1 楼pigrain(猪小雨)(我是微软最差的MCP)回复于 2004-08-02 02:43:49 得分 0
要沉了。。自己先顶Top
2 楼pigrain(猪小雨)(我是微软最差的MCP)回复于 2004-08-02 12:58:03 得分 0
谁可以帮我啊Top
3 楼umbrella1984(雨伞(KEN))回复于 2004-08-02 13:06:49 得分 20
www.phpx.comTop
4 楼pigrain(猪小雨)(我是微软最差的MCP)回复于 2004-08-03 13:05:33 得分 0
咳Top
相关问题
- how to make the width of a statusbar = form width and automatic resize?
- TIcon的width和Height
- public Rect(int width,int height){this(0,0,width,height);}
- report builder 每页height,width如何设置
- <a href="#" onclick="open('url','窗口','width=+"+ screen.width +",height=300')"
- scale height和scale width如何设呀?
- 有办法得到一个对象的属性列表吗?比如<tr width='95%' height='20' ...>中width,height...
- ☆★☆★没反应?为什么没反应★☆★☆
- textbox反应太慢?
- 看谁反应快




