I am not able to view the labels which are created dynamically.The code is as follows : 

```
JLabel[] labels = new javax.swing.JLabel[cur.length];
for (int i = 0 ;i < cur.length; i++)
{
   System.out.println("in");
   labels[i] = new JLabel( cur[i] );
    labels[i].setText(""+cur[i]);
   jPanel1.add(labels[i]);
   this.setVisible(true);
   }
 }

```