Created
October 4, 2013 20:40
-
-
Save tabrindle/6832368 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TCPClientTest.java | |
// Test the TCPClientGUI class. GUI Version | |
import javax.swing.JFrame; | |
public class TCPClientTest | |
{ | |
public static void main( String args[] ) | |
{ | |
TCPClientGUI application; // declare client application | |
// if no command line args | |
if ( args.length == 0 ) | |
application = new TCPClientGUI( "127.0.0.1" ); // connect to localhost | |
else | |
application = new TCPClientGUI( args[ 0 ] ); // use args to connect | |
application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); | |
application.runClient(); // run client application | |
} // end main | |
} // end class TCPClientTest | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment