How are you passing the Graphics object? Why are you not using a JPanel? Creating the Demo Application (Step 1) (The Java™ Tutorials > Creating a GUI With JFC/Swing > Performing Custom Painting) has...