import java.awt.Color; import java.awt.Container;  import java.awt.Image;  import java.awt.event.ActionEvent;  import java.awt.event.ActionListener;  import javax.swing.ImageIcon;  import javax.swing.JButton;  import javax.swing.JCheckBox;  import javax.swing.JComboBox;  import javax.swing.JFrame;  import javax.swing.JLabel;  import javax.swing.JOptionPane;  import javax.swing.JPasswordField;  import javax.swing.JTextField;  public class GUIQQ extends JFrame {  // 用户名  private JTextField username;  // 密码  private JPasswordField password;  // 小容器  private JLabel jl1;  private JLabel jl2;  private JLabel jl3;  private JLabel jl4;  // 小按钮  private JButton bu1;  private JButton bu2;  private JButton bu3;  // 复选框  private JCheckBox jc1;  private JCheckBox jc2;  // 列表框  private JComboBox jcb;  /*  * 构造方法  */  public GUIQQ() {  // 设置窗口标题  this.setTitle(“QQ”);  // 窗体组件初始化  init();  this.setDefaultCloseOperation(JFrame.EXIT_澳门新葡亰,ON_CLOSE);  // 设置布局方式为绝对定位  this.setLayout(null);  this.setBounds(0, 0, 355, 265);  // 设置窗体的标题图标  Image image = new ImageIcon(“image//T83XSMYF}~B)$$6}XYZ4KM3.png”).getImage();  this.setIconImage(image);  // 窗体大小不能改变  this.setResizable(false);  // 居中显示  this.setLocationRelativeTo(null);  // 窗体可见  this.setVisible(true);  }  /*  * 初始化方法  */  public void init() {  // 创建一个容器  Container con = this.getContentPane();  jl1 = new JLabel();  // 设置背景图片  Image image1 = new ImageIcon(“image//2BF5MB~_47SZRCV`SEL44OD.png”).getImage();  jl1.setIcon(new ImageIcon(image1));  jl1.setBounds(0, 0, 355, 265);  // QQ登录头像设定  jl2 = new JLabel();  Image image2 = new ImageIcon(“image//D0PCQ~_MI}A1M9ZF8Z]M0T7.png”).getImage();  jl2.setIcon(new ImageIcon(image2));  jl2.setBounds(40, 95, 50, 60);  // 用户号码登录输入框  username = new JTextField();  username.setBounds(100, 100, 150, 20);  // 用户号码登录输入框旁边的文字  jl3 = new JLabel(“注册账号”);  jl3.setBounds(260, 100, 70, 20);  jl3.setForeground(Color.BLUE); // 密码输入框  password = new JPasswordField();  password.setBounds(100, 130, 150, 20);  // 密码输入框旁边的文字  jl4 = new JLabel(“找回密码”);  jl4.setBounds(260, 130, 70, 20);  jl4.setForeground(Color.BLUE); // 输入框下方文字  jc1 = new JCheckBox(“记住密码”);  jc1.setBounds(105, 155, 80, 15);  jc2 = new JCheckBox(“自动登录”);  jc2.setBounds(185, 155, 80, 15);  // 用户登录状态选择  jcb = new JComboBox();  jcb.addItem(“在线”);  jcb.addItem(“隐身”);  jcb.addItem(“离开”);  jcb.setBounds(40, 150, 55, 20);  // 按钮设定  bu1 = new JButton(“登录”);  bu1.setBounds(100, 175,150,30);  // 给按钮添加1个事件  bu1.addActionListener(new ActionListener() {  @Override  public void actionPerformed(ActionEvent e) {  String str=e.getActionCommand();  if(“登录”.equals(str)){  String getName =username.getText();  // String getPwd =password.getText();  String userpassword = new String(password.getPassword()); String sql =”secelt * from  while name='”username”‘and psw'”=userpassword'””; JOptionPane.showConfirmDialog(null,”您输入的用户名是”+getName);  }  }  }); jl1.add(jl2);  jl1.add(jl3);  jl1.add(jl4);  jl1.add(jc1);  jl1.add(jc2);  jl1.add(jcb);  jl1.add(bu1);  con.add(jl1);  con.add(username);  con.add(password);  }  public static void main(String[] args) {  // 实例化对象  GUIQQ qq = new GUIQQ();  }  }

实在搞不懂,这里的错误。求助
package viewer;import java.awt.BorderLayout;import java.awt.Dialog;import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.HeadlessException;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javafx.scene.layout.Border;import javax.swing.JButton;import javax.swing.JDialog;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPanel;import javax.swing.JPasswordField;import javax.swing.JScrollBar;import javax.swing.JScrollPane;import javax.swing.JTable;import javax.swing.JTextField;import util.EmpUtil;import model.EmpException;import model.User;public class UserPanel extends JPanel { private static final long serialVersionUID = 1L; private JPanel jp1, jp2; private JLabel jl1; private JTable jt; private JScrollPane jsp; private JButton jb1, jb2, jb3; private JTable jtable; private UserTableModel usermodel; private AddDialog ad; private JFrame jf; public UserPanel(JFrame jf) { this.setLayout(new BorderLayout; this.jf = jf; jp1 = new JPanel(); jp2 = new JPanel(); jl1 = new JLabel; jb1 = new JButton; jb1.addActionListener(new UserManagerClick; jb2 = new JButton; jb2.addActionListener(new UserManagerClick; jb3 = new JButton; jb3.addActionListener(new UserManagerClick; jp1.add; jp2.add; jp2.add; jp2.add; usermodel = new UserTableModel(); jtable = new JTable(usermodel); jsp = new JScrollPane; this.add(jp1, BorderLayout.NORTH); this.add(jp2, BorderLayout.SOUTH); this.add; } private class UserManagerClick implements ActionListener { @Override public void actionPerformed(ActionEvent e) { if (e.getSource { // 添加 ad = new AddDialog(); } else if (e.getSource { // 删除 } else if (e.getSource { // 修改 } } } private class AddDialog extends JDialog { private JLabel jl1, jl2, jl3; private JButton jb1, jb2; private JPanel jp1, jp2, jp3, jp4; private JTextField jtf1, jtf2; private JPasswordField jpf; private JDialog jdg=this; public AddDialog() { this.setSize; this.setModal; // 设置为模态对话框,不能操作主窗体。如果这里用JFrame就无法实现该功能了。 this.setLocation + 50, jf.getY; this.setTitle; this.setLayout(new GridLayout; jp1 = new JPanel(); jp2 = new JPanel(); jp3 = new JPanel(); jp4 = new JPanel(); jl1 = new JLabel; jl2 = new JLabel; jl3 = new JLabel; jb1 = new JButton;jb1.addActionListener(new AddDialogClick; jb2 = new JButton;jb2.addActionListener(new AddDialogClick; jtf1 = new JTextField; jtf2 = new JTextField; jpf = new JPasswordField; jp1.add; jp1.add; jp2.add; jp2.add; jp3.add; jp3.add; jp4.add; jp4.add; this.add; this.add; this.add; this.add; this.pack(); this.setResizable; this.setVisible; } private void reset() { jtf1.setText; jtf2.setText; jpf.setText; } private class AddDialogClick implements ActionListener { @Override public void actionPerformed(ActionEvent e) { try { if (e.getSource { // 添加用户 String username=jtf1.getText(); if (username == null ||””.equals(username.trim { //属于哪个窗口就是当弹出提示对话框时,非属于的其他窗体全部隐藏不显示. / JOptionPane.showMessageDialog(jdg, “请输入正确的用户名!”, “发现错误!”, JOptionPane.ERROR_MESSAGE);/ EmpUtil.showError(jdg, “请输入正确的用户名!”); return;//必须得有return。虽然弹出提示对话框,但是程序还是继续往下执行的。 } String password=new String(jpf.getPassword; String nickname=jtf2.getText(); User u=new User(); u.setUsername; u.setPassword; u.setNickname; usermodel.getUd; AddDialog.this.setVisible; //ad.dispose(); } else if (e.getSource { // 重置数据 reset(); } } catch (EmpException e1) { EmpUtil.showError(jdg, e1.getMessage; } } } }}

网站地图xml地图