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.
I have to make a GUI with four buttons (north, south, east, west) that changes the text of a JLabel in the middle of a JPanel. When I compile and press a button, nothing happens.
I tried a lot of changes in the code, I started with String variable as an argument for the JLabelJLabel(labelText) and found out later on that there is a setText() method that does this. All nice things I've learned, but the button still doesn't work. Every time I fire it up, the button layout stays the same, and clicking the buttons do not change the text. I tried declaring the inner classes public, but that doesn't do the trick, I thought this wasn't necessary anyway.
What am I doing wrong? Hope you can help me, thanks in advance!
please cut here