wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Toolkit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Toolkit" Watch "Toolkit" New topic
Author

Toolkit

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
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

Joined: Jun 19, 2010
Posts: 825
    
    5

What exactly is that you doubt?


The quieter you are, the more you are able to hear.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41880
    
  63
Start with the javadocs: java.awt.Toolkit


Ping & DNS - my free Android networking tools app
bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
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
Marshal

Joined: Mar 22, 2005
Posts: 41880
    
  63
Because it returns an object that has a getImage(String) method... ?
 
 
subject: Toolkit