File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Toolkit

 
bala kan
Ranch Hand
Posts: 44
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is that you doubt?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 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
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it returns an object that has a getImage(String) method... ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic