[Commit] RRClient RRClient.java,1.7,1.8

Bart Massey commit at keithp.com
Fri Jul 4 21:04:14 PDT 2003


Committed by: bart

Update of /local/src/CVS/RRClient
In directory home.keithp.com:/tmp/cvs-serv29476

Modified Files:
	RRClient.java 
Log Message:
Usability hacks



Index: RRClient.java
===================================================================
RCS file: /local/src/CVS/RRClient/RRClient.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- RRClient.java	15 Jun 2003 01:36:11 -0000	1.7
+++ RRClient.java	5 Jul 2003 03:04:11 -0000	1.8
@@ -56,6 +56,10 @@
 
     public static void main(String[] args)
       throws IOException {
+	if (args.length != 4) {
+	    System.err.println("usage: java RRClient <host> [join|watch] <user> <game>");
+	    System.exit(1);
+	}
     	Socket s = new Socket(args[0], 5252);
 	final RRController ctl = new RRController();
 	ctl.netout = new RRNetOut(s, ctl);
@@ -86,7 +90,7 @@
 	bidPanel.add(bidBox);
 	f.getContentPane().add(bidPanel, BorderLayout.EAST);
 
-        f.setSize(new Dimension(496,496));
+        f.setSize(new Dimension(496 + bidPanel.getSize().width, 496));
         f.setVisible(true);
 
 	ctl.netin.start();




More information about the Commit mailing list