Código:
Y al querer meter "datos" es donde marca el error private String[] columnNames = { "Columna1", "Columna2" }; public void fillData() {EntityManager em = applicationCore.getEm(); List datos = new ArrayList(); Iterator iter = null; Query q = em.createQuery("Consulta"); try{}datos = q.getResultList(); iter = datos.iterator();em.close();}catch (Exception e) {e.printStackTrace();} DefaultTableModel tableDefault= new DefaultTableModel(datos,columnNames){private static final long serialVersionUID = 1L;public boolean isCellEditable(int row, int col){jTable = new JTable(); jTable.setModel(tableDefault); jTable.update UI();return false; }};