=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/PolyCalc.java,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -p -r1.1.1.1 -r1.3 --- OpenXM/src/OpenMath/PolyCalc.java 1999/11/02 11:52:34 1.1.1.1 +++ OpenXM/src/OpenMath/PolyCalc.java 1999/11/02 15:07:40 1.3 @@ -1,3 +1,7 @@ +/** + * $OpenXM: OpenXM/src/OpenMath/PolyCalc.java,v 1.2 1999/11/02 14:54:37 tam Exp $ + */ + import JP.ac.kobe_u.math.tam.OpenXM.*; import java.applet.*; import java.awt.*; @@ -91,18 +95,19 @@ class PolyCalc extends Applet{ add(poly2); } + + public void start(){ textarea.append("Connecting to "+ host +"("+ ControlPort +","+ DataPort +")\n"); try{ - oxm = new OpenXM("localhost",1200,1300); + oxm = new OpenXM(host,ControlPort,DataPort); + textarea.append("Connected.\n"); }catch(java.io.IOException e){ textarea.append("failed.\n"); stop(); - return; } - textarea.append("Connected.\n"); } public static void main(String argv[]){