Jlabel、setVisible、JRadioButton、
来源:互联网 发布:杭州哪里适合拍照淘宝 编辑:程序博客网 时间:2024/06/01 07:13
1、JLabel lblNewLabel = new JLabel("New label");// 利用JLabel组件插入图片
lblNewLabel.setIcon(new ImageIcon("D:\\Desktop\\887384.JPG"));
2、new DengLu().setVisible(true); //跳转到DengLu页面
3、textField_4.setText(textField_3.getText()); //textField_4显示textField_3中的内容
int a=Integer.parseInt(textField_4.getText());
int b=Integer.parseInt(textField_7.getText());//字符转整形
int c=b-a;
//String.valueOf(c);//整型转字符串
textField_8.setText((String.valueOf(c)));//
4、//单选框的实现
JRadioButton rdbtnNewRadioButton = new JRadioButton("微信登录");
rdbtnNewRadioButton.setBounds(29, 169, 121, 23);
contentPane.add(rdbtnNewRadioButton);
JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("qq登录");
rdbtnNewRadioButton_1.setBounds(147, 169, 121, 23);
contentPane.add(rdbtnNewRadioButton_1);
ButtonGroup group=new ButtonGroup();
group.add(rdbtnNewRadioButton);
group.add(rdbtnNewRadioButton_1);
- Jlabel、setVisible、JRadioButton、
- JRadioButton
- jRadioButton
- java图像界面开发简单实例-JRadioButton、JCheckBox、JLabel的应用
- JLabel
- JLabel
- JRadioButton示例
- JRadioButton Cell
- GUI--JRadioButton
- JCheckBox,JRadioButton
- JLabel示例
- JLabel实例
- setEnabled和setVisible
- JRadioButton的用法
- Java JRadioButton ButtonGroup
- JRadioButton的使用
- jcheckbox 和JRadioButton
- 单选组件JRadioButton
- python的装饰器
- Android总结之事件处理
- Bokeh 命令
- HTML5知识点汇总
- 网络基础随堂笔记
- Jlabel、setVisible、JRadioButton、
- springboot入门2—jpa访问mysql数据库
- python求各种距离公式
- linux下查看动态链接库so文件的依赖的相关组建
- 在MAC系统安装Apache Tomcat的详细步骤(.sh command not found?)
- 影响BLE功耗的重要参数
- Linux下安装Mysql5.7.18
- JAVA UUID 生成
- 文章标题