From e2af842ae7dbf3b0315a5f73d3d5ec9b7f041556 Mon Sep 17 00:00:00 2001 From: ehilsdal Date: Tue, 8 Apr 2003 21:59:39 +0000 Subject: folded in material from README-11.html finally totally and completely stomped out "introduction" minor formatting changes generating better filenames for the progguide added A4 version of quick reference --- docs/dist/doc/examples/observer/Button.java | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'docs/dist/doc/examples/observer/Button.java') diff --git a/docs/dist/doc/examples/observer/Button.java b/docs/dist/doc/examples/observer/Button.java index 086a89e24..79b33caa9 100644 --- a/docs/dist/doc/examples/observer/Button.java +++ b/docs/dist/doc/examples/observer/Button.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. - -Button.java - */ @@ -28,18 +24,17 @@ class Button extends java.awt.Button { static final String defaultText = "cycle color"; Button(Display display) { - super(); - setLabel(defaultText); - setBackground(defaultBackgroundColor); - setForeground(defaultForegroundColor); - addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - Button.this.click(); - } - }); - display.addToFrame(this); + super(); + setLabel(defaultText); + setBackground(defaultBackgroundColor); + setForeground(defaultForegroundColor); + addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + Button.this.click(); + } + }); + display.addToFrame(this); } public void click() {} - } -- cgit v1.2.3