private void buildMapActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buildMapActionPerformed
       int x,y;
       try{
    	   x = Integer.valueOf(this.xField.getText());
    	   y = Integer.valueOf(this.yField.getText());
       } catch (Exception e){
    	   this.warningsLabel.setText("Must enter integers");
    	   this.xField.setText("");
    	   this.yField.setText("");
    	   return;
       }
       if(x <= 0 || x > 5 || y <= 0 || y > 5){
    	   this.warningsLabel.setText("Must enter in bounds [1,5]");
    	   this.xField.setText("");
    	   this.yField.setText("");
    	   return;
       }
       this.canvas.clean();
       MyMapBuilder b = new MyMapBuilder();
       b.setSize(x, y);
       Map<MyHex> m = b.buildMap();
       GeometricAdapter geo = new GeometricAdapter(m);
       Metric metric = new Metric(GeoElements.OfHexagon.NotableSegments.DIAMETER, 50);
       geo.setMetric(metric);
       this.canvas.setSize((int)geo.sizeX(), (int)geo.sizeY()+10);
       this.canvas.paintHex(geo, m);
    }