void () { @NonNls Object[][] data = new Object[][] { new Object[] { "round", "red"}, new Object[] { "square", "green" } }; @NonNls Object[] columnNames = new Object[] { "Shape", "Color" }; try { ((JTable) getDelegee()).setModel(new DefaultTableModel(data, columnNames)); } catch(Exception | AssertionError ex) { // a custom table subclass may not like our model, so ignore the exception if thrown here } }