This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to display image using awt??" Watch "how to display image using awt??" New topic

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???
James Tan

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
I agree. Here's the link:
subject: how to display image using awt??
jQuery in Action, 3rd edition