Or maybe you have not created the model or supplied it with starting data vector.

Bayless


On 6/26/19 12:42 AM, Helmut Leininger wrote:

Hi Michael,

without more information it is very difficult to say. It could be that either scriptTable, num, or row is not set.

I would try to use the debugger to find out.

Helmut

Am 26.06.2019 um 01:20 schrieb mmo...@me.com.INVALID:
I placed a JTable, on a JScrollPane on a JInternalFrame, using the default DefaultTableModel.

When I try and load data into the model I get a java.lang.NullPointerException.

scriptTable.setValueAt(num, row, 2);

The table is initialized in the constructor method InitComponents.

Any idea what I’m doing wrong?

Best Regards,

Michael

Reply via email to