Buggy code:
j < ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . size ( ) ) ; j ++ ) { playerArray . add ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . get ( j ) . getPlayerName ( ) ) ; String [ ] playerArrayNotList = new String [ playerArray . size ( ) ] ; for ( int m = 0 ; m < ( playerArray . size ( ) ) ; m ++ ) { playerArrayNotList [ m ] = playerArray . get ( m ) ; } playerList . setListData ( playerArrayNotList ) ; attemptPricePrompt . setText ( "---" ) ; attemptPrice . setEditable ( false ) ; buttonAttempt . setEnabled ( false ) ; } } } } if ( ( ( buyOrSellList . getSelectedIndex ( ) ) == 0 ) && ( buyOrSellList . getValueIsAdjusting ( ) ) ) { teamPrompt . setText ( "Please<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>team<seq2seq4repair_space>to<seq2seq4repair_space>buy<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>from:<seq2seq4repair_space>" ) ; System . out . println ( buyOrSellList . getSelectedValue ( ) ) ; } if ( ( ( buyOrSellList . getSelectedIndex ( ) ) == 1 ) && ( buyOrSellList . getValueIsAdjusting ( ) ) ) { teamPrompt . setText ( "Please<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>team<seq2seq4repair_space>to<seq2seq4repair_space>sell<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>to:<seq2seq4repair_space>" ) ; System . out . println ( buyOrSellList . getSelectedValue ( ) ) ; } if ( ( ( ( teamList . isSelectionEmpty ( ) ) == false ) && ( ( buyOrSellList . isSelectionEmpty ( ) ) == false ) ) && ( ( playerList . isSelectionEmpty ( ) ) == false ) ) { attemptPricePrompt . setText ( "For<seq2seq4repair_space>what<seq2seq4repair_space>price<seq2seq4repair_space>would<seq2seq4repair_space>you<seq2seq4repair_space>like<seq2seq4repair_space>to<seq2seq4repair_space>try<seq2seq4repair_space>this?" ) ; attemptPrice . setEditable ( true ) ; buttonAttempt . setEnabled ( true ) ; } } } ) ; teamPrompt . setOpaque ( true ) ; teamPrompt . setPreferredSize ( new Dimension ( 400 , 20 ) ) ; teamPrompt . setEditable ( false ) ; teamPrompt . setText ( "---" ) ; teamPrompt . setBackground ( Color . decode ( "#525151" ) ) ; teamPrompt . setForeground ( Color . white ) ; teamPrompt . setMinimumSize ( new Dimension ( 400 , 20 ) ) ; teamPrompt . setFont ( new Font ( "Arial" , Font . PLAIN , 12 ) ) ; c . weightx = 0.5 ; c . gridx = 1 ; c . gridy = 4 ; layout . setConstraints ( teamPrompt , c ) ; this . add ( teamPrompt ) ; teamList . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; teamList . setVisibleRowCount ( ( - 1 ) ) ; teamList . setBackground ( Color . decode ( "#525151" ) ) ; teamList . setForeground ( Color . white ) ; teamList . setMinimumSize ( new Dimension ( 400 , 200 ) ) ; teamList . setFont ( new Font ( "Arial" , Font . PLAIN , 12 ) ) ; JScrollPane teamScroller = new JScrollPane ( teamList ) ; teamScroller . setPreferredSize ( new Dimension ( 400 , 200 ) ) ; teamScroller . setMinimumSize ( new Dimension ( 400 , 200 ) ) ; c . gridx = 1 ; c . gridy = 5 ; layout . setConstraints ( teamScroller , c ) ; this . add ( teamScroller ) ; teamList . addListSelectionListener ( new ListSelectionListener ( ) { @ Override public void valueChanged ( ListSelectionEvent e ) { <START_BUG> if ( ( teamList . getValueIsAdjusting ( ) ) && ( buyOrSellList . getSelectedValue ( ) . equals ( "Buy" ) ) ) { <END_BUG> playerArray . clear ( ) ; for ( int i = 0 ; i < ( StateManager . getLeague ( ) . getTeams ( ) . size ( ) ) ; i ++ ) { if ( teamList . getSelectedValue ( ) . equals ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getTeamName ( ) ) ) { playerPrompt . setText ( "Please<seq2seq4repair_space>select<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>from<seq2seq4repair_space>this<seq2seq4repair_space>team:" ) ; for ( int j = 0 ; j < ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . size ( ) ) ; j ++ ) { playerArray . add ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . get ( j ) . getPlayerName ( ) ) ; String [ ] playerArrayNotList = new String [ playerArray . size ( ) ] ; for ( int m = 0 ; m < ( playerArray . size ( ) ) ; m ++ ) { playerArrayNotList [ m ] = playerArray . get ( m ) ; } playerList . setListData ( playerArrayNotList ) ; attemptPricePrompt . setText ( "---" ) ; attemptPrice . setEditable ( false ) ; buttonAttempt . setEnabled ( false ) ; } } } } if ( ( teamList . getValueIsAdjusting ( ) ) && ( buyOrSellList . getSelectedValue ( ) . equals ( "Sell" ) ) ) { playerArray . clear ( ) ; for ( int i = 0 ; i < ( StateManager . getLeague ( ) . getTeams ( ) . size ( ) ) ; i ++ ) { if ( StateManager . getLeague ( ) . getChosenTeam ( ) . equals ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getTeamName ( ) ) ) { playerPrompt . setText ( "Please<seq2seq4repair_space>select<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>from<seq2seq4repair_space>your<seq2seq4repair_space>team:" ) ; for ( int j = 0 ; j < ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . size ( ) ) ; j ++ ) { playerArray . add ( StateManager . getLeague ( ) . getTeams ( ) . get ( i ) . getPlayers ( ) . get ( j ) . getPlayerName ( ) ) ;

Fix:
if ( ( teamList . getValueIsAdjusting ( ) ) || ( buyOrSellList . getSelectedValue ( ) . equals ( "buy" ) ) ) {