Can I make setBackground() a Transparent Color?

Finlay McWalter

In Java2, sure, the AWT contains a constructor for java.awt.Color that takes an alpha (transparency) value - just set this to 0.

Java 1.1.x doesn't support this, so you can't have a transparent background color.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.