I've got my beautiful gui program all done except for one thing. How would I go about changing the text in a JLabel? jLabel.setText("whatever") changes the text I know, but it doesn't actually show the change. What do I do???
I've got the label a few panels deep, so I don't know if that's affecting it or not. I even tried repainting everything in the whole tree leading down to the labels.
>I'll post my code for someone to look at, but it's lengthy so I'll only do it if it's asked for.
post just enough (compilable) code to demonstrate the problem.
just a thought, you don't have a duplicate declaration, something like this - run it as is, no change, comment out the duplicate declaration and it changes
Good idea, but that's no it either. The labels only have one instance of each. I have each of them inside an inner class extending JPanel, and those panels are in the JFrame.