private String makeCode(){
        String c=((ComboText)command.getSelectedItem()).getValue();
        if(c.equals("MAKE")){
            String code=objName.getText()+"=addons.canvas2d("+makeW.getValue()+","+makeH.getValue()+");\n";
            code+=objName.getText()+".autoUpdate="+makeUpdate.isSelected()+"\n";
            code+=objName.getText()+".setAA("+makeAA.isSelected()+")";
            return code;
            
        }
        else if(c.equals("drawMap")){
            String code=objName.getText()+".drawMap(\"";
            String m[]=map.getText().split("\n"); int i=0;
            for(String line:m){
                code+=line;
                if(i++ < m.length)code+="\\n";
            }
            code+="\")";
            return code;
        }
        else if(c.equals("drawPixel")||c.equals("lineFrom")||c.equals("lineTo")){
            return objName.getText()+"."+c+"("+
                    "("+drawX.getText()+"),"
                    +"("+drawY.getText()+"))";
        }
        else if(c.equals("drawLine")){
            return objName.getText()+"."+c+"("+
                    "("+lineFromX.getText()+"),"+
                    "("+lineFromY.getText()+"),"+
                    "("+lineToX.getText()+"),"+
                    "("+lineToY.getText()+")"+
                    ")";
        }
        else if(c.equals("setColor")){
            return objName.getText()+"."+c+"(\""+colorHEX.getText()+"\")";
        }
        return objName.getText()+"."+c+"();";
    }