rj mo

Greenhorn
+ Follow
since Sep 17, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rj mo

Hi,

thnaks all
I figured out the middle way.
though it's not optimum solution but it worked for me anyway.


I used scrollpane as container to add my label and image.
Due to some reasons it's not adding any java component to my panel.
Now it's with gud GUI.

Thanks everyone.
15 years ago
Thanks for suggestion but I would appreciate more if someone can show some solution.
Project is about to finish and now can't go back and create all again.
15 years ago
Hi,

Thanks but you created frame and panel by code.
I am using netbeans drag n drop option to create my frame and panel.

But now I want to add jlabel by coding.
Is it possible that way?
15 years ago
Thanks Marky,
I tried that, It didn't work out.

I am extending Jframe.
I have added Jpanel to the frame using drag n drop.

Now I want to add Jlabel to the panel dynamically.
15 years ago
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.
15 years ago