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 adding a picture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "adding a picture" Watch "adding a picture" New topic

adding a picture

Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
You guys..please help me add a picture to do I do it???

) ) ) )
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Can you be more specific? What kind of image do you want to add? How is the image created? Are you drawing it "by hand" or loading a graphic file? Where is the image supposed to be painted?

Java API Documentation
The Java Tutorial
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Just any ol kind of image or icon...and it doesn't matter where it goes on the GUI....I guess I'd like a picture of some vending machine stuff if I could find one...if not...and simple ol smiley face would do.
I'm so lost...and I have until tomorrow at 12 to finish this....I have a darn high B in my class and I am trying so hard to make it an gone it...I'm so mad I could scream..pout
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
OH my goodness...I DID IT!!! I added my own icon....!!! Yahhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!!
Now I have to figure out how to do this text box thingy....oh my!
Any suggestions???

Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Moving to Swing/AWT...

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Rose, I am proud of you for trying to do your homework on your own. Too many people come in here and just ask for us to do it for them. However...

Now I have to figure out how to do this text box thingy

How are we supposed to know what *text box thingy* you are trying to achieve. Please be more specific with your questions so that we are better able to help you. If you are getting compile or runtime errors/exceptions post them as well. And preferrably the complete stacktrace if there is one.

Also, in the future, if the initial problem has been solved (Image Icon) and you have a new problem (text box thingy) start a completely new thread. That way we know what we are dealing with when we go in.


GenRocket - Experts at Building Test Data
Alvin Kain

Joined: May 04, 2005
Posts: 2
does ur text box thingy is to make ur label to look like a text box ?
Have u tried to add a border to the label ? it may work
I agree. Here's the link:
subject: adding a picture
jQuery in Action, 3rd edition