我试图用 setTitle() 设置 JInternalFrame 的标题栏,但它没有改变。我不知道我做错了什么? 如果我在构造函数中初始化它,我工作得很好,但设置后,它不会改变。
这是我的代码:
JInternalFrame internalFrame = new JInternalFrame("test",false, false, false, false);
internalFrame.setTitle("test2");
这就是我得到的结果。
最佳答案
JDK-4131008 : JInternalFrame doesn't refresh after changing the title, you must call repaint()
关于java - 如何设置JInternalFrame标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19949060/