jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.StatusBar.startUptimeTimer ( )

Start the server uptime timer.

Definition at line 189 of file StatusBar.java.

References org.libcsdbg.jtracer.Registry.get(), and org.libcsdbg.jtracer.StatusBar.timer.

190  {
191  /* If the rendering is done by the event dispatching thread */
192  if (EventQueue.isDispatchThread()) {
193  Registry conf = Registry.getCurrent();
194  Color bg = (Color) conf.get("statusbar", "bgcolor-uptime-active");
195  fields.get("uptime").getParent().setBackground(bg);
196 
197  timer = new Timer(1000, this);
198  timer.setActionCommand("Uptime timer");
199  timer.setCoalesce(false);
200  timer.start();
201  return;
202  }
203 
204  /*
205  * If the rendering is done from any other thread, create a Worker task and
206  * register it to be called by the event dispatching thread
207  */
208  class Worker implements Runnable {
209  public void run()
210  {
211  /* The task is to recursively call the same method */
213  }
214  }
215 
216  try {
217  SwingUtilities.invokeLater(new Worker());
218  }
219 
220  catch (Throwable t) {
221  Registry.debug(t);
222  }
223  }
Timer timer
Uptime timer.
Definition: StatusBar.java:41
void startUptimeTimer()
Start the server uptime timer.
Definition: StatusBar.java:189

+ Here is the call graph for this function: