Java Swing Synth - JRadioButton Style
来源:互联网 发布:算法的概念教案 编辑:程序博客网 时间:2024/05/22 00:25
<pre name="code" class="plain">
<style id="radioButton"> <imageIcon id="radio_off" path="images/radio_button_off.png"/> <imageIcon id="radio_on" path="images/radio_button_on.png"/> <property key="RadioButton.icon" value="radio_off"/> <state value="SELECTED"> <property key="RadioButton.icon" value="radio_on"/> </state> </style> <bind style="radioButton" type="region" key="RadioButton"/> <style id="checkBox"> <imageIcon id="checkbox_off" path="images/checkbox_off.png"/> <imageIcon id="checkbox_on" path="images/checkbox_on.png"/> <property key="CheckBox.icon" value="checkbox_off"/> <state value="SELECTED"> <property key="CheckBox.icon" value="checkbox_on"/> </state> </style> <bind style="checkBox" type="region" key="CheckBox"/>
// JRadioButton testButtonGroup sexGroup = new ButtonGroup();JRadioButton boy = new JRadioButton("男", true);JRadioButton girl = new JRadioButton("女");sexGroup.add(boy);sexGroup.add(girl);JPanel sexPanel = new JPanel();sexPanel.add(boy);sexPanel.add(girl);this.add(sexPanel);JCheckBox football = new JCheckBox("足球");JCheckBox basketball = new JCheckBox("篮球");JCheckBox biker = new JCheckBox("骑行");JPanel hobbyPanel = new JPanel();hobbyPanel.add(football);hobbyPanel.add(basketball);hobbyPanel.add(biker);this.add(hobbyPanel);
1 0
- Java Swing Synth - JRadioButton Style
- java swing jbutton jradiobutton jcheckbox
- Swing Synth L&F
- [Java GUI] Swing中JList和JRadioButton的联合使用
- Java Swing界面编程(26)---单选按钮:JRadioButton
- Java Swing界面编程(27)---JRadioButton事件处理
- Swing Synth外观定制UI
- java中的Synth外观
- java中的Synth外观
- Java Swing JRadioButton 给radioButton加图片不隐藏单选按钮
- Java JRadioButton ButtonGroup
- Swing中JRadioButton多选框的用法
- JRadioButton
- jRadioButton
- java组件小计--JRadioButton单选框
- java ButtonGroup及JRadioButton用法
- swing 学习笔记四(单选按钮JRadioButton )
- Swing笔记(二)——JRadioButton和JCheckbox
- 【UE4学习】02——C++编程快速入门
- mysql备份之Xtrabackup
- Java集合:队列: Queue
- 02-按钮的基本使用(重构)
- linux下使用yum安装gcc详解
- Java Swing Synth - JRadioButton Style
- [UIImage resizableImageWithCapInsets:] 使用方法
- Android中的PopupWindow详解
- 日记--学习Groovy的一些感想
- 主流浏览器内核介绍(前端开发值得了解的浏览器内核历史)
- 2016.1.13
- - (id)valueForKeyPath:(NSString *)keyPath 用法总结
- Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
- 优秀的Git教程