🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17947

Re: Transparent Canvas ?

#17947
From: Greg Hamer
Date: Wed, 02 Sep 1998 00:00
16 lines
1129 bytes
You need to use lightweight stuff, such as com.sun.java.swing.JLabel and
give it an Image Icon. Of course by using swing in an Applet you then need
to extend from JApplet to get it to paint right. Canvas is a heavyweight
control and java does not do transparent stuff to things with heavyweight
peers.

Doug McClary wrote:

> Is there anyway to have a transparent background to a canvas (or object
> created from a canvas) without using the JBCL TransparentCanvas object.
> Putting a canvas on an applet even with an empty paint() function
> creates a white rectangle.
>
> Regards
>
> Neil.
Technical Details
Message-ID: <35EDEDDC.6FA5D1D7@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35EADD31.F7A8BD69@vx-1.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a604877aa4c4bbed
X-Google-Attributes: gidf74b3,public
From: Greg Hamer <ghamer@inprise.com>
Subject: Re: Transparent Canvas ?
Date: 1998/09/02
Message-ID: <35EDEDDC.6FA5D1D7@inprise.com>
X-Deja-AN: 387329703
Content-Transfer-Encoding: 7bit
References: <35EADD31.F7A8BD69@vx-1.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language