diff options
author | jestin | 2003-01-07 17:13:08 +0000 |
---|---|---|
committer | jestin | 2003-01-07 17:13:08 +0000 |
commit | 603599544c1720e796dc622c98e5ca0fd22b8e17 (patch) | |
tree | e21a0ab232c10726461e387881a7a8448ecca2ca /examples/TestIvySwing.java | |
parent | 781512114b4c304f3c72af251e4f416767afe20a (diff) | |
download | ivy-java-603599544c1720e796dc622c98e5ca0fd22b8e17.zip ivy-java-603599544c1720e796dc622c98e5ca0fd22b8e17.tar.gz ivy-java-603599544c1720e796dc622c98e5ca0fd22b8e17.tar.bz2 ivy-java-603599544c1720e796dc622c98e5ca0fd22b8e17.tar.xz |
Adaptés à une plus vieille JDK
Diffstat (limited to 'examples/TestIvySwing.java')
-rw-r--r-- | examples/TestIvySwing.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/examples/TestIvySwing.java b/examples/TestIvySwing.java index ee265a5..e7a9315 100644 --- a/examples/TestIvySwing.java +++ b/examples/TestIvySwing.java @@ -1,13 +1,17 @@ /** * TestIvySwing, a swing Ivy Java example to probe the Ivy software bus. * - * it relies on the Swing toolkit, which is not standard on jdk1.1 platforms, - * if you don't have swing, your can use TestIvy. - * * @author Yannick Jestin * @author <a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a> * * (c) CENA + * + * it relies on the Swing toolkit, which is not standard on jdk1.1 platforms, + * if you don't have swing, your can use TestIvy. + * + * New: + * 1.2.3: use of Vector.addElement instead of add() and the old Properties + * model * */ import java.awt.BorderLayout; @@ -15,6 +19,7 @@ import java.awt.event.*; import javax.swing.* ; import gnu.getopt.Getopt ; import fr.dgac.ivy.*; +import java.util.*; class TestIvySwing extends JPanel implements IvyApplicationListener { @@ -48,7 +53,7 @@ class TestIvySwing extends JPanel implements IvyApplicationListener { // initialize the domainlist domainList = new java.util.Vector(); for (int i = 0; i<startDomainList.length;i++) - domainList.add(startDomainList[i]); + domainList.addElement(startDomainList[i]); } Ivy getBus() { return bus; } @@ -66,7 +71,8 @@ class TestIvySwing extends JPanel implements IvyApplicationListener { domain=opt.getOptarg(); break; case 'd': - System.setProperty("IVY_DEBUG","yesla!"); + Properties sysProp = System.getProperties(); + sysProp.put("IVY_DEBUG","yes"); break; case 'h': default: |