aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to display image using awt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to display image using awt??" Watch "how to display image using awt??" New topic
Author

how to display image using awt??

reehan ishaque
Ranch Hand

Joined: Mar 25, 2001
Posts: 54
hi folks!
im appending some text to TextArea but i also want to append some image along with text. how can i do it using awt components, not swings. i think TextArea probably wont supportthis . swing components like JTextPane n JEditorPane might support this. but i want to use awt components. so any idea how to do this???
thanx
James Tan
Greenhorn

Joined: Apr 23, 2002
Posts: 13
BufferedImage is suitable for your purpose, and you could draw it on a panel.


James Tan<br />SUN Certificated Programmer
 
Don't get me started about those stupid light bulbs.
 
subject: how to display image using awt??