Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display image using awt??

 
reehan ishaque
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BufferedImage is suitable for your purpose, and you could draw it on a panel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic