aboutsummaryrefslogtreecommitdiff
path: root/examples/TestIvySwing.java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/TestIvySwing.java')
-rw-r--r--examples/TestIvySwing.java16
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: