Search found 1 match

by sierrashirley78
2011-09-29T18:40:27-07:00
Forum: Developers
Topic: How to draw a completly transparent Shape
Replies: 2
Views: 12408

Re: How to draw a completly transparent Shape

Download the source: TransparencyExample.java (plus WindowUtilities.java and ExitListener.java if you don't have them from the previous examples).

import javax.swing.*;
import java.awt.*;
import java.awt.geom.*;

/** An illustration of the use of AlphaComposite to make partially
* transparent ...