/** returns the maximum number of threads that the XWT engine can create without adversely affecting the host OS */
protected int _maxThreads() { return 25; }
- /** creates a weak reference */
- protected org.xwt.Weak _getWeak(final Object o) {
- return new org.xwt.Weak() {
- public Object get() { return o; }
- };
- }
-
/** Called once XWT is initialized and the application is running. */
protected void _running() {}
/** returns a list of all platform-specific fonts available */
public static String[] listFonts() { return platform._listFonts(); }
- /** creates a weak reference */
- public static org.xwt.Weak getWeak(Object o) { return platform._getWeak(o); }
-
/** opens a connection to the resource identified by URL u, and returns an InputStream */
public static InputStream urlToInputStream(URL u) throws IOException { return platform._urlToInputStream(u); }