public void saveBlock() {
        colorHEX.requestFocus();
        editing.obj=objName.getText();
        String c=((ComboText)command.getSelectedItem()).getValue();
        editing.command=c;
        if(c.equals("MAKE")){
            editing.data=new Object[4];
            editing.data[0]=makeW.getValue();
            editing.data[1]=makeH.getValue();
            editing.data[2]=makeUpdate.isSelected();
            editing.data[3]=makeAA.isSelected();
        }
        if(c.equals("setColor")){
            editing.data=new Object[1];
            editing.data[0]=colorHEX.getText();
        }
        if(c.equals("drawMap")){
            editing.data=new Object[1];
            editing.data[0]=map.getText();
        }
        if(c.equals("drawPixel") ||c.equals("lineFrom")||c.equals("lineTo")){
            editing.data=new Object[2];
            editing.data[0]=drawX.getText();
            editing.data[1]=drawY.getText();
        }
        if(c.equals("drawLine")){
            editing.data=new Object[4];
            editing.data[0]=lineFromX.getText();
            editing.data[1]=lineFromY.getText();
            editing.data[2]=lineToX.getText();
            editing.data[3]=lineToY.getText();
        }
        editing.setCode(makeCode());
        editing.setComment(makeComment());
        editing.shape();
        editing.requestRepaint();
    }