Is this the correct way of using Java 2D Graphics API?
I'm creating a graphical front-end for a JBox2D simulation. The simulation runs incrementally, and in between the updates, the contents of the simulation are supposed to be drawn. Similar to a game except without input. I only need geometric primitives to draw a JBox2D simulation. This API seemed like the simplest choice, but its design is a bit confusing. Currently I have one class called Window extending JFrame , that contains as a member another class called Renderer . The Window class only initializes itself and provides an updateDisplay() method (that is called by the main loop), that