Thanks.  I realized what makes the JInternalFrame see through in the sample
is actually the setBackground call.  The setOpaque() on the JInternalFrame
doesn't allow you to see the image layered behind - its as if setOpaque was
never called.

So, that's why the example isn't working.  For now, I've gone to a JPanel
with a "Close" button on it - that seems to work fine.  But I'd be
interested in hearing about how to do a transparent JInternalFrame - and
more, about doing a JInternalFrame with an alpha < 1 (255)  for the
background color.

Thanks.

----- Original Message -----
From: "Dmitri Trembovetski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 14, 2004 6:52 PM
Subject: Re: [JAVA2D] Transparent internal frames


>   As long as we're here, you might want to find interesting
>   Chet's recent blog:
>     http://weblogs.java.net/pub/wlg/1739
>   It's not directly relevant to your question, but anyway.
>
>   I've also forwarded your question (with the sample code) to the
>   swing team.
>
>   Thank you,
>     Dmitri
>
> On Fri, Aug 13, 2004 at 10:27:39PM -0400, Clifford Lyon wrote:
>  > Hi Dmitri, I have read and enjoyed the first article very much, but
hadn't seen the second one - thanks very much for the pointer, it looks
really interesting.  I will indeed check it out.
>  >
>  > Cliff
>  >
>  >
>  > ----- Original Message -----
>  > From: "Dmitri Trembovetski" <[EMAIL PROTECTED]>
>  > To: "Clifford Lyon" <[EMAIL PROTECTED]>
>  > Cc: <[EMAIL PROTECTED]>
>  > Sent: Friday, August 13, 2004 9:58 AM
>  > Subject: Re: [JAVA2D] Transparent internal frames
>  >
>  >
>  > >
>  > >   Hello,
>  > >
>  > >   could it be that some of your transparent components don't set
>  > >   'opaque' property to false and not filling the whole area they're
>  > >   responsible for? This may cause the artifacts you're
>  > >   seeing.
>  > >
>  > >   Check out these articles, the may have some relevant info:
>  > >    http://java.sun.com/products/jfc/tsc/articles/swing2d/index.html
>  > >
http://java.sun.com/products/jfc/tsc/articles/fill-article1/index.html
>  > >
>  > >   Thank you,
>  > >     Dmitri
>  > >
>  > > On Thu, Aug 12, 2004 at 11:41:29PM -0400, Clifford Lyon wrote:
>  > >  > Hello list, I have a Java 2D application where I show an image,
and then display a transparent internal frame over the image that exposes
controls to the user for adjusting parameters.  Everything works fine,
except when moving the knob on my JSlider, the internal frame background
fills with random stuff.  Any way around that?  Custom painting?
>  > >  >
>  > >  > tia
>  > >  >
>  > >  >
===========================================================================
>  > >  > To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
>  > >  > of the message "signoff JAVA2D-INTEREST".  For general help, send
email to
>  > >  > [EMAIL PROTECTED] and include in the body of the message
"help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to