TestButton
来源:互联网 发布:线性时间选择算法 编辑:程序博客网 时间:2024/06/15 17:28
import java.awt.*;
import ButtonHandler;
public class TestButton{
public static void main(String args[]){
Frame f=new Frame("Test");
Button b=new Button("Press me");
b.addActionListener(new ButtonHanler());
f.add("Center",b);
f.pack();
f.setVisible(true);
}
}
import java.awt.event.*;
public class ButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent e){
System.out.println("Action occurred");
}
}
- TestButton
- java 出现No enclosing instance of type TestButton is accessible. Must qualify the allocation with an e
- 用CSS实现表格背景颜色渐变效果
- 走近Inprise/Borland
- 如何实现<A>标记中的Title换行问题
- 使用存储过程时一个错误的解决方法
- 执行控制台程序并且获得它的输出结果
- TestButton
- pt、px、DPI:关于长度单位的误解
- 使用视图控制用户对数据访问
- POSTFIX上的邮件日志分析工具(pflogsumm)安装与配置
- 重写的JavaScript压缩合并工具
- 用 Delphi 编写 VxD 设备驱动程序(转)
- 对display:inline;与float:left;的认识
- 确保所有的非空(Non-NULL)值都是唯一的
- 如何设置delphi/cbuilder/BDE/MSSQL