package eecs1022; import java.awt.Color; import javax.swing.JOptionPane; import franck.Grid; public class RedOrBlue { public static void main(String[] args) { Grid grid = new Grid(1); String input = JOptionPane.showInputDialog("Please enter your choice"); int choice = Integer.parseInt(input); if (choice == 0) { grid.set(0, Color.RED); } if (choice == 0) { grid.set(0, Color.BLUE); } } }