This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
It works, but now I want to apply the color to the JLabels of each. I tried the above code, but it didn't work.
I can't compile it because of setForeground. The error is "The method setForeground(Color) is undefined for the type String."
1) Using a JOptionPane for the color chooser would offer the user the same experience as the number of players and name prompt
2) JOptionPane would allow the OP to display custom messages. Something like what color for the player?
3) I had JOptionPane so much in mind that I actually forgot about the JCholorChooser#showDialog()