🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10026

Re: Dialog with a transparent background?

#10026
From: Mike Peters
Date: Mon, 22 Nov 1999 00:00
28 lines
1766 bytes
Thanks for the info.   Does a panel count as a lightweight control?  If so,
can it be used to act as a top-level window?

Johan Forsberg <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> wrote in message
news:81b2ed$oh29@forums.borland.com...
>
> John P. McGrath <mcgrath@enter.net> skrev i
>
diskussionsgruppsmeddelandet:MPG.12a009567bf996859896c0@forums.borland.com..
> .
> > On Fri, 19 Nov 1999 15:03:08 -0500, Mike Peters wrote:
> >
> > > Does anyone know if it is possible to have a dialog with
> > > a transparent background?
> >
> > It is not possible -- to get a transparent background, you need to use a
> > lightweight component.  Dialogs are heavyweight, as are all other top-
> > level windows (Window, Frame, Applet).  The same applies to the Swing
> > equivalents.
>
> OTOH you can use a subclass of JInternalDialog... You can't actually
> get transparency, but you can have arbitary shape (which is almost the
> same thing). Hmmm... Set the glass pane to a transparent JDesktopPane,
> then add custom JInternalDialogs to it? The only problem is that your
> transparent dialog is confined to the main window.
>
>
>
Technical Details
Message-ID: <81c0gk$5nn7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8149sl$2946@forums.borland.com> <MPG.12a009567bf996859896c0@forums.borland.com> <81b2ed$oh29@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,910d867152ea1cc3
X-Google-Attributes: gid111d45,public
From: "Mike Peters" <mikep@vdi.com>
Subject: Re: Dialog with a transparent background?
Date: 1999/11/22
Message-ID: <81c0gk$5nn7@forums.borland.com>
X-Deja-AN: 551713156
References: <8149sl$2946@forums.borland.com> <MPG.12a009567bf996859896c0@forums.borland.com> <81b2ed$oh29@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing