现在已经看到球员表单是如何创建的,再看看处理提交的代码(见 清单 11)。
Now that you have seen how the player form is created, take a look at the code that handles its submissions (see Listing 11).
首先,创建一个可以根据选择显示NBA或MLB球员的TreeViewer。
First, we create one TreeViewer that can display NBA or MLB players according to your choice.
我的第一选择是“My Player”模式在此模式下你可以创建一个球员,把他带到队伍中去,以获得真正的NBA席位。
My first choice was My player, the mode that has you craft a player and bring him up through the ranks to hopefully earn a spot on a real NBA squad.
应用推荐