It's not a secret anymore!*
The moose likes Java in General and the fly likes JFrame bits and bobs 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 » Java in General
Bookmark "JFrame bits and bobs" Watch "JFrame bits and bobs" New topic

JFrame bits and bobs

James MacDonald-Fawcett

Joined: Nov 17, 2003
Posts: 4
Hi y'all!
Can anyone tell me how to add an image into a JFrame. I have a so far i have

But can not think what to do, tried c.addImage but to no avail! Can anyone help please
Joe Ess

Joined: Oct 29, 2001
Posts: 8834

The Swing Trail of the Java Tutorial has some examples which may help.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JFrame bits and bobs
Similar Threads
is it a single thread or multiple thread for different jframe
JTable in a JTabbed panel
The system does not exit on closing the JFrame[very urgent]
Merge Cells of Jtable
save information to a text file