aboutsummaryrefslogtreecommitdiff
path: root/src/TestIvySwing.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/TestIvySwing.java')
-rw-r--r--src/TestIvySwing.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TestIvySwing.java b/src/TestIvySwing.java
index e5138f6..f3f2ae6 100644
--- a/src/TestIvySwing.java
+++ b/src/TestIvySwing.java
@@ -8,7 +8,7 @@ import gnu.getopt.Getopt ;
/**
* toy tool to probe the Ivy software bus.
* it relies on the Swing toolkit, which is not standard on jdk1.1 platform.
- * if yyou don't have jdk1.2 or swing, consider downloading it. You can also
+ * if you don't have jdk1.2 or swing, consider downloading it. You can also
* use TestIvy
*
* @see fr.dgac.ivy.TestIvy
@@ -22,6 +22,8 @@ class TestIvySwing extends JPanel implements IvyApplicationListener {
* help message for the standalone program
*/
public static final String helpmsg = "usage: java fr.dgac.ivy.TestIvySwing [options]\n\t-b BUS\tspecifies the Ivy bus domain\n\t-q\tquiet, no tty output\n\t-d\tdebug\n\t-h\thelp\n";
+ public static final int WIDTH=30;
+ public static final int HEIGHT=30;
private static int index;
private static int nbTIS=0;
@@ -78,7 +80,7 @@ class TestIvySwing extends JPanel implements IvyApplicationListener {
super(new BorderLayout());
this.domain=domain;
nbTIS++;
- ta = new JTextArea(25,30);
+ ta = new JTextArea(WIDTH,HEIGHT);
ta.setEditable(false);
add(new JScrollPane(ta),BorderLayout.CENTER);
JPanel p = new JPanel(new BorderLayout());