String text = getHighestPriorityStatusMessage(); if (text == null) text = ""; if (lastStatusMessage == null || !lastStatusMessage.equals(text)) { lastStatusMessage = text; lblState.setText(text);
/* if (n > 0 && n < 100) { status = strState + " " + n + "%"; progressBar.setSelection(n); if (!barVisible) progressBar.setVisible(true);
      public void run() {        String text = getHighestPriorityStatusMessage();        if (text == null)          text = "";        if (lastStatusMessage == null || !lastStatusMessage.equals(text)) {          lastStatusMessage = text;          lblState.setText(text);        }      }