I would recommend overriding the paintComponent method of the JPanel as opposed to creating your own while loop and attempting any custom painting by retrieving the Graphics of the JPanel. If you...