Transparency
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Peter_Bates
Posted On:   Thursday, April 5, 2001 09:59 AM

Having avoided using Swing so that my applet runs easily over the internet, I notice that transparency is not supported in AWT. Is there any way around this (I want to make a Panel transparent).

regards.
Peter

Re: Transparency

Posted By:   Scott_Stanchfield  
Posted On:   Wednesday, April 25, 2001 07:30 AM

You can create a subclass of Container:


public class TransparentPanel
extends Container {
public TransparentPanel() {}
public TransparentPanel(LayoutManager m) {
super(m);
}
}


That will be transparent. Note that you still need a top-level non-transparent Frame or Applet for this to sit in.

About | Sitemap | Contact