get value from jtable and format double number
hi friends
i have problem with getting value from jtable and format it.
i want to get value from database and add it to my jtable value with formatted.
i wrote my code like that.
NumberFormat fmt=new DecimalFormat("0.##");
myobject=jtable.getmodel().getvalueat(row,column);
mydouble=Double.parsedouble(obj.tostring());
mydouble=mydouble+Double.parsedouble(rs.getstring("litre");
mystring=fmt.format(mydouble);
jtable.setvalueat(mystring,row,column);
it gives an error.
please help me!!!

