    import javax.swing.*;
    import javax.swing.text.*;

    import java.awt.Toolkit;
    import java.text.*;

    public class _22 extends JTextField {
        private NumberFormat _23;

        public _22(double _24, int _25, NumberFormat _26) {
            super(_25);
            setDocument(new _70(_26));
            _23 = _26;
            _30(_24);
        }

        public double _27() {
            double _28 = 0.0;

            try {
                _28 = _23.parse(getText()).doubleValue();
            } catch (ParseException _29) {
                // This should never happen because insertString allows
                // only properly formatted data to get in the field.
                Toolkit.getDefaultToolkit().beep();
                System.err.println("getValue: could not parse: " + getText());
            }
            return _28;
        }

        public void _30(double _31) {
            setText(_23.format(_31));
        }
    }