View Single Post
  #1 (permalink)  
Old 03-26-2008, 03:45 AM
Bill Bill is offline
Member
 
Join Date: Mar 2008
Posts: 8
Bill is on a distinguished road
Create different instance of a tablemodel
Hi all,

I need some help!

I got a class MyClassModel who extends AbstractTablemodel. From a JPanel, i got a JTable that i want to take the model of this class. How can i instanciate this class from my JTable

Something like that :
Code:
JTable table = new Jtable(new MyClassModel()), but this not work.
I also want to pass to MyClassModel a different data (an array or something else) to build my table

thank you for your help
Reply With Quote
Sponsored Links