public class ChatClientMain {
public ChatClientMain(){
new ClientInterface();
}
public ChatClientMain(String name,String password){
new ClientInterface(name,password);
}
public static void main(String[] args){
SwingUtilities.invokeLater(new Runnable(){
public void run(){
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
new ChatClientMain();
}
});
}
}[/code]2.ClientInterface类[code=java]package util;