/** * Constructor. * * @param name of the field; must be unique within the store * @param label to display to the user * @param defValue default value to start with. * @param storeData store/fetch data from here, may be null. */ public DurationField( String name, String label, TimeDuration defValue, PersistenceManager storeData) { super(name, label, storeData); validValue = getStoreValue(defValue); tf = new JTextField() { public JToolTip createToolTip() { return new MultilineTooltip(); } }; tf.setToolTipText("Formats:\n udunits time duration string"); tf.setInputVerifier(new FldInputVerifier(tf, this)); if (validValue != null) tf.setText(validValue.toString()); finish(); }