java - TableModel not called in a JScrollPane containing a JTable -
i having unexpected behavior java gui. want create jscrollpane containing jtable add jscrollpane frame . here code : public class urlsscrollpanel extends jscrollpane { private static final long serialversionuid = 1l; public urlsscrollpanel() { //setup urls , collections arraylist<url> urls = url.getall(); arraylist<collection> collections = new arraylist<>(); for(url url : urls) collections.add(new collection(url)); //table string[] columns = { "database", "status", "consumption", "last snapshot date", "last message", "details", "stop collect" }; abstracttablemodel datamodel = new abstracttablemodel() { private static final long serialversionuid = 1l; @override public object getvalueat(int rowindex, int columnindex) { system.out.printf("row: %...