Making part of window transparent.

I am trying to make a transparent part of my JFrame so that the user can place the transparent part of an area of the screen over he wishes to screencapture. I cant figure out how to make a transparent rectangle within the window though.

I want to be ablt to see all the way through the window.

Message was edited by:

jdk2006

[351 byte] By [jdk2006a] at [2007-11-27 5:36:44]
# 1
Hi, Here is a small example. http://www.onjava.com/pub/a/onjava/excerpt/swinghks_hack41/index.htmlNote you may want to also use this with myFrame.setUndecorated(true);
_helloWorld_a at 2007-7-12 15:07:52 > top of Java-index,Java Essentials,Java Programming...