Transparent JInternalFrame Repaint Question
- From: "mearvk" <mearvk@xxxxxxxxx>
- Date: 19 Dec 2006 00:58:18 -0800
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
.
- Follow-Ups:
- Re: Transparent JInternalFrame Repaint Question
- From: mearvk
- Re: Transparent JInternalFrame Repaint Question
- Prev by Date: Re: Windows Decoration Listeners? - Problem Solved
- Next by Date: Re: Transparent JInternalFrame Repaint Question
- Previous by thread: closing a specific JFrame of several
- Next by thread: Re: Transparent JInternalFrame Repaint Question
- Index(es):
Relevant Pages
|