Ejemplo n.º 1
0
  public void run() {

    while (true) {
      try {

        Thread.sleep(1000000);
      } catch (InterruptedException ex) {
        ex.printStackTrace();
      }

      reminderContainer.setTipOfThedayModel(defaultTip);
      //         System.out.println("Reminders have started .....................");
      reminderContainer.showTipOfday();
    }
  }
Ejemplo n.º 2
0
  /** Creates a new instance of Remindable */
  public Remindable(java.sql.Connection connDB) {

    java.lang.Thread reminderThread = new java.lang.Thread(this, "Remindables.Thread");

    connectDB = connDB;

    reminderContainer = new biz.systempartners.reminders.ReminderContainer();

    defaultTip = this.getTipsArray(getListofReminders("SELECT * FROM xray"));

    reminderThread.start();

    reminderContainer.showTipOfday();
  }