View Single Post
  #8 (permalink)  
Old 06-23-2008, 06:35 PM
nickbeacroft nickbeacroft is offline
Member
 
Join Date: Jun 2008
Posts: 6
nickbeacroft is on a distinguished road
Ok it' official, I am an idiot. I realised the problem through fixing another issue. Basically I was calling the alter text method in an old version of the JPanel, ie my view had stored the original version of the JPanel, not the latest. So I was calling the right method, it was changing the JLabel but in the old JPanel, which was why it wasn't changing what I saw.

Now, all I simply have to do is call jLabel.setText("new text"); which automatically redraws/repaints the JLabel to include the new text. Hope my woes help others in similar situations.

Thanks again for your help guys, really appreciate it.
Reply With Quote