• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Applet.getImage Vs. Toolkit.getImage

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys
can u tell me
1. for loading images in an applet which of the two methods should be used & why
2. also, whats the difference between Toolkit.getFontList and GraphicsEnvironment.getAllFonts
3. outa the Runnable interface and the Thread class which one should be used n why ( i am using a separate class for creating the new thread )

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the diff bet Applet.getImage & Toolkit.getImage is that if you
have certain fonts which are not there but the toolkit has those fonts
if you are already extending some applet or frame class you cannot extend 1 more class i.e thread so you have to use interface.But if you have a seperate class where you are going to implement thread you can extend the thread class
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic