Re: JScrollBar Repaint Question



"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


.



Relevant Pages

  • Re: Newbie question
    ... jDesktopPane, MenuBar and ToolBar. ... jInternalFrame and call it from MainForm using menu event listeners. ... a good group for Java begiiners as comp.lang.java.help ... Java (you should probably not be coding GUI apps. ...
    (comp.lang.java.programmer)
  • A DesktopPane and InternalFrame Discussion...
    ... there is no such property displayed by a jInternalFrame. ... for suggestions on rolling my own windows to use inside of a jDesktopPane ... InternalFrames but I want my mainapp to display and handle a certain amount ... Any more indepth tutorials out there on java MDI that someone would be ...
    (comp.lang.java.gui)
  • JInternalFrame display problem
    ... I deceided to go with JInternalFrame and I can't get thing working. ... I put her in JDesktopPane inside main JFrame hidden ... // without this blue rectangle adds to main Form ... if it helps but except JDesktopPane main JForm has JPanel as a cointainer ...
    (comp.lang.java.gui)
  • JInternalFrame problem
    ... I deceided to go with JInternalFrame and I can't get thing working. ... I put her in JDesktopPane inside main JFrame hidden ... // without this blue rectangle adds to main Form ... if it helps but except JDesktopPane main JForm has JPanel as a cointainer ...
    (comp.lang.java.gui)
  • jdesktop, jinternalframe update/repaint problem after jdialog is closed
    ... I have an application that uses a JDesktopPane, ... the visible surface of another. ... all frames will NOT be repainted once I close the JDialog, ... Next I tried to revalidate and repaint all the open frames with: ...
    (comp.lang.java.gui)