a***e 发帖数: 188 | 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. | a***e 发帖数: 188 | 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 | o**n 发帖数: 31 | 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) 的大作中提到: 懣
|
|