package eecs1022; import java.awt.Color; import javax.swing.JOptionPane; import franck.Grid; public class RowOfCellsReprompt { public static void main(String[] args) { int column; do { String input = JOptionPane.showInputDialog("Number of columns"); column = Integer.parseInt(input); } while (column <= 0); Grid grid = new Grid(column); for (int c = 0; c < column; c++) { grid.set(c, Color.RED); } } }