源代码 项目QQClientProject: LoguiGui 代码: package com
huaxia
gui; import com
huaxia
common
Message; import com
huaxia
common
MessageService; import com
huaxia
common
User; import java
Socket; import javax
JOptionPane; public class LoguiGui extends javax
JFrame { public LoguiGui() { initComponents(); } public Socket connectServer() { Socket s = null; try { s = new Socket("127
1", 6666); } catch (Exception e) { e
printStackTrace(); } return s; } private void jButton1ActionPerformed(java
ActionEvent evt) { // TODO add your handling code here: String name = nameItem
getText(); System
println("用户名:" + name); if (name == null || ""
equals(name)) { JOptionPane
showMessageDialog(this, " 用户名不 能 为 空 , 请 输 入 ", " 异 常 提 示 ", JOptionPane
ERROR_MES