在线等,急!
private JPanel getJPanel() {if (jPanel == null) {
jLabel6 = new JLabel();
jLabel6.setBounds(new java.awt.Rectangle(200,176,126,30));
jLabel6.setText("用户名称:");
jLabel6.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel5 = new JLabel();
jLabel5.setBounds(new java.awt.Rectangle(200,143,126,30));
jLabel5.setText("数据库名:");
jLabel5.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel4 = new JLabel();
jLabel4.setBounds(new java.awt.Rectangle(200,108,126,30));
jLabel4.setText("端口号:");
jLabel4.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel3 = new JLabel();
jLabel3.setBounds(new java.awt.Rectangle(200,74,126,30));
jLabel3.setText("主机名(IP):");
jLabel3.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel2 = new JLabel();
jLabel2.setBounds(new java.awt.Rectangle(200,210,126,30));
jLabel2.setText("用户密码:");
jLabel2.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel1 = new JLabel();
jLabel1.setBounds(new java.awt.Rectangle(200,40,126,30));
jLabel1.setText("连接类型:");
jLabel1.setFont(new Font("\u6977\u4f53_GB2312", Font.BOLD, 14));
jLabel = new JLabel();
jLabel.setBounds(new java.awt.Rectangle(200,6,126,30));
jLabel.setFont(new java.awt.Font("楷体_GB2312", java.awt.Font.BOLD, 14));
jLabel.setText("数据源:");
jPanel = new JPanel();
jPanel.setLayout(null);
jPanel.setBounds(new java.awt.Rectangle(101,52,534,315));
jPanel.add(jLabel, null);
jPanel.add(jLabel1, null);
jPanel.add(jLabel2, null);
jPanel.add(jLabel3, null);
jPanel.add(jLabel4, null);
jPanel.add(jLabel5, null);
jPanel.add(jLabel6, null);
jPanel.add(getJComboBox(), null);
jPanel.add(getJComboBox1(), null);
jPanel.add(getJTextField(), null);
jPanel.add(getJTextField1(), null);
jPanel.add(getJTextField2(), null);
jPanel.add(getJTextField3(), null);
jPanel.add(getJTextField4(), null);
jPanel.add(getJButton(), null);
jPanel.add(getJButton1(), null);
jPanel.add(getJButton2(), null);
jPanel.add(getJButton3(), null);
}
return jPanel;
}
为什么按钮显示不出来?请各位教教小弟