grid = new Grid2D(gridModel);
grid.setPreferredSize(new Dimension(399, 49));
grid.setZoom(50);
grid.setLinesVisible(true);
grid.setForeground(Color.gray);
grid.setCellRenderer(new AbstractGridCellRenderer() {
private final String[] text = new String[] { "XXX", "XXO", "XOX", "XOO",
"OXX", "OXO", "OOX", "OOO" };
private final Color[] colors = new Color[] { Color.black,
Color.lightGray.brighter() };