I'm new to Java and I have a very frustrating problem.
We have a college assignment and the task is to create a "Rock, paper, scissor" game with five different classes.
The classes are: SSPMain, SSPPlayer, SSPViewer, SSPController and SSPUserInput.
The problem I have is that the text in the JLabel "humanSelectionLabel" (SSPViewer) is not changed to "Rock" after I have clicked on the JButton "rockButton" (SSPUserInput).
I have added a System.out.println in the method which receives the selection-String and it prints "Rock", so the method receives what it should but the setText instruction does not work.
SSPMain
SSPPlayer
SSPViewer
SSPController
SSPUserInput