Example #1
0
 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
Example #2
0
  /** 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);
    }
  }