avatar
questions on repaint()# Java - 爪哇娇娃
a*e
1
I add two internal frame to a panel. When mouse is released, i need
to repaint
the panel in internal frame. My problem is that the program repaint
the outside
panel in the internal panel instead of just repainting the specified
panel. When
I minimize, maximumize or porform some other functions to the internal
frame,
the correct appearance just comes out. I reay don't know why.
Please give me some advice.
Thanks a lot.
avatar
a*e
2
I sovled this problem. When using JPanel, be sure to use
paintComponent()
instead of paint(g).Hope other guys don't meet this problem.
I still didn't solve the problem of scrolling panel. I even add the
scrollbar
manually to the scrollpane, it still doesn't work. I really don't know
why. Did
any one have ever do this using Swing?
Thanks a lot.
懢 在 angie (MIMI) 的大作中提到: 懣
need
internal
avatar
o*n
3
post some testing code here, we can repeat it.

【在 a***e 的大作中提到】
: I sovled this problem. When using JPanel, be sure to use
: paintComponent()
: instead of paint(g).Hope other guys don't meet this problem.
: I still didn't solve the problem of scrolling panel. I even add the
: scrollbar
: manually to the scrollpane, it still doesn't work. I really don't know
: why. Did
: any one have ever do this using Swing?
: Thanks a lot.
: 懢 在 angie (MIMI) 的大作中提到: 懣

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。