Posted by adenjones
on August 23, 2008 at 4:46 AM PDT
Okay I think this is the right place to post.
Iam new to Java and am undertaking my first GUI assignment as part of a Diploma course.
I am running my program from an extended JFrame class that implements ActionListener. Everything was working fine till I created an infinate loop from within the JFrame class that is set off by pressing a button. This loop runs a simulation and should updated changes to the screen. What is happening is that the the GUI is freezing and the button to stop the simulation (which is also the button to start the simulation) freezes and nothing gets updated.
I am sure that this is a beginner level mistake.
Thanks in advance for any pointers.