Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need an Image object in a class extending Panel / Canvas  RSS feed

 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
Need urgent help.
How will you acquire an Image instance in a class extending Canvas and Panel respectively ??
Like a class extending Applet will acquire the Image instance using getImage(URL u,String filename) method.

Regards,
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam,
Use the toolkit :

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