package eecs1022; import java.awt.Color; import javax.swing.JOptionPane; import franck.Grid; public class RedOrBlueOrYellow { 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); } else if (choice == 1) { grid.set(0, Color.BLUE); } else { grid.set(0, Color.YELLOW); } } }