Use the data from the non-empty input boxes for the pie chart. The applet should have a button that the user clicks to draw the pie chart. And it should have a sub-class of the Canvas class that will display the pie chart. The data that you need is the angles of the dividing lines between the wedges. This is not the same as the data from the input boxes, but it can be computed from that data.
Players take turns placing pieces on a board.
A piece can be placed in any empty square. If all squares are filled before either player wins, then the game is a draw. Write an applet that lets two players play Go Moku against each other. Your applet will be simpler than the Checkers applet from Section 8.5 . Play alternates strictly between the two players, and there is no need to hilite the legal moves.