my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41034
    
  43
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: 41034
    
  43
Because it returns an object that has a getImage(String) method... ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Toolkit
 
Similar Threads
FontMetrics Object in getInsets()
Applet refuses to repaint
Print a JTextArea
Change Image Of Mouse Cursor
Want to insert image in frame