my dog learned polymorphism
The moose likes Beginning Java and the fly likes See Through Background Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "See Through Background Image" Watch "See Through Background Image" New topic

See Through Background Image

james wilson

Joined: Nov 17, 2001
Posts: 15
I am trying to make the background of a frame so that it is a kind of see through grey colour, so that whatever is behind the frame is still visible. Is this possible? If so any help greatly appreciated.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
You could eventually get a JInternalFrame to exhibit this behavior, but not a JFrame. A JFrame is a native-OS peer; it's drawn by the native platform. Most platforms don't give you the ability to have translucent frames. Mac OS X does this, but this is certainly not a pure-java feature, and you would have to use some Mac-specific library to achieve this.

SCJP 1.4
I agree. Here's the link:
subject: See Through Background Image
jQuery in Action, 3rd edition