Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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