Converts the passed in String into an instance of
getValueClass
by way of the constructor that
takes a String argument.
Converts the passed in String into an instance of
getValueClass
by way of the constructor that
takes a String argument. If
getValueClass
returns null, the Class of the current value in the
JFormattedTextField
will be used. If this is null, a
String will be returned. If the constructor thows an exception, a
ParseException
will be thrown. If there is no single
argument String constructor,
string
will be returned.
Returns:
Object representation of text
Parameters:
-
string - String to convert
Throws:
-
ParseException - if there is an error in the conversion