Link to home
Create AccountLog in
Avatar of valleytech
valleytechFlag for United States of America

asked on

quick question.

hi,
after i click and drag a TextArea to Jframe. Please help me on how to load an image from a specific directory to that TextArea. Thanks.
Avatar of ksivananth
ksivananth
Flag of United States of America image

you can't load image in text area...

either use JEdtiorPane or JLable if you just want to display the image in the screen!
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of valleytech

ASKER

one quick question.
 when i set the path to the image, it's my computer path. However, when i move the project to different systm, that path will be invalid. So it can't load image. What should i do to overcome this problem? thanks.
check the loadimage example,

http://www.devx.com/tips/Tip/15429