晕,这样的例子哪本java的教科书上都有的啊,去翻翻就查到了啊
解决方案 »
- <property name="cronExpression" value="3/10 * * * * ?" />这个是啥意思啊
- JVM内存管理与JAVA内存管理到底有何区别?
- quartz的问题(急问)
- 数据库中有一列叫做count,和函数count相混淆
- combobox不显示是咋回事呢?
- 求助 对数组元素进行分组的算法
- 请问byte和char如何相互转换?
- 问: transient关键字是什么意思?有什么作用?
- JFC Swing的JFC 是什么意思啊?
- 请问如何找到isapi_redirect.dll ,提供可用下载地址。
- 学习《Java正则表达式详解》中举的第一个例子后,一个问题:
- 一个关于BLOB的问题,听高手解答
===========================
class MyFrame extends Frame implements ActionListener{
Frame f;
Label label;
TextField text;
MyFrame(String s){
super(s);
f = new Frame(s);
setLayout(new BorderLayout());
text = new TextField("11212123",30);
label = new Label("Default");
text.addActionListener(this);
add(text,"North");
add(label,"South");
setSize(200,200);
setVisible(true);
addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent e){System.exit(0);}}); }
/* (非 Javadoc)
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent e) {
// TODO 自动生成方法存根
if(e.getSource() == text){
label.setText(text.getText());
}
}
}public class temp { /**
*
*/
public temp() {
super();
// TODO 自动生成构造函数存根
}
public final static void main(String[] args) { Frame f = new MyFrame("我的窗口");
f.pack();
}
}