Transparent JInternalFrame Repaint Question



I have a transparent JInternalFrame (background set to
Color(0f,0f,0f,0f)) and on this I have a JScrollPane and on this I have
a JTree. All items have clear backgrounds. On my JDesktopPane I have a
JPEG for the background. What I am after is a way to repaint the
JInternalFrame so that when the JInternalFrame is moved, resized, etc.,
that it automatically (and quickly) repaints the underlying JDesktop
image inside the JInternalFrame (maintains illusion of transparency).

It is my understanding that a call to
JInternalFrame.paintComponents(JInternalFrame.getGraphics()) should
repaint all the components contained within the JInternalFrame.
However, this simply does not occur. What I get is an initially correct
looking JInternalFrame that when I move, the background becomes white.
When I use a thread to repaint the JInternalFrame I just get the JTree
text overwriting itself.

Additionally, I have tried paintAll() and repaint() at the JFrame,
JInternalFrame and JInternalFrame.getContentPane() levels...

Help greatly appreciated,

Mearvk

.



Relevant Pages

  • Re: JScrollBar Repaint Question
    ... Whenever I move the JInternalFrame ... the JScrollBar resets its value to a number near 0. ... the JDesktopPane the same thing occurs. ... or a JDesktopPane repaint. ...
    (comp.lang.java.gui)
  • Re: Event HELP
    ... > I have one JFrame in which I have one JTree ... > JButton that is located in JInternalFrame. ... trying googling for the Publisher/Subscriber pattern or ... Listener pattern. ...
    (comp.lang.java.help)
  • Event HELP
    ... I'm stuck with my program. ... I have one JFrame in which I have one JTree ... JButton that is located in JInternalFrame. ...
    (comp.lang.java.help)