Basically, I'm trying to add this code to an 'open image' button. I'd like it to display the image in a JFrame, and I think I've got most of it sorted, but there's obviously something that I'm missing. If anyone can point it out, it'd be fantastic!
I notice that you ask the user to select a file, then you make that file into an image (ignoring any exceptions which might be thrown), then you don't do anything with the image. Was that the something you were missing, or were there some other symptoms you could tell us about?
Joined: Oct 13, 2005
Welcome to JavaRanch
Please use the CODE button; I shall try to edit your post (since you are new) so you can see how much better it looks.
Joined: Nov 30, 2009
Thankyou - yes, I was missing the fact that I wasn't actually doing anything with the image! Silly me.
Didn't notice the code option, duly noted, and thanks again : )