I am creating a Swing UI for a uni project, and I want the JTable
to update based on a button click.
Object[][] rows = DataStructureConversionUtils.arrayListTo2DArrayConverter(db.searchByPostcode(postcodeTxtField.getText()));
remove(resultTable);
add(createResultTable(rows),gridBagConstraints);
uiBuilder.refresh();
The refresh method calls pack and repaint on the JFrame
. It isn't updating and I can't figure out why.
Comments
Post a Comment