Buggy code:
public class ActivationTab extends JPanel { private static final long serialVersionUID = - 8002444578776391643L ; MSystem sys_ ; UVThreader uv_ ; MConfiguration config_ ; ImageProcessor ip_ ; ImagePlus im_ ; boolean checkedNMS = false ; boolean checkedUV = false ; DecimalFormat df ; UVRestarter uvr_ ; int dT_ ; double N0_ ; double uvcoeff_ ; double stdcoeff_ ; int framereset_ = 39984 ; private MainFrame parent_ ; public ActivationTab ( MSystem sys , MConfiguration config , MainFrame parent ) { } private void initComponents ( ) { jPanel_left = new JPanel ( ) ; jToggleButton_activate = new JToggleButton ( ) ; jLabel_stdcoeff = new JLabel ( ) ; jLabel_uvcoeff = new JLabel ( ) ; jTextField_stdcoeff = new JTextField ( ) ; jTextField_uvcoeff = new JTextField ( ) ; jButton_GetN = new JButton ( ) ; jTextField_N = new JTextField ( ) ; jPanel_bottom = new JPanel ( ) ; jLabel_cutoff = new JLabel ( ) ; jTextField_cutoff = new JTextField ( ) ; jButton_getcutoff = new JButton ( ) ; jToggleButton_autocutoff = new JToggleButton ( ) ; jCheckBox_activate = new JCheckBox ( ) ; jCheckBox_showNMS = new JCheckBox ( ) ; jButton_clear = new JButton ( ) ; jTextField_framereset = new JTextField ( ) ; jToggleButton_framereset = new JToggleButton ( ) ; setPreferredSize ( new Dimension ( 390 , 212 ) ) ; setLayout ( new AbsoluteLayout ( ) ) ; jCheckBox_activate . setSelected ( checkedUV ) ; jCheckBox_activate . addItemListener ( new ItemListener ( ) { @ Override public void itemStateChanged ( ItemEvent evt ) { if ( jCheckBox_activate . isSelected ( ) ) { checkedUV = true ; } else { checkedUV = false ; } } } ) ; jTextField_framereset . setText ( String . valueOf ( framereset_ ) ) ; jTextField_framereset . addFocusListener ( new FocusListener ( ) { @ Override public void focusGained ( FocusEvent arg0 ) { } @ Override public void focusLost ( FocusEvent arg0 ) { String s = jTextField_framereset . getText ( ) ; try { framereset_ = Integer . parseInt ( s ) ; System . out . println ( framereset_ ) ; } catch ( Exception ex ) { } } } ) ; jTextField_framereset . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { String s = jTextField_framereset . getText ( ) ; if ( utils . isNumeric ( s ) ) { try { framereset_ = Integer . parseInt ( s ) ; System . out . println ( framereset_ ) ; } catch ( Exception ex ) { } } } } ) ; jToggleButton_framereset . setText ( "F<seq2seq4repair_space>reset" ) ; jToggleButton_framereset . setMargin ( new Insets ( 2 , 2 , 2 , 2 ) ) ; jToggleButton_framereset . addItemListener ( new ItemListener ( ) { @ Override public void itemStateChanged ( ItemEvent evt ) { <START_BUG> if ( jCheckBox_activate . isSelected ( ) ) { <END_BUG> sys_ . getApp ( ) . attachRunnable ( framereset_ , ( - 1 ) , ( - 1 ) , ( - 1 ) , uv_ ) ; System . out . println ( ( "Attach<seq2seq4repair_space>with<seq2seq4repair_space>frame<seq2seq4repair_space>" + ( framereset_ ) ) ) ; } else { sys_ . getApp ( ) . clearRunnables ( ) ; System . out . println ( "Clear" ) ; } } } ) ; jTextField_stdcoeff . setText ( String . valueOf ( config_ . getDefaultSDcoeff ( ) ) ) ; stdcoeff_ = config_ . getDefaultSDcoeff ( ) ; jTextField_stdcoeff . addFocusListener ( new FocusListener ( ) { @ Override public void focusGained ( FocusEvent arg0 ) { } @ Override public void focusLost ( FocusEvent arg0 ) { String s = jTextField_stdcoeff . getText ( ) ; if ( utils . isNumeric ( s ) ) { stdcoeff_ = Double . parseDouble ( s ) ; } } } ) ; jTextField_stdcoeff . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { String s = jTextField_stdcoeff . getText ( ) ; if ( utils . isNumeric ( s ) ) { stdcoeff_ = Double . parseDouble ( s ) ; } } } ) ; jTextField_uvcoeff . setText ( String . valueOf ( config_ . getDefaultUVcoeff ( ) ) ) ; uvcoeff_ = config_ . getDefaultUVcoeff ( ) ; jTextField_uvcoeff . addFocusListener ( new FocusListener ( ) { @ Override public void focusGained ( FocusEvent arg0 ) { } @ Override public void focusLost ( FocusEvent arg0 ) { String s = jTextField_uvcoeff . getText ( ) ; if ( utils . isNumeric ( s ) ) { uvcoeff_ = Double . parseDouble ( s ) ; } } } ) ; jTextField_uvcoeff . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { String s = jTextField_uvcoeff . getText ( ) ; if ( utils . isNumeric ( s ) ) { uvcoeff_ = Double . parseDouble ( s ) ; } } } ) ; jTextField_N . setText ( "0" ) ; N0_ = 0 ; jTextField_N . addFocusListener ( new FocusListener ( ) { @ Override public void focusGained ( FocusEvent arg0 ) { } @ Override public void focusLost ( FocusEvent arg0 ) { String s = jTextField_N . getText ( ) ; if ( utils . isNumeric ( s ) ) { N0_ = Double . parseDouble ( s ) ; } } } ) ; jTextField_N . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { String s = jTextField_N . getText ( ) ; if ( utils . isNumeric ( s ) ) { N0_ = Double . parseDouble ( s ) ; } } } ) ; jButton_GetN . setText ( "Get<seq2seq4repair_space>N" ) ; jButton_GetN . setMargin ( new Insets ( 2 , 2 , 2 , 2 ) ) ;

Fix:
if ( jToggleButton_framereset . isSelected ( ) ) {