Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating JTable from JDialog

mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to update/add on row at a time in JTable, using data returned by JDialog. I am using subclass of AbstractTableModel (say MyTableModel) for storing Jtable data. So I need to update
MyTableModel to finally update JTable(Which resides in an JApplet). I am instantialing JDailog from JApplet, Depending of user selections, I will pass one row of data for JTable.
I try to pass JTable/MyTableModel throw constructor of JDialog
and try to update MyTableModel.. but I am getting a error msg
"only final local variables are available". I can not make MyTableModel as final...
Any alternative to achieve this functionality?
thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic