Problema com arquivos

Copiei em um pen drive os meus arquivos java da sala de aula, os arquivos que não tem um JFrame funcionam normal, mas os que tem JFrame eles não funcionam, dão problema nos arquivos que o netbeans importam quando vc cria as telas JFrames.
dá problema no:
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
diz que não cannot find simbol
eu importo o javax.swing.*;
mas não resolve…

isso acontece em todos arquivos JFrame que eu trouxe…

Mas se eu fazer um JFrame novo funciona direito

o codigo é o seguinte:

*
  • Tela.java
  • Created on 3 de Setembro de 2007, 21:42
    */

package PacoteExemplos;

import javax.swing.JOptionPane;

/**
*

  • @author Administrator
    */
    public class Tela extends javax.swing.JFrame {

    /** Creates new form Tela */
    public Tela() {
    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.
      */
      //
      private void initComponents() {
      jLabel1 = new javax.swing.JLabel();
      jTextField1 = new javax.swing.JTextField();
      jButton1 = new javax.swing.JButton();
      jButton2 = new javax.swing.JButton();
      jTextField2 = new javax.swing.JTextField();

      setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
      jLabel1.setText(“Digite o seu nome:”);

      jTextField1.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
      jTextField1ActionPerformed(evt);
      }
      });

      jButton1.setMnemonic(‘M’);
      jButton1.setText(“Mostrar”);
      jButton1.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
      jButton1ActionPerformed(evt);
      }
      });

      jButton2.setMnemonic(‘S’);
      jButton2.setText(“Sair”);
      jButton2.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
      jButton2ActionPerformed(evt);
      }
      });

      [color=blue]javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
      getContentPane().setLayout(layout);
      layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
      .addComponent(jLabel1)
      .addGroup(layout.createSequentialGroup()
      .addComponent(jButton1)
      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 262, Short.MAX_VALUE)
      .addComponent(jButton2))
      .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
      .addContainerGap())
      );
      layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      .addComponent(jLabel1)
      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
      .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
      .addGap(15, 15, 15)
      .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
      .addGap(36, 36, 36)
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
      .addComponent(jButton1)
      .addComponent(jButton2))
      .addContainerGap(41, Short.MAX_VALUE))
      );
      pack();[/color] }// [/color]

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO adicione seu código de manipulação aqui:
    }

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    JOptionPane.showMessageDialog(null, "O seu nome é " + jTextField1.getText(), “MENSAGEM”,
    JOptionPane.INFORMATION_MESSAGE);
    }

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
    System.exit(0);
    }

    /**

    • @param args the command line arguments
      */
      public static void main(String args[]) {
      java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
      new Tela().setVisible(true);
      }
      });
      }

    // Declaração de variáveis - não modifique
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // Fim da declaração de variáveis

}

Onde está em azul é onde da o problema

Se alguem puder me ajudar…

WM

provavelmente você tem que usar o jdk 6.0 pra rodar esse exemplo, porque o grouplayout so vem por padrão nele