/* Copyright 2000 Charles G. Wright * This software may be distributed under the terms of the * GNU General Public License. * * $Id: InputField.java,v 1.1 2000-06-15 10:14:59-05 chuckles Exp chuckles $ */ import java.math.*; import java.awt.*; import java.awt.event.*; import java.util.*; /** A suped up text field, containing a label, a text box * increment and decrement buttons, and a unit label. * Includes a UnitConverter, and handles conversions * to/from metric automatically.*/ public class InputField extends Panel implements ActionListener, Observer { private double increment; private UnitConverter uc; private java.awt.Label name; private java.awt.Label label; private TextField tf; private double value; private ActionListener parent; private ActionEvent ae; private Button bleft; private Button bright; String text_value; /**

Create an InputField. Arguments are *