没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本章目标;JLabel(标签);JLabel常用方法;JButton(按钮);JTextField(文本框);JTextArea(文本区域);JPasswordField(密码框) ;JCheckBox(复选框);JRadioButton(单选按钮);组合框JComboBox;组合框JComboBox—事件;public class Test4 extends JFrame implements ActionListener { String[] items = { "篮球", "足球", "乒乓球" }; JComboBox<String> box = new JComboBox<String>(items); Test4() { box.addItem("排球"); this.setLayout(new FlowLayout()); this.add(box); box.addActionListener(this); } public static void main(String[] args) { new Test4().setVisible(true); } public
资源推荐
资源评论
资源评论
知识世界
- 粉丝: 354
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功