public static void showRecognizeDialog(Component c) throws HeadlessException {
        HashMap<String, ArrayList<String>> shapeCoords = App.ge.getShapeCoordString();
        StringBuilder sb = new StringBuilder("Recognized:\n");
        if (shapeCoords.get(Shapes.POLY) != null) {
            sb.append("   ").append(shapeCoords.get(Shapes.POLY).size()).append(" polygons\n");
        }
        if (shapeCoords.get(Shapes.CIRCLE) != null) {
            sb.append("   ").append(shapeCoords.get(Shapes.CIRCLE).size()).append(" circles\n");
        }
        if (shapeCoords.get(Shapes.ENVELOPE) != null) {
            sb.append("   ").append(shapeCoords.get(Shapes.ENVELOPE).size()).append(" boxes\n");
        }
        JOptionPane.showMessageDialog(c, sb.toString(), "Check passed", JOptionPane.INFORMATION_MESSAGE);
    }