private void btnOpenDBActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnOpenDBActionPerformed String filename; if (!(filename = UtilFunctions.openFile("*.db")).isEmpty()) { ((FootprintModel) tblFootprints.getModel()).reload(); ConfigSettings.saveChanges(); } } // GEN-LAST:event_btnOpenDBActionPerformed
/** Creates new form selectFootprint */ public SelectFootprint() { initComponents(); setLocationRelativeTo(null); setModalityType(ModalityType.APPLICATION_MODAL); FootprintModel model = new FootprintModel(); tblFootprints.setModel(model); int dbType = ConfigSettings.getDBType(); if (dbType != 0) { btnOpenDB.setVisible(false); } }