From 5262e8e962f79cd7b238d36846ea352bb1ad341f Mon Sep 17 00:00:00 2001 From: jestin Date: Wed, 6 Mar 2002 13:23:00 +0000 Subject: Moved the Counter to examples. --- src/TestIvySwing.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/TestIvySwing.java') 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()); -- cgit v1.1