psmith 2003/09/21 23:55:27
Modified: src/java/org/apache/log4j/chainsaw/help Tutorial.java
Log:
updated the confirmation text, and now starts 3 Generator
plugins.
Revision Changes Path
1.2 +7 -3
jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/Tutorial.java
Index: Tutorial.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/Tutorial.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Tutorial.java 19 Sep 2003 07:06:40 -0000 1.1
+++ Tutorial.java 22 Sep 2003 06:55:27 -0000 1.2
@@ -70,10 +70,14 @@
if (
JOptionPane.showConfirmDialog(
null,
- "This will start some pretend receivers for us in the Tutorial. Is that
ok?",
+ "This will start 3 \"Generator\" receivers for use in the Tutorial. Is
that ok?",
"Confirm", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
- Plugin p = new Generator("Generator 1");
- PluginRegistry.startPlugin(p);
+ Plugin p1 = new Generator("Generator 1");
+ Plugin p2 = new Generator("Generator 2");
+ Plugin p3 = new Generator("Generator 3");
+ PluginRegistry.startPlugin(p1);
+ PluginRegistry.startPlugin(p2);
+ PluginRegistry.startPlugin(p3);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]