Ajuda com FormularioJFrame

1 resposta
D

estou com o seguinte problema: quando crio um novo formularioJFrame ele vem assim:

<#-- FreeMarker template(see http://freemarker.org/) -->
    <#assign licenseFirst = "/*">
    <#assign licensePrefix = " * ">
    <#assign licenseLast = " */">
    <#include "../Licenses/license-${project.license}.txt">
    
    /*
     * ${name}.java
     *
     * Created on ${date}, ${time}
     */
    
    <#if packageinterfaces?? && package != "">
    package ${package};
    
    </#if>
            /**
             *
             * @author ${user}
             */
            public class ${name} extends javax.swing.JFrame {
                
                /** Creates new form ${name} */
                public ${name}() {
                    initComponents();
                }
                
                /** This method is called from within the constructor to
                 * initialize the form.
                 * WARNING: Do NOT modify this code. The content of this method is
                 * always regenerated by the Form Editor.
                 */
                @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>
                
                /**
                 * @param args the command line arguments
                 */
                public static void main(String args[]) {
                    java.awt.EventQueue.invokeLater(new Runnable() {
                        public void run() {
                            new ${name}().setVisible(true);
                        }
                    });
                }
                
    // Variables declaration - do not modify
    // End of variables declaration
                
            }

ja reinstalei o netbeans um monte de vezes, e isso so acontece qdo faço a atualizaçao, alquem pode me dizer o q é isso e se tem alguma soluçao???

1 Resposta

D

nem perdi tempo vendo o seu código, não entendi nada do que quis dizer.

Criado 24 de fevereiro de 2011
Ultima resposta 24 de fev. de 2011
Respostas 1
Participantes 2