Fork me on GitHub
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 54 下一页

2017年4月3日

Swing界面组件的通用属性

摘要: ----------------siwuxie095 Swing 界面组件(控件)的通用属性: (1)enabled:启用/禁用某组件(控件) 「某些 Container 也有这个选项,如果将其 enabled 设为 false, 则该 Container 里的组件(控件)依然可用」 (2)foreground:前... 阅读全文

posted @ 2017-04-03 14:19 siwuxie095 阅读(231) 评论(0) 推荐(0) 编辑

数字调节控件JSpinner的使用

摘要: ---------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestList.java 工程结构目录如下: 在根面板 contentPane 的上方添加一个 JSpinner, 在其 model 属性中选择 Number 「model 还可以... 阅读全文

posted @ 2017-04-03 13:06 siwuxie095 阅读(527) 评论(0) 推荐(0) 编辑

进度条控件JProgressBar的使用

摘要: ----------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestList.java 工程结构目录如下: 在根面板 contentPane 的下方添加一个 JProgressBar, 可以在 value 属性中设定初始值,可以在 maxi... 阅读全文

posted @ 2017-04-03 13:03 siwuxie095 阅读(494) 评论(0) 推荐(0) 编辑

下拉菜单控件JComboBox的使用

摘要: ---------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestList.java 工程结构目录如下: 在根面板 contentPane 的上方添加一个 JComboBox, 在 model 属性的第二个选项 ComboBox model... 阅读全文

posted @ 2017-04-03 11:47 siwuxie095 阅读(2597) 评论(0) 推荐(0) 编辑

列表控件JList的使用

摘要: --------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestList.java 工程结构目录如下: 切换到 Design,在根面板 contentPane 的上方添加一个 JList, 为其 model 属性添加值,指定 J... 阅读全文

posted @ 2017-04-03 11:16 siwuxie095 阅读(4388) 评论(0) 推荐(0) 编辑

2017年4月2日

单选与复选控件JRadioButton与JCheckBox的使用

摘要: siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestTextFieldAndTextArea.java 工程结构目录如下: 单选控件 JRadioButton: 在 Design 中,选择根面板 contentPane,将其布局改为 GroupLayo 阅读全文

posted @ 2017-04-02 23:59 siwuxie095 阅读(1010) 评论(0) 推荐(0) 编辑

文本框控件JTextField和JTextArea的使用

摘要: -----------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestTextFieldAndTextArea.java 工程结构目录如下: 在 Design 的根面板 contentPane 的上中下分别添加 一个 JTextField、... 阅读全文

posted @ 2017-04-02 23:50 siwuxie095 阅读(3097) 评论(0) 推荐(0) 编辑

按钮控件JButton的使用

摘要: ---------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestButton.java 工程结构目录如下: 在 Design 的根面板 contentPane 的上中下分别添加 一个 JTextField、JTextArea、JButton ... 阅读全文

posted @ 2017-04-02 23:39 siwuxie095 阅读(1525) 评论(0) 推荐(0) 编辑

标签控件JLabel的使用

摘要: ---------------siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestLabel.java 工程结构目录如下: 在 Design 的根面板 contentPane 的正中间添加一个 JLabel,添加后 可直接输入初始值(文本内容) ... 阅读全文

posted @ 2017-04-02 23:33 siwuxie095 阅读(518) 评论(0) 推荐(0) 编辑

容器控件JPanel的使用

摘要: siwuxie095 工程名:TestUI 包名:com.siwuxie095.ui 类名:TestPanel.java 工程结构目录如下: 在默认窗体 JFrame 被创建后,其中包含了一个 contentPane 在 Source 中,contentPane 的定义是一个 JPanel 的类型 阅读全文

posted @ 2017-04-02 23:26 siwuxie095 阅读(567) 评论(0) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 54 下一页

导航