private String makeComment(){
        String c=((ComboText)command.getSelectedItem()).getValue();
        String t=((ComboText)command.getSelectedItem()).getText();
        String obj=objName.getText();
        if(c.equals("MAKE")){
            return t+" "+obj;
        }
        if(obj.equals("canvas2d")) obj="";
        else obj+=":\n";
        if(c.equals("drawPixel")||c.equals("lineFrom")||c.equals("lineTo")){
            return obj+t+" "+drawX.getText()+", "+drawY.getText()+"";
        }
        else if(c.equals("drawMap")){
            return obj+t;
        }
        if(c.equals("drawLine")){
            return obj+t+" "+
                    "("+lineFromX.getText()+";"+
                    lineFromY.getText()+");"+
                    "("+lineToX.getText()+";"+
                    ""+lineToY.getText()+")";
        }
        if(c.equals("setColor")){
            return obj+t+"";
        }
        return "";
    }