This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Image as Transparent to be placed in the JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Image as Transparent to be placed in the JFrame " Watch "Image as Transparent to be placed in the JFrame " New topic
Author

Image as Transparent to be placed in the JFrame

Satya Kosuri
Greenhorn

Joined: Jul 16, 2009
Posts: 1
hi there,
i've an PNG image which is transparent. i'm able to put the image as the background on JFrame & i want the this image to be placed as transparent on JFrame.
i'm happy with the current view of image on the JFrame but the pproblem is that since im setting up the width & height of the JFrame, its giving some Gray color as back ground color.
i'm undecorating the titlebar of the JFrame on which im placing the image.
so how do i solve this issue?


any Idea on this....
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
BeForthrightWhenCrossPostingToOtherSites

any Idea on this....


Yes, you've already been given the answer on the other cross post.
 
Consider Paul's rocket mass heater.
 
subject: Image as Transparent to be placed in the JFrame
 
Similar Threads
Glass panes -- transparent panes
SWT Composite setBackgroundImage() doesn't support transparency?
very simple question...
Images on top of each other
Can I implement a transparent eraser in Java GUI?