Thread: Java help
View Single Post
  #7 (permalink)  
Old 07-27-2007, 04:38 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Quote:
Originally Posted by nogono View Post
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);
frame.listenSocket();


Can u understand me whole program........
From the code that you gave me, it doesn't give me much information of what kind of application are you trying to create. But you named your class pretty well so I guess you're trying to create some kind of networking application. However, what does:

Code:
frame.listenSocket();
that do in your program?
The rest of your code is just the general setup for GUI

__________________
PHP Code:
System.out.println("Hello World!"); 

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