【最新版】中北大学毕业设计说明书(企业内部即时通讯系统的设? - 百度文库 ر

{

JOptionPane.showMessageDialog(null, \ȷ˺,˺ſλ

ֻEmailַ\ʾ\

}

else if (jp_password.getText().equals(\{

JOptionPane.showMessageDialog(null, \ٵ½\ʾ\

JOptionPane.INFORMATION_MESSAGE);

} else {

login_message lmessage = new login_message(jt_user.getText(),

jp_password.getText(), 0, 0, 0, 0, jco_status.getSelectedIndex() + 1);

} private

void

jb_loginactionPerformed(KeyEvent

e)

throws

}

MainInterface main = new MainInterface(lmessage); this.dispose();

UnknownHostException, IOException, InterruptedException

{

if (jt_user.getText().equals(\{

JOptionPane.showMessageDialog(null, \˺źٵ½\

ʾ\

} else

if

(jt_user.getText().length()

<

6

||

jt_user.getText().length() > 20)

{

JOptionPane.showMessageDialog(null, \ȷ˺,˺ſ

λֻEmailַ\ʾ\

}

else if (jp_password.getText().equals(\{

JOptionPane.showMessageDialog(null, \ٵ½\

ʾ\

} else {

login_message lmessage = new login_message(jt_user.getText(),

jp_password.getText(), 0, 0, 0, 0, jco_status.getSelectedIndex() + 1);

}

䱦 extends Thread

}

MainInterface main = new MainInterface(lmessage); this.dispose();

{

public void run() {

try {

login_message

sys_port,

lm

=

new

login_message(lmessage.qq,

transmit_port,

lmessage.password, lmessage.status);

main_port, alive_port,

loginClientThread loginThread = new loginClientThread(lm);

loginThread.join(30000); if (loginThread.changed == 1) {

sendHeartbeatThread_main_temp.start();

}

load(); changed = 1;

else if (loginThread.changed == 2) ˺ź벻ƥʱ

{

JOptionPane.showMessageDialog(null, \˺ź벻

ƥ䣡\ʾ\

} else

¼ʱ {

JOptionPane.showMessageDialog(null, \ϵͳæԺSystem.exit(0);

ԣ\ʾ\

}

class receiveMainInfoThread extends Thread {

ServerSocket server; Socket

client;

}

}

catch (Exception e)

}

System.exit(0);

public receiveMainInfoThread() {

server

=

getAvailableServerSocketFunction.getServerSocket(main_port);

main_port = server.getLocalPort();

}

}

3.3 ϵͳͨѶ

ͼ3.4 ͨѶ

Ĵ룺

public void actionPerformed(ActionEvent e) {

if (e.getActionCommand() == \\{

Point p = MouseInfo.getPointerInfo().getLocation(); final expression ex = new expression(p.x, p.y); ex.addWindowListener(new WindowAdapter() {

public void windowActivated(WindowEvent e) {}

ڲԾʱԶرոô