File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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??
It's not a secret anymore!