由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 为什么改变窗口大小内容才能显示?
相关主题
强制Swing绘制Panel的一个问题How to scroll an JInternalFrame
questions on repaint()Re: print problem, GUI guru please come in
paint()呀,repaint()呀今天写了一个游戏
getImage有个问题Re: question
我这个简单例子,怎么在actionListener里面拿到contentPane的instance?Is this a Bug or not?
Question about displaying ChineseJFTP 0.0.3 release
Re: 如何在运行Java程序时让dos窗口不出现呢?to Water, other future programmers
Re: Client-Server and actionPerformedRe: 如何在两个窗口之间通信?
相关话题的讨论汇总
话题: gui话题: panel话题: do话题: new话题: frame
进入Java版参与讨论
1 (共1页)
p*******y
发帖数: 133
1
I have a problem with a GUI
I have a panel displayed in a Frame.
then I removed the panel and put on a new one.
but the new one wouldn't display until I drag the window to change the size.
Do sb know how to fix it?
Thanks a lot.
S*********g
发帖数: 5298
2
The GUI is updated when you do resize.
So, update the GUI after you put in your new panle might solve your problem.

【在 p*******y 的大作中提到】
: I have a problem with a GUI
: I have a panel displayed in a Frame.
: then I removed the panel and put on a new one.
: but the new one wouldn't display until I drag the window to change the size.
: Do sb know how to fix it?
: Thanks a lot.

e***e
发帖数: 351
3
call validate()

【在 p*******y 的大作中提到】
: I have a problem with a GUI
: I have a panel displayed in a Frame.
: then I removed the panel and put on a new one.
: but the new one wouldn't display until I drag the window to change the size.
: Do sb know how to fix it?
: Thanks a lot.

1 (共1页)
进入Java版参与讨论
相关主题
Re: 如何在两个窗口之间通信?我这个简单例子,怎么在actionListener里面拿到contentPane的instance?
Re: I have a GUI problemQuestion about displaying Chinese
Re: Which IDE is better?Re: 如何在运行Java程序时让dos窗口不出现呢?
问一个弱问题,大虾帮忙Re: Client-Server and actionPerformed
强制Swing绘制Panel的一个问题How to scroll an JInternalFrame
questions on repaint()Re: print problem, GUI guru please come in
paint()呀,repaint()呀今天写了一个游戏
getImage有个问题Re: question
相关话题的讨论汇总
话题: gui话题: panel话题: do话题: new话题: frame