Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jTable: Illegal forward reference

Zulfi KhanAug 27 2016 — edited Aug 29 2016

Hi,
I have created a table using Netbeans. Then i have used properties->model option for table to insert row and to give column names using NetBeans frame work. Now i am trying to create an instance variable of DefaultTableModel in the application class:

DefaultTableModel model = (DefaultTableModel) figTable.getModel();

But i am getting following error:
"illegal forward reference": Move initializer to constructor.

Some body please guide me.

Zulfi.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 26 2016
Added on Aug 27 2016
3 comments
927 views