File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 42912
    
  68
Start with the javadocs: java.awt.Toolkit
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: 42912
    
  68
Because it returns an object that has a getImage(String) method... ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Toolkit