Buggy code:
JLabel lblNewLabel = new JLabel ( "Options" ) ; lblNewLabel . setForeground ( Color . GRAY ) ; lblNewLabel . setOpaque ( true ) ; lblNewLabel . setBackground ( Color . DARK_GRAY ) ; lblNewLabel . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI<seq2seq4repair_space>Black" , Font . PLAIN , 20 ) ) ; lblNewLabel . setHorizontalAlignment ( SwingConstants . CENTER ) ; panel_1 . add ( lblNewLabel , BorderLayout . NORTH ) ; JSeparator separator = new JSeparator ( ) ; separator . setAlignmentX ( Component . LEFT_ALIGNMENT ) ; separator . setAlignmentY ( Component . TOP_ALIGNMENT ) ; panel_1 . add ( separator , BorderLayout . CENTER ) ; JPanel panel = new JPanel ( ) ; panel . setBackground ( Color . GRAY ) ; panel . setBorder ( new EmptyBorder ( 5 , 10 , 0 , 10 ) ) ; panel . setComponentOrientation ( ComponentOrientation . LEFT_TO_RIGHT ) ; panel_1 . add ( panel , BorderLayout . SOUTH ) ; panel . setLayout ( new GridLayout ( 4 , 4 , 5 , 5 ) ) ; JLabel lblIp = new JLabel ( "IP<seq2seq4repair_space>(server-only)" ) ; lblIp . setForeground ( Color . BLACK ) ; lblIp . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; lblIp . setHorizontalAlignment ( SwingConstants . LEFT ) ; lblIp . setAlignmentX ( Component . CENTER_ALIGNMENT ) ; panel . add ( lblIp ) ; txtSocket = new JTextField ( ) ; txtSocket . setBackground ( Color . LIGHT_GRAY ) ; txtSocket . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; txtSocket . setMaximumSize ( new Dimension ( 12 , 28 ) ) ; txtSocket . setHorizontalAlignment ( SwingConstants . LEFT ) ; txtSocket . setComponentOrientation ( ComponentOrientation . LEFT_TO_RIGHT ) ; panel . add ( txtSocket ) ; txtSocket . setColumns ( 10 ) ; JLabel lblNewLabel_2 = new JLabel ( "Socket" ) ; lblNewLabel_2 . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; lblNewLabel_2 . setHorizontalAlignment ( SwingConstants . LEFT ) ; panel . add ( lblNewLabel_2 ) ; textField = new JTextField ( ) ; textField . setBackground ( Color . LIGHT_GRAY ) ; textField . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; textField . setMaximumSize ( new Dimension ( 12 , 28 ) ) ; panel . add ( textField ) ; textField . setColumns ( 10 ) ; JLabel lblWaitTime = new JLabel ( "Refresh<seq2seq4repair_space>delay<seq2seq4repair_space>(ms)" ) ; lblWaitTime . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; lblWaitTime . setHorizontalAlignment ( SwingConstants . LEFT ) ; panel . add ( lblWaitTime ) ; textField_1 = new JTextField ( ) ; textField_1 . setBackground ( Color . LIGHT_GRAY ) ; textField_1 . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; textField_1 . setMaximumSize ( new Dimension ( 12 , 28 ) ) ; panel . add ( textField_1 ) ; textField_1 . setColumns ( 10 ) ; txtSocket . setText ( IPA ) ; textField . setText ( PORTNUM ) ; textField_1 . setText ( RTIME ) ; Box horizontalBox = Box . createHorizontalBox ( ) ; horizontalBox . setBorder ( new EmptyBorder ( 0 , 0 , 10 , 10 ) ) ; horizontalBox . setAlignmentX ( Component . RIGHT_ALIGNMENT ) ; frmTestBoxV . getContentPane ( ) . add ( horizontalBox , BorderLayout . EAST ) ; JButton btnOk = new JButton ( "Ok" ) ; btnOk . setFont ( new Font ( "Segoe<seq2seq4repair_space>UI" , Font . PLAIN , 12 ) ) ; frmTestBoxV . getRootPane ( ) . setDefaultButton ( btnOk ) ; btnOk . addActionListener ( ( arg0 ) -> { String tIP = txtSocket . getText ( ) ; String tPN = textField . getText ( ) ; String tRT = textField_1 . getText ( ) ; boolean success = false ; boolean a = false ; boolean b = false ; boolean c = false ; <START_BUG> if ( ( ( ! ( tIP . isEmpty ( ) ) ) || ( ! ( tPN . isEmpty ( ) ) ) ) || ( ! ( tRT . isEmpty ( ) ) ) ) { <END_BUG> if ( ! ( tIP . equals ( IPA ) ) ) { OptionsReader . addOptions ( "IpAddress" , tIP ) ; a = true ; } try { Integer . parseInt ( tPN ) ; if ( ! ( tPN . equals ( PORTNUM ) ) ) { OptionsReader . addOptions ( "Portnum" , tPN ) ; b = true ; } success = true ; } catch ( NumberFormatException e ) { textField . setText ( "NaN" ) ; } if ( ! ( tRT . equals ( RTIME ) ) ) { OptionsReader . addOptions ( "RefreshTime" , tRT ) ; c = true ; } OptionsReader . write ( ) ; if ( success ) { frmTestBoxV . dispose ( ) ; Packet tmpP = new Packet ( "Opt<seq2seq4repair_space>Chg" , Codes . OPTSAVE ) ; tmpP . a = a ; tmpP . b = b ; tmpP . c = c ; codes . offer ( tmpP ) ; } } } ) ; JButton btnCancel = new JButton ( "Cancel" ) ; btnCancel . addActionListener ( ( arg0 ) -> frmTestBoxV . dispose ( ) ) ; btnCancel . setAlignmentY ( Component . BOTTOM_ALIGNMENT ) ; btnCancel . setAlignmentX ( Component . RIGHT_ALIGNMENT ) ; horizontalBox . add ( btnCancel ) ; Component horizontalStrut = Box . createHorizontalStrut ( 20 ) ; horizontalStrut . setPreferredSize ( new Dimension ( 10 , 0 ) ) ; horizontalStrut . setMaximumSize ( new Dimension ( 10 , 0 ) ) ; horizontalStrut . setMinimumSize ( new Dimension ( 10 , 0 ) ) ;

Fix:
if ( ! ( ( ( tIP . isEmpty ( ) ) || ( tPN . isEmpty ( ) ) ) || ( tRT . isEmpty ( ) ) ) ) {