.addGap(12, 12, 12))
);
}// </editor-fold>//GEN-END:initComponents
private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed
AddEncodingDialog dialog = new AddEncodingDialog(((SingleFrameApplication) org.jdesktop.application.Application.getInstance()).getMainFrame(), true);
dialog.setEncodings(((EncodingsListModel) jList1.getModel()).getCharsets());
dialog.setLocationRelativeTo(dialog.getParent());
dialog.setVisible(true);
if (dialog.getOption() == JOptionPane.OK_OPTION) {
((EncodingsListModel) jList1.getModel()).addAll(dialog.getEncodings(), jList1.isSelectionEmpty() ? -1 : jList1.getSelectedIndex());
}
}//GEN-LAST:event_addButtonActionPerformed