get value from table

I want to get value from table.I tried like that

mystring=dsk1.klm.Table_Grid.getModel().getValueAt(row,column).toString();

and it gived this error:Exception in thread "Thread-3" java.lang.NullPointerException

is there a way to get value from table?

please help me!

[298 byte] By [frknmla] at [2007-11-27 11:26:51]
# 1

You are using the correct method.

One of your variables is null.

Do some basic debugging to determine which variable is null and then fix the problem.

camickra at 2007-7-29 16:12:56 > top of Java-index,Desktop,Core GUI APIs...
# 2

thanks

frknmla at 2007-7-29 16:12:56 > top of Java-index,Desktop,Core GUI APIs...