hello,
I have an app that pops up a custom dialog box and one of the fields for
user input is an account balance field. The data gets put into an
Object and eventually into an instance of DefaultListMode l. When I use
getText() on the field I pass it to Double.parseDou ble to convert it so
I can store it as a number and not a string. When I display it (either
in the list or in the dialog box) I want it to be displayed using
currency format and I display it in my list using toString() along with
other fields. I just concatenate all of them together and return them
in the toString() method. All that works fine but I run into trouble
when a file that I read data from already has the balance field in
currency format because I can't figure out how to read the value
correctly to turn it back into just a double to be stored in my balance
field. I can convert it into a String but using parseDouble on it
doesn't work and I'm guessing it is because of the $ and , in the
String.
any ideas?
thanks