Criar variaveis com mais facilidade, labels e buttons

quero gerar varias jLabels ou jButons com mais facilidade,
tem como eu criar estas variaveis com laço de for? ou tem que fazer mesmo uma por uma,
caso seje 60, ou coisa parecida…

tipo

for…

jLabel jLabel(i) = new jLabel();

}

???

É claro que você pode criar um array de JLabels. É mais ou menos assim:

JLabel jLabels[] = new JLabel [10];
...
for (int i = 0; i < jLabels.length; ++i) {
    jLabels[i] = new JLabel ("texto " + i);
    panel.add (jLabels[i]);
}
....

ja que vc viu meu topico e esta on line, fiz umas questoes com datas, em um jframe, em que so mostra a data estatica, parada, sabe como mostrar a date, em um textfield?

com este topico quero montar um jogo de general, mas meu gridlayout, ao inves de mostrar duas colunas, esta mostrando 3, ???

import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JLabel;

/**
 *
 * @author  raghyjose
 */
public class General2 extends javax.swing.JFrame {
    
    /** Creates new form General2 */
    public General2() {
        initComponents();
        
        JLabel num1 = new JLabel("1");
         JLabel num2 = new JLabel("2");
          JLabel num3 = new JLabel("3");
           JLabel num4 = new JLabel("4");
            JLabel num5 = new JLabel("5");
             JLabel num6 = new JLabel("6");
             
             
             
              JButton jnum1 = new JButton("1");
         JButton jnum2 = new JButton("2");
          JButton jnum3 = new JButton("3");
           JButton jnum4 = new JButton("4");
            JButton jnum5 = new JButton("5");
             JButton jnum6 = new JButton("6");
             
             
             jPanel2.setLayout(new GridLayout(5,2,4,4));
             jPanel2.add(num1);   jPanel2.add(jnum1);
             jPanel2.add(num2);   jPanel2.add(jnum2);
             jPanel2.add(num3);   jPanel2.add(jnum3);
             jPanel2.add(num4);   jPanel2.add(jnum4);
             jPanel2.add(num5);   jPanel2.add(jnum5);
             jPanel2.add(num6);   jPanel2.add(jnum6);
             
    }
    
    /** 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.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(204, 0, 51)));
        jPanel1.setForeground(new java.awt.Color(255, 0, 51));
        jPanel1.setToolTipText("General em Java");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 216, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 331, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(459, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(102, Short.MAX_VALUE))
        );

        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()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        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 General2().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration
    
}

alguma dica para a construção do jogo ?

http://www.guj.com.br/posts/list/208780.java#1061757

pra funcionar ta faltando o meto do main

public static void main(String[]args) {
  
      new  ExemploRelogio().setVisible(true);  }

tambem tirei o super das duas classes.
para que este super?

e o @override,

e funcionou bem.

ja respondi la no outro… vai dar um override.