标题:求高手帮忙,编译不过去.
取消只看楼主
jinyan54
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2005-11-20
 问题点数:0 回复次数:0 
求高手帮忙,编译不过去.

我是一个java初学者,这是我编的一个小程序,可是为什么编译不过去呀 ,请高手指点,在线等.
import java.awt.*;
import java.awt.event.*;
class MyFrame extends Frame implements WindowListener{
TextArea text;
MyFrame(String s){
super(s);
setBounds(100,100,200,300);
setVisible (true);
text = new TextArea();
add(text,BorderLayout.CENTER);
addWindowListener(this);
validate();
}
public void windowActivated(WindowEvent e){
text.append("\n 我被激活");
validate();
}
public void windowDeactivated(WindowEvent e){
text.append("\n我不是激活状态");
setBounds(0,0,400,400);
validate();
}
public void windowClosing(WindowEvent e){
text.append("\n窗口正在关闭");
dispose();
}
public void windowClosed(WindowEvent e){
System.out.println("\n程序结束运行");
System.exit(0);
}
public void windowconified(WindowEvent e){
text.append("\n我图标化了");
}
public void windowDeiconified(WindowEvent e){
text.append("\n我撤消图标化");
setBounds(0,0,400,400);
validate();
}
public void windowOpened(WindowEvent e){

}
}
class example{
public static void main (String[] args){
new MyFrame ("窗口");
}
}

搜索更多相关主题的帖子: 编译 
2005-11-20 23:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-34381-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.236999 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved