hi,
I have created a
java swing application using netbeans 6.5
I have added almost all elements using drag n drop method.
Now I want to add one component dynamically in the panel.
But i can not see that component.
I have tried debugging the ode and it traverse through the component but it's not displaying on the screen.
Code snippet I tried is as below.
JLabel jLabel=new JLabel();
jLabel.setText("labelllllll");
jLabel.setVisible(true);
pnlImage.add(jLabel);
pnlImage.validate();
pnlImage.repaint();
Can anyone please suggect wht's wrong or wht I am missing here?
Thanks in advance.