• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Image in JFrame

 
sabbir kazi
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I import an image file (such as gif) and write some text on to it at some specific position (may be using g.drawString() method)and display that image inside a JFrame (maybe in a JLabel)?
Thanks.
Sabbir
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just extend JPanel or JComponent like this...



-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!