Buggy code:
public class Library extends JDialog { private static final long serialVersionUID = - 2484054165656612936L ; private StatLibrary _statLib = new StatLibrary ( ) ; private List < Stats > _statsToAdd = new ArrayList < Stats > ( ) ; private JButton jButtonAdd ; private JButton jButtonATLoad ; private JButton jButtonCBLoad ; private JButton jButtonCopy ; private JButton jButtonDelete ; private JButton jButtonEdit ; private JButton jButtonNew ; private JButton jButtonRemove ; private JEditorPane jEditorPaneStatblock ; private JLabel jLabelBattleList ; private JLabel jLabelName ; private JLabel jLabelXPTotal ; private JList jListBattleList ; private JList jListEntries ; private JPanel jPanelBottomLeft ; private JPanel jPanelBottomRight ; private JPanel jPanelCenterLeft ; private JPanel jPanelRight ; private JScrollPane jScrollPaneBattleList ; private JScrollPane jScrollPaneEntries ; private JScrollPane jScrollPaneStatblock ; private JSplitPane jSplitPaneMain ; private JSplitPane jSplitPaneSub ; private JTextField jTextFieldName ; private JTextField jTextFieldXPTotal ; private JToolBar jToolBarTopLeft ; private JToolBar jToolBarTopRight ; public Library ( ) { } public Library ( StatLibrary statlib , Frame c ) { } private void initComponents ( ) { } private JButton getJButtonAdd ( ) { } private JButton getJButtonATLoad ( ) { } private JButton getJButtonCBLoad ( ) { } private JButton getJButtonCopy ( ) { } private JButton getJButtonDelete ( ) { } private JButton getJButtonEdit ( ) { } private JButton getJButtonNew ( ) { } private JButton getJButtonRemove ( ) { } private JEditorPane getJEditorPaneStatblock ( ) { } private JLabel getJLabelBattleList ( ) { } private JLabel getJLabelName ( ) { } private JLabel getJLabelXPTotal ( ) { } private JList getJListBattleList ( ) { } private JList getJListEntries ( ) { } private JPanel getJPanelBottomLeft ( ) { } private JPanel getJPanelBottomRight ( ) { } private JPanel getJPanelCenterLeft ( ) { } private JPanel getJPanelRight ( ) { } private JScrollPane getJScrollPaneBattleList ( ) { } private JScrollPane getJScrollPaneEntries ( ) { } private JScrollPane getJScrollPaneStatblock ( ) { } private JSplitPane getJSplitPaneMain ( ) { } private JSplitPane getJSplitPaneSub ( ) { } private JTextField getJTextFieldName ( ) { } private JTextField getJTextFieldXPTotal ( ) { } private JToolBar getJToolBarTopLeft ( ) { } private JToolBar getJToolBarTopRight ( ) { } private StatLibrary getStatLib ( ) { } public List < Stats > getStatsToAdd ( ) { } private void jButtonAddActionActionPerformed ( ActionEvent event ) { } private void jButtonATLoadActionActionPerformed ( ActionEvent event ) { } private void jButtonCBLoadActionActionPerformed ( ActionEvent event ) { Stats stat ; JFileChooser fc = new JFileChooser ( ) ; fc . setDialogTitle ( "Load<seq2seq4repair_space>Character<seq2seq4repair_space>File" ) ; fc . setMultiSelectionEnabled ( true ) ; fc . setCurrentDirectory ( Settings . getWorkingDirectory ( ) ) ; fc . setFileFilter ( new FileFilter ( ) { @ Override public boolean accept ( File f ) { return ( f . isDirectory ( ) ) || ( f . getName ( ) . endsWith ( ".dnd4e" ) ) ; } @ Override public String getDescription ( ) { return "Character<seq2seq4repair_space>files<seq2seq4repair_space>(*.dnd4e)" ; } } ) ; if ( ( fc . showOpenDialog ( this ) ) == ( JFileChooser . APPROVE_OPTION ) ) { Settings . setWorkingDirectory ( fc . getCurrentDirectory ( ) ) ; for ( File f : fc . getSelectedFiles ( ) ) { stat = new Stats ( ) ; if ( stat . loadFromCBFile ( f . getAbsolutePath ( ) ) ) { if ( stat . isValid ( ) ) { if ( getStatLib ( ) . contains ( stat . getHandle ( ) ) ) { <START_BUG> int n = JOptionPane . showConfirmDialog ( this , ( ( ( stat . getHandle ( ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>exists<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>library.\n" ) + "Overwrite?" ) , "Pre-existing<seq2seq4repair_space>Statblock<seq2seq4repair_space>Found" , JOptionPane . QUESTION_MESSAGE ) ; <END_BUG> if ( n == ( JOptionPane . CANCEL_OPTION ) ) { continue ; } } getStatLib ( ) . add ( stat , true ) ; } } } getJTextFieldName ( ) . setText ( "" ) ; resetListFromClass ( ) ; } } private void jButtonCopyActionActionPerformed ( ActionEvent event ) { } private void jButtonDeleteActionActionPerformed ( ActionEvent event ) { } private void jButtonEditActionActionPerformed ( ActionEvent event ) { } private void jButtonNewActionActionPerformed ( ActionEvent event ) { } private void jButtonRemoveActionActionPerformed ( ActionEvent event ) { } private void jEditorPaneStatblockHyperlinkHyperlinkUpdate ( HyperlinkEvent event ) { } private void jListBattleListListSelectionValueChanged ( ListSelectionEvent event ) { } private void jListBattleListMouseMouseClicked ( MouseEvent event ) { } private void jListEntriesListSelectionValueChanged ( ListSelectionEvent event ) { } private void jListEntriesMouseMouseClicked ( MouseEvent event ) { } private void jTextFieldNameInputMethodInputMethodTextChanged ( InputMethodEvent event ) { } private void resetListFromClass ( ) { } private void setStatLib ( StatLibrary statLib ) { } private void updateAddXPTotals ( ) { } private void windowWindowClosing ( WindowEvent event ) { } No newline ; at end ; of file ; }

Fix:
int n = JOptionPane . showConfirmDialog ( this , ( ( ( stat . getHandle ( ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>exists<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>library.\n" ) + "Overwrite?" ) , "Pre-existing<seq2seq4repair_space>Statblock<seq2seq4repair_space>Found" , JOptionPane . YES_NO_OPTION ) ;