How to access DefaultTableModel from another class
问题 I intend to have a form (FLlistes) that shows a table populated with data from taken from a database with hibernate. The problem is that I don't know how to access the table (or table model) from the class I use to create the queries. I created a jtable in a JInternal frame like this: public class FLlistes extends JInternalFrame { private JTable table; private DefaultTableModel model; //some code String[] columns = {"Id","Date", "Place", "Total"}; model = new DefaultTableModel(columns, 0);