Article View: borland.public.jbuilder.java.swing
Article #10024Re: Dialog with a transparent background?
From: Johan Forsberg
Date: Mon, 22 Nov 1999 00:00
Date: Mon, 22 Nov 1999 00:00
19 lines
1476 bytes
1476 bytes
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:
<81b2ed$oh29@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8149sl$2946@forums.borland.com> <MPG.12a009567bf996859896c0@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: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> Subject: Re: Dialog with a transparent background? Date: 1999/11/22 Message-ID: <81b2ed$oh29@forums.borland.com> X-Deja-AN: 551564537 References: <8149sl$2946@forums.borland.com> <MPG.12a009567bf996859896c0@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