我有两个internalframes操作和showOperation一个JFrame的里面,我想知道如何使工作的事情,例如后更新showOperation:更新的JInternalFrame
我已经尝试了本
showOperation.repaint();
但没有按” T的作品,我也尝试过
showOperation.dispose();
后
showOperation.setVisible(true);
但没有工作 我如何更新这个内部框架?
更多的细节,
我有这个类
public class ShowAssistance {
public static JInternalFrame frame = new JInternalFrame();
.
.
.
public ShowAssistance() {
showProducts();
}
public void showProducts(){
//add the internalframe to the mainframe of the application as explained above
mainFrame.getframe().add(frame);
}
这个阶级当我使用更新internalframe
public class update{
update(){
showMeUpdate();
} public void showMeUpdate(){
//after some operations i do
ShowAssistance.frame.repaint();
}
你的问题对我们来说有点令人沮丧,因为你遗漏了很多关键信息。请帮助我们提供更多信息和代码,最好是[mcve](http://stackoverflow.com/help/mcve)(请查看链接)。 –
请参阅编辑我的答案,谢谢! –