Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a download program that loads fine. When i add a download a control adds to a panel in a scroll area. The control doesn't appear until i re-size the control. what do i do to make them appear automatically. i add them by

Java
dwld.cnt d = new dwld.cnt(url,savepath);
jPanel3.add(d);
Posted

1 solution

Try To Repaint ur jPanel

Java
jPanel2.repaint();
 
Share this answer
 
Comments
A-s-h-l-e-y 14-May-12 11:38am    
That worked thanks it only has to be repainted the first time you add something then they add without error :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900