Hi there,
I'm learning
Java from Head First and I'm trying to write a simple GUI program that first asks if the user wants to load a game or start completely over. After that, the user gets to change the values of his character. If the user selected Restore, the TextFields contain the information that he saved last time the game was played.
However, in the method gameGui(), the JVM throws an exception at me saying that Boxlayout can't be shared. I do not understand that at all. Maybe somebody can help =)
The code(Don't worry, the bulk of it is just Swing ;)
Maybe something goes wrong in the panel.removeAll()?
I would be grateful if somebody could help. If you want to see the relatively simple GameCharacter class, here it is:
Thanks in advance for helping =)