Re: JScrollBar Repaint Question
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 17:28:49 -0500
"mearvk" <mearvk@xxxxxxxxx> wrote in message
news:1167257920.925074.286750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
So, basically, I will attempt (in lieu of slapping my code up here) to
describe the cause of the problem. Whenever I move the JInternalFrame
the JScrollBar resets its value to a number near 0. Whenever I repaint
the JDesktopPane the same thing occurs. The desired behavior is that
the ScrollBar stay in the same location despite a JInternalFrame move
or a JDesktopPane repaint.
I subclassed JScrollBar and perform a similar if statement as above. It
works but I would prefer the correct solution.
Thanks,
Mearvk
PS If you still need to see code after this explanation I will be happy
to post it. I don't think there is anything revealing in it however.
Yes, the reason I asked for the code would be so:
(1) I could run the code and see if I can actually reproduce the
problem. If I can't, then maybe all you need to do is switch to the same JVM
that I'm using.
(2) If the problem does occur, to pause it in my debugger and
investigate what's going on.
Note that you should NOT post your actual code, but instead, a short,
self contained, compilable example. I will not run the source code without
reading it first to check against trojan code, and if it is too long, then I
won't bother reading it.
- Oliver
.
- Follow-Ups:
- Re: JScrollBar Repaint Question
- From: mearvk
- Re: JScrollBar Repaint Question
- References:
- JScrollBar Repaint Question
- From: mearvk
- Re: JScrollBar Repaint Question
- From: mearvk
- Re: JScrollBar Repaint Question
- From: Oliver Wong
- Re: JScrollBar Repaint Question
- From: mearvk
- JScrollBar Repaint Question
- Prev by Date: Re: apple.awt.brushmetallook on Windows?
- Next by Date: Re: apple.awt.brushmetallook on Windows?
- Previous by thread: Re: JScrollBar Repaint Question
- Next by thread: Re: JScrollBar Repaint Question
- Index(es):
Relevant Pages
|