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 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" Watch "Jframe" New topic


Sourav Sharma

Joined: Feb 18, 2012
Posts: 1
How to add image in a Jframe???
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Add the image to a JLabel
add the label to a JPanel
add the panel to the JFrame.

if you're talking about adding as a background image,
see the faq on this forum's main page
I agree. Here's the link:
subject: Jframe
It's not a secret anymore!