I'd like to make it possible to make PCanvas partly transparent, but
that's impossible with current implementation of PCanvas. Line 605
gives:
g2.setColor( getBackground() );
g2.fillRect( 0, 0, getWidth(), getHeight() );
I'd recommend changing this to:
if ( isOpaque() ) {
g2.setColor( getBackground() );
g2.fillRect( 0, 0, getWidth(), getHeight() );
}
This is similar to the swing ui implementation.
I couldn't find a workaround that involved using a Color with a
transparent alpha channel, see discussions here:
http://www.chka.de/swing/components/opacity.html
Any comments, questions or objections to this change?
Sam Reid