[Mathlib-commitlog] SF.net SVN: mathlib:[891] JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI .ja
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-03-01 12:16:20
|
Revision: 891
http://mathlib.svn.sourceforge.net/mathlib/?rev=891&view=rev
Author: st_mueller
Date: 2009-03-01 12:16:10 +0000 (Sun, 01 Mar 2009)
Log Message:
-----------
code cleanup
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java
Modified: JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java
===================================================================
--- JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-02-26 16:44:03 UTC (rev 890)
+++ JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-03-01 12:16:10 UTC (rev 891)
@@ -1,3 +1,11 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author: st...@he...
+ * (c) 2008-2009
+ */
package jmathlib.ui.applet;
import jmathlib.core.interpreter.Interpreter;
@@ -9,11 +17,11 @@
import java.awt.event.*;
import java.applet.*;
-/**Rudimentary interface used to test the program*/
+/**applet version of JMathLib*/
public class JMathLibGUI extends Applet implements RemoteAccesible, JMathLibOutput
{
/**Flag storing whether the program is running as an application or an applet*/
- boolean runningStandalone;
+ //boolean runningStandalone;
/**The area used for user input and where the answers are displayed*/
Console answer;
@@ -25,10 +33,10 @@
Container container;
/**string used for defining user functions*/
- String function;
+ //String function;
/**Flag storing whether each line input should be executed straight away*/
- boolean interactiveMode = true;
+ //boolean interactiveMode = true;
/**Layout manager used for the components*/
BorderLayout layout;
@@ -37,24 +45,27 @@
WindowListener handler;
/**Temporary store for function code*/
- String functionCode;
+ //String functionCode;
- /**Construct the applet*/
+ /**
+ * Constructor of the applet
+ */
public JMathLibGUI()
{
container = this;
}
- /**Initialize the applet*/
+ /**
+ * Initialize the applet
+ */
public void init()
{
-
+
container.setSize(700,400);
layout = new BorderLayout();
container.setLayout(layout);
- //answer = new Console((MathLib.Interfaces.RemoteAccesible)this);
answer = new Console(this);
container.add("Center", answer);
@@ -80,7 +91,7 @@
}
catch (NumberFormatException e){ }
- }
+ } // end init
/**
* display text
@@ -99,7 +110,9 @@
}
- /**start the applet*/
+ /**
+ * start the applet
+ */
public void start()
{
answer.displayPrompt();
@@ -116,7 +129,9 @@
}
- /**Interpret the last command line entered*/
+ /**
+ * Interpret the last command line entered
+ */
public void interpretLine(String line)
{
String answerString = interpreter.executeExpression(line);
@@ -124,11 +139,11 @@
answer.displayPrompt();
}
- /**Function called when the gui is being close*/
+ /**
+ * Function called when the GUI is being close
+ */
public void close()
{
- //interpreter.save();
-
- //System.exit(0);
+
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|