[java-gnome-hackers] Timer problems
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2003-03-24 05:34:22
|
Hi, I'm having trouble with the Timer object. The following method: private static Fireable f; public static void invokeLater(Runnable run){ Timer timer; final Runnable runner = run; f = new Fireable(){ public boolean fire(){ runner.run(); return false; } }; timer = new Timer(1, f); timer.start(); } always results in java.lang.NullPointerException at org.gnu.gtk.Gtk.gtk_main(Gtk.java:native) at org.gnu.gtk.Gtk.main(Gtk.java:54) at com.tildemh.debbuggtk.BugWatcher.main(BugWatcher.java:454) Any ideas why this is happening? Also, I think this method would be added to the main code - where should it go? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |