List of usage examples for javax.swing JTable revalidate
public void revalidate()
From source file:guineu.modules.dataanalysis.Media.mediaFilterTask.java
public void median() { setStatus(TaskStatus.PROCESSING);//from w w w. j av a2s . com try { progress = 0.0f; for (Dataset dataset : datasets) { double[] median = this.getSTDDev(dataset); dataset.addColumnName("Median"); int cont = 0; for (PeakListRow row : dataset.getRows()) { row.setPeak("Median", median[cont++]); } JInternalFrame[] frames = GuineuCore.getDesktop().getInternalFrames(); for (int i = 0; i < frames.length; i++) { try { JTable table = ((DataInternalFrame) frames[i]).getTable(); table.createDefaultColumnsFromModel(); table.revalidate(); } catch (Exception e) { } } } progress = 1f; } catch (Exception ex) { } setStatus(TaskStatus.FINISHED); }