SocketClient frame =
new SocketClient();
frame.setTitle("Client Program");
WindowListener l = new WindowAdapter() {
publicvoid windowClosing(WindowEvent e) {
System.exit(0);
}
};
frame.addWindowListener(l);
frame.pack();
frame.setVisible(true);
i know it s a part of code(GUI)...I just want to understand this code......i am familiar with some concepts...but i am not clear about the syntax.....specially window adapter function......