• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the default toolkit for windows?

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sun.awt.motif.MToolkit is being returned as the default toolkit for my windows application. This class doesn't exist in my java home/din/classes.zip. As a result, I am getting java.awt.AWTError. What is the default toolkit for a WindowsNT application?
Please help,
Savithri
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are getting a default Toolkit meant for a UNIX environment because the system property does not exist.
getDefaultToolkit
public static Toolkit getDefaultToolkit()
Gets the default toolkit.
If there is a system property named "awt.toolkit", that property is treated as the name of a class that is a subclass of Toolkit.
If the system property does not exist, then the default toolkit used is the class named "sun.awt.motif.MToolkit", which is a motif implementation of the Abstract Window Toolkit.
Returns:
the default toolkit.
Throws
AWTError (II-�1.46)
If a toolkit could not be found or could not be instantiated.

[This message has been edited by Cindy Glass (edited January 16, 2001).]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic