File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JFrame, Image/Graphics  and JInternalFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame, Image/Graphics  and JInternalFrame" Watch "JFrame, Image/Graphics  and JInternalFrame" New topic

JFrame, Image/Graphics and JInternalFrame

Vidyadhar Hegde

Joined: Oct 24, 2000
Posts: 11
Hi Friends
I know how to implement Image in JFrame and JInternalFrame.
But I am not able to combine all three means I want to embed some Image/Graphics in my JFrame window which is parent for a JInternalFrame.
Could you please help me?
Thank you.

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
What is the result you are trying to achieve? You may be able to do it with a glassPane.
Vidyadhar Hegde

Joined: Oct 24, 2000
Posts: 11
Thank you for your response.
Sorry, for not giving clear problem detail.
Let me tell you in detail what I want to achieve?
I'm having a frame (JFrame). I want an internal frame (JInternalFrame). Means I want to develop a MDI application. Now I want to put a background image for the JFrame. But the JInternalFrame must be visible when JFrame is visible.
The glassPane did not come up to my requirement.
Hope you got my requirement.
lenin ch

Joined: May 19, 2003
Posts: 1
checkout whether setOpaque is true.. If it is true then the background is not visible.. Make th ebackground visible by setting setOpaque(false). Is that the one you need....
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Some of the code in this post may help you...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: JFrame, Image/Graphics and JInternalFrame
It's not a secret anymore!