I can just give some thought here. Not sure it is right.When a container is up, it will automatically call all component's repaint(), so normally all you need to do is to add components to a container, then call container's owner (a frame or something else) show().However, if the owner is already showing, and you want to add new component to the container, then you need to repaint.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货