• Post Reply Bookmark Topic Watch Topic
  • New Topic

Toolkit

 
bala kan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,


in my java program, i have used "setIconImage(getToolkit().getImage(String filename))" to put icon on my JFrame Window..
but, i have so many doubts in getToolkit() function.. please explain me in detail



Thanks in advance
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is that you doubt?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with the javadocs: java.awt.Toolkit
 
bala kan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,


we use getToolkit() to get the image from our local or remote system using getImage() function.. in which please let me know the workings of getToolkit()..
why we use Toolkit here



Thanks in Advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it returns an object that has a getImage(String) method... ?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!