Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

picture in application

Thread view: 
Hrvoje Somun - 16 Dec 2003 15:32 GMT
i have a problem with using pictures in my app.

i  would like to use a jfilechooser to choose picture file that i would like
to show in app. I managed to get a full path and picture name, but i dont
know how to use it to put that picture on screen(not in separate window, but
in some frame or label). in all tutorials i've read pictures are not
imported in application runtime, so i haven t found example that would solve
this.

thnx.
Andrew Thompson - 16 Dec 2003 16:05 GMT
> i have a problem with using pictures in my app.
>
[quoted text clipped - 4 lines]
> imported in application runtime, so i haven t found example that would solve
> this.

(shrugs) It is pretty much the same as reading the
image at start-up, shut-down, or any other time.

Show us the code you have and we may be able
to give you some pointers, or you may be able to
find something appropriate here..
http://www.geocities.com/marcoschmidt.geo/

Of course, if you are feeling brave, you could
have a look over the source for my image browser.
Start around here..
http://www.physci.org/codes/display.jsp?fl=PhySci.jar!/physci/toolbox/image/
ImageBrowser.java

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Thomas Weidenfeller - 17 Dec 2003 10:12 GMT
> but i dont know how to use it to put that picture on screen(not in
> separate window, but in some frame or label).

See the documentation of ImageIcon and JLabel.

BTW, a frame in Java terminology is a separate window, so you are maybe
looking in the wrong direction.

/Thomas
Hrvoje Somun - 17 Dec 2003 14:46 GMT
> > but i dont know how to use it to put that picture on screen(not in
> > separate window, but in some frame or label).
[quoted text clipped - 5 lines]
>
> /Thomas

thanks for answers, i ve found solution and it was pretty obvious.

bye


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.