aboutsummaryrefslogtreecommitdiffstats
path: root/docs/dist/doc/examples/observer/Demo.java
diff options
context:
space:
mode:
Diffstat (limited to 'docs/dist/doc/examples/observer/Demo.java')
-rw-r--r--docs/dist/doc/examples/observer/Demo.java23
1 files changed, 9 insertions, 14 deletions
diff --git a/docs/dist/doc/examples/observer/Demo.java b/docs/dist/doc/examples/observer/Demo.java
index b25552478..03be6a614 100644
--- a/docs/dist/doc/examples/observer/Demo.java
+++ b/docs/dist/doc/examples/observer/Demo.java
@@ -1,5 +1,4 @@
/*
-
Copyright (c) Xerox Corporation 1998-2002. All rights reserved.
Use and copying of this software and preparation of derivative works based
@@ -9,9 +8,6 @@ laws.
This software is made available AS IS, and Xerox Corporation makes no warranty
about the software, its performance or its conformity to any specification.
-
-Demo.java
-
*/
package observer;
@@ -19,16 +15,15 @@ package observer;
public class Demo {
public static void main(String[] args) {
- Display display = new Display();
- Button b1 = new Button(display);
- Button b2 = new Button(display);
- ColorLabel c1 = new ColorLabel(display);
- ColorLabel c2 = new ColorLabel(display);
- ColorLabel c3 = new ColorLabel(display);
+ Display display = new Display();
+ Button b1 = new Button(display);
+ Button b2 = new Button(display);
+ ColorLabel c1 = new ColorLabel(display);
+ ColorLabel c2 = new ColorLabel(display);
+ ColorLabel c3 = new ColorLabel(display);
- b1.addObserver(c1);
- b1.addObserver(c2);
- b2.addObserver(c3);
+ b1.addObserver(c1);
+ b1.addObserver(c2);
+ b2.addObserver(c3);
}
}
-