A better way is to use a grid layout. Setup your JPanel to accept a 8*8 set of components, and then each component can be drawn separately.


public class GUI
{
public static void...