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