@Action
    public void function() {
        error.dispose();
        createS.dispose();
        createF.dispose();
        String f = func.getText();
        String dev = den.getText();
        if ((f == null ? "" == null : f.equals("")) || (dev == null ? "" == null : dev.equals(""))){
            error.setVisible(true);
            createF.dispose();
        }
        else{
            jMenu2.setEnabled(true);
            jMenuItem24.setEnabled(false);
            createS.dispose();
            int pos = textarea.getCaretPosition();
            textarea.insert("//Author: "+dev+"\n//Description:\n// Description here\n// temp position for debuging\n\nfunction	script	"+f+"	{\n\n\n}", pos);
        }
    }