make the grid layout example extend jframe instead