Thread: Java help
View Single Post
  #8 (permalink)  
Old 07-27-2007, 08:59 PM
nogono nogono is offline
Novice
Join Date: Jul 2007
Posts: 35
iTrader: (0)
nogono is on a distinguished road
Icon13

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......


__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote