import java.awt.*;
import java.lang.System;
public class Memo extends Frame
{ public String motd;
Memo(String s){
super("Memo Frame");
motd=s;
resize(300,300);
}
Memo(){
this("This is a Memo");
} public void paint(Graphics g){
g.drawString(motd,15,15);
g.drawString("Click anywhere to Exit",15,25);
}
public void start(){
show();
} public boolean mouseDown(Event e,int x,int y){
hide();
dispose();
System.exit(0);
return false;
} public static void main(String args[]){
Memo m;
if(args.length>0){
m=new Memo(args[0]);
}
else
{
m=new Memo();
}
m.start();
}
}
出错信息是.... uses or override a deprecated APi
recoplile with -deprecation for adeails.
import java.lang.System;
public class Memo extends Frame
{ public String motd;
Memo(String s){
super("Memo Frame");
motd=s;
resize(300,300);
}
Memo(){
this("This is a Memo");
} public void paint(Graphics g){
g.drawString(motd,15,15);
g.drawString("Click anywhere to Exit",15,25);
}
public void start(){
show();
} public boolean mouseDown(Event e,int x,int y){
hide();
dispose();
System.exit(0);
return false;
} public static void main(String args[]){
Memo m;
if(args.length>0){
m=new Memo(args[0]);
}
else
{
m=new Memo();
}
m.start();
}
}
出错信息是.... uses or override a deprecated APi
recoplile with -deprecation for adeails.
解决方案 »
- (100分)请帮帮我,为什么我的服务启动不了!(在线等!在线送分)
- 如何用挂钩截获系统的键盘事件
- 关于在delphi中使用MsWinsock.ocx控件,用senddata发送数据的问题,请专家看看!
- 急 端口映射: 我想在192.168.0.1 的电脑上,将它的端口2000 映射到我的电脑上的2000 上! 就是这个简单的问题! 有什么办法
- ACCESS数据库查询时间的问题,请进,急~搞定马上结~
- 请问哪里可以下载到delphi6.0,谢谢!
- 登陆退出程序错误
- delphi的16进制转换
- delphi已经算是入门了,如何深入
- 问题!如何识别鼠标动作(如画圆等)
- 如何注册dll?
- 请大家帮我女儿起个名字,参与有分,被使用后,分最多,谢谢各位!
好像可以了...谢了......