ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Hacking Swing: Translucent Windows
Subject:   Java 5 Problems
Date:   2010-08-08 08:41:41
From:   benoit.rolland.free.fr
Response to: Java 5 Problems

To blur the background may be interesting,
But if you don't want to,
here is the way:


//Image img = _blurOp.filter(buf, null);
Image img = buf;
g2.drawImage(img, 0, 0, null);
//g2.setColor(new Color(255, 255, 255, 192));
g2.setColor(new Color(255, 255, 255, 0));