Skip to content

Instantly share code, notes, and snippets.

@tabrindle
Created October 4, 2013 20:40
Show Gist options
  • Save tabrindle/6832368 to your computer and use it in GitHub Desktop.
Save tabrindle/6832368 to your computer and use it in GitHub Desktop.
// 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