对话框排版示例
来源:互联网 发布:mysql 显示字符集 编辑:程序博客网 时间:2024/05/01 23:18
/**
* This method initializes jAttributeScrollPane
* 创建相应的在窗口中的控件
* @return javax.swing.JScrollPane
*/
private JScrollPane getJAttributeScrollPane() {
if (jAttributeScrollPane == null) {
jAttributeScrollPane = new JScrollPane();
jAttributeScrollPane.setLayout(new ScrollPaneLayout());
jPoNorthPane = new JPanel();
jPoNorthPane.setLayout(new GridBagLayout());
// 表示起始位置的参数
int posX = 0;
int posY = 0;
// paraId
posX = posX + 1;
jParaIdLabel = new JLabel("abcId");
jPoNorthPane.add(jParaIdLabel, new GridBagConstraints(posX, posY, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
posX = posX + 1;
jParaIdTextField = new JTextField();
jParaIdTextField.setPreferredSize(new Dimension(300, 20));
jPoNorthPane.add(jParaIdTextField, new GridBagConstraints(posX, posY, 1, 1, 1.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 1, 0));
//ParaClmnName
posX = 0;
posY = posY + 1;
jParaClmnNameLabel = new JLabel("ParaClmnName");
jPoNorthPane.add(jParaClmnNameLabel, new GridBagConstraints(posX, posY, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
posX = posX + 1;
jParaClmnNameTextField = new JTextField();
jParaClmnNameTextField.setPreferredSize(new Dimension(300, 20));
jPoNorthPane.add(jParaClmnNameTextField, new GridBagConstraints(posX, posY, 1, 1, 1.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 1, 0));
posX = posX + 1;
jParaDataTypeLabel = new JLabel("DataType");
jPoNorthPane.add(jParaDataTypeLabel, new GridBagConstraints(posX, posY, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
posX = posX + 1;
jParaDataTypeComboBox = new JComboBox();
jParaDataTypeComboBox.setFont(jParaIdTextField.getFont());
jParaDataTypeComboBox.setPreferredSize(new Dimension(300, 20));
jPoNorthPane.add(jParaDataTypeComboBox, new GridBagConstraints(posX, posY, 1, 1, 1.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 1, 0));
}
- 对话框排版示例
- 网页文字纵向排版方法使用示例
- Android 创建对话框示例
- SDK对话框简单示例
- PyQt4之对话框示例
- AlertDialog(对话框)示例
- AlertDialog(自定义对话框)示例
- BCGSoft Demo示例展示:对话框示例
- android Dialog对话框使用示例
- 在对话框标题栏做出动画示例源程序
- VC 给对话框加载背景图片示例
- Extjs 中确认对话框的实现 示例
- Delphi调用Windows打开方式对话框示例
- UI-Bootstrap 模态对话框示例
- Extjs 中确认对话框的实现 示例
- BCGSoft Demo示例展示:可视化和对话框示例
- [NET][C#][翻译]自定义的文件打开对话框(源代码+示例)
- VC6_基于对话框MFC程序最基础教程示例~
- shell脚本基础
- 23个经典JDK设计模式
- hello,哈哈
- cdecl, stdcall, pascal,fastcall 调用约定区别
- 这里有些东西还是蛮不错的
- 对话框排版示例
- 新安装的OpenSuse11.3, 用Xshell基于ssh的远程登录失败问题的解决
- 140个Google面试问题
- 计算机信息系统集成项目经理资质管理办法
- 编译原理实验——预测分析法
- 新人报到
- 设置窗体图标
- mysql在centos下的安装和配置
- 重新振奋自己