/** shows this dialog centered on screen */ public void setVisible(boolean flag) { if (flag) { ((ConstructionTableData) data).attachView(); } else { ((ConstructionTableData) data).detachView(); } scrollPane.setVisible(flag); }