Re: How to set the Z order of a JInternalFrame?



I have a JInternalFrame that is contained within a JPanel that is being
updated often. The updates cause a lot of flicker since I have to repaint
the internal frame each time I paint the containing panel in order to keep
it visible even though its contents are not changing.

Is there a way that I can have the Z order of the internal frame set to
"always on top"? Or some other solution to the flicker problem?

repaint of children should be made by JPanel, don't change it.
first component is always on top.
So after each adding you should readd your JInternalFrame with index 0.

--
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


.



Relevant Pages

  • How to set the Z order of a JInternalFrame?
    ... The updates cause a lot of flicker since I have to repaint the internal frame each time I paint the containing panel in order to keep it visible even though its contents are not changing. ...
    (comp.lang.java.gui)
  • Re: TextOut prints a little late?
    ... you'll not notice the flicker. ... erasing the current image first - InvalidateRect() with a FALSE for erase ... onto the display surface, which is why there is some low-level flickering ... WM_PAINT message that you need to repaint your window's client area. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How to set the Z order of a JInternalFrame?
    ... The updates cause a lot of flicker since I have to repaint the internal frame each time I paint the containing panel in order to keep it visible even though its contents are not changing. ...
    (comp.lang.java.gui)
  • Re: How to set the Z order of a JInternalFrame?
    ... The updates cause a lot of flicker since I have to repaint the internal frame each time I paint the containing panel in order to keep it visible even though its contents are not changing. ... You may add a JInternalFrame to specific layer. ...
    (comp.lang.java.gui)
  • Unexplained redraw after several seconds...
    ... I have a simple application with a pretty plain dialog on the screen ... but after about 5seconds there is a flicker as the dialog ... I have NO application logic in behind the gui asking for a repaint. ... And if so know how to fix it? ...
    (comp.lang.java.gui)