@Override
    public void saveBlock() {
        colorHEX.requestFocus();
        editing.obj=logoObj.getText();
        editing.commentIsHTML=global.useJLabels;
        String c=((ComboText)command.getSelectedItem()).getValue();
        editing.command=c;
        if(c.equals("forward") || c.equals("backward")
                || c.equals("turnRight") || c.equals("turnLeft")){
            editing.data=new Object[1];
            editing.data[0]=value.getText();
        }
        if(c.equals("MAKE")){
            editing.data=new Object[3];
            editing.data[0]=makeW.getValue();
            editing.data[1]=makeH.getValue();
            editing.data[2]=closedCanvas.isSelected();
        }
        if(c.equals("setColor")){
            editing.data=new Object[1];
            editing.data[0]=colorHEX.getText();
        }
        editing.setCode(makeCode());
        editing.setComment(makeComment());
        editing.shape();
        editing.requestRepaint();
    }