Venice 0.751beta

nz.org.venice.ui
Class NumberDialog

java.lang.Object
  extended bynz.org.venice.ui.NumberDialog

public class NumberDialog
extends java.lang.Object

Dialog for querying the user for numbers.

Author:
Andrew Leppard

Method Summary
static java.lang.Double getDouble(javax.swing.JDesktopPane parent, java.lang.String title, java.lang.String prompt, double defaultValue)
          Opens a new dialog asking the user to enter a number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDouble

public static java.lang.Double getDouble(javax.swing.JDesktopPane parent,
                                         java.lang.String title,
                                         java.lang.String prompt,
                                         double defaultValue)
Opens a new dialog asking the user to enter a number. If the user enters an illegal number, then the number will be rejected and the user will be asked to re-enter the number. The number will be returned or null if the user cancelled the dialog.

Parameters:
parent - the parent desktop
title - the title of the dialog
prompt - the prompt string
defaultValue - the default value to use.
Returns:
the value

Venice 0.751beta