koenhendriks / CarParkSimulation

Java assignment for a car park simulation
GNU General Public License v3.0
1 stars 3 forks source link

Create a simple GUI #2

Closed koenhendriks closed 8 years ago

koenhendriks commented 8 years ago

To test / debug our application, we'll need to develop a simple GUI with buttons that allows us to run the program for 1 or for 100 steps.

Note: We shouldn't put to much time this this GUI because we'll be updating it with a MVC later in the weeks.

rubenbuisman commented 8 years ago

How can I use the tick() method (which is located in the simulator.java) in the ActionListener() (which is located in the simulatorview.java). In the run() method the tick method is looped for 10.000 steps. Each step is one tick(). So to create the 100 steps button, we have to run the tick() 100 times. Can't get this working atm.