CS2212-2012-G2 / SurvivorPool

CS2212 Project
Other
1 stars 0 forks source link

Player's ultimate pick is reverted to null #91

Closed slyos closed 12 years ago

slyos commented 12 years ago

Steps to reproduce:

  1. Select a player in the player tab that has a null pick for ultimate pick.
  2. Cast off a random contestant
  3. advance week
  4. go to player tab, all players have ultimate picks
  5. click on table
  6. the selected contestant from the first step has the ultimate pick reverted to null.

I did output the values before and after the advance week is called, and all the ultimate picks for all the users is correct. It just isn't being displayed in the table properly.

slyos commented 12 years ago

PlayersFieldPanel.getFromPane

The user's picks are being set from the combo box which is null. Have to find out a way that only updates the values in the table when the save/add button is clicked.

Nava2 commented 12 years ago

Wait what do you want?

You want to only pull from the pane when the button is pressed? Is it not doing that now?

slyos commented 12 years ago

The values for players are set from the values in the edit field each time you click on the table. I don't know if that is supposed to happen.

We need to set it so that the ComboBox defaults to the current player's picks, which is not happening. That's why it's setting the ultimate pick to null.