private void saveInformation() {
   try {
     global.FileTypes = global.con.createStatement();
     global.FileTypes.executeUpdate(
         "INSERT INTO filetypes VALUES (default, 1,"
             + "'"
             + NewFileTypeTextBox.getText().replaceAll("'", "''")
             + "', "
             + "'"
             + FileTypeAbbreviationTextBox.getText().replaceAll("'", "''")
             + "')");
   } catch (SQLException ex) {
     StringWriter error = new StringWriter();
     ex.printStackTrace(new PrintWriter(error));
     SystemCrashDialog crash =
         new SystemCrashDialog(
             global.root,
             true,
             global,
             global.root.getHeaderRootPanel1().getClientComboBox().getSelectedItem().toString(),
             global.root.getHeaderRootPanel1().getMatterComboBox().getSelectedItem().toString(),
             "Err0075",
             error.toString());
   }
 }
 private boolean checkInput() {
   if (NewFileTypeTextBox.getText().trim().equals(""))
     popOver = new ErrorPopOver(NewFileTypeTextBox, "Please enter a file type");
   else if (FileTypeAbbreviationTextBox.getText().trim().equals(""))
     popOver = new ErrorPopOver(FileTypeAbbreviationTextBox, "Please enter an abbreviation");
   else return true;
   return false;
 }
 private void AddButton() {
   if (!NewFileTypeTextBox.getText().toString().trim().equals("")
       && !FileTypeAbbreviationTextBox.getText().toString().trim().equals("")) {
     AddType.setEnabled(true);
   } else {
     AddType.setEnabled(false);
   }
 }