加载后添加时,控件不显示 [英] Control dont appear when added after load
本文介绍了加载后添加时,控件不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个下载程序,可以很好地加载.当我添加下载时,控件会添加到滚动区域中的面板.在我调整控件大小之前,控件不会出现.我该怎么做才能使它们自动显示.我通过
添加它们
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
dwld.cnt d = new dwld.cnt(url,savepath);
jPanel3.add(d);
推荐答案
尝试重新绘制jPanel
Try To Repaint ur jPanel
jPanel2.repaint();
这篇关于加载后添加时,控件不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文