|
查看: 1001|回复: 1
|
JAVA 问题:remove JScrollPane
[复制链接]
|
|
|
ContentPane.remove(picture);
picture = new JLabel(new ImageIcon("c:\\123.jpg"));
ContentPane.repaint();
ContentPane.add(picture);
那如果是对於JScrollPane,我们该怎么办?我的意思是要把picture放在JScrollPane里,该怎么remove,然后add回进去。
意思是说:
ContentPane.remove(JScrollPaneP);
结果有error.
[ 本帖最后由 天玄路 于 5-11-2005 07:22 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 5-11-2005 10:59 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|