/** Displays the number of overdue tasks, and displays nothing when there are no overdue tasks. */ private void showOverdueCounter() { if (getNoOfDAndETasks(MainLogic.getExpiredTasks()) > 0) { overdueCounter.setText("" + getNoOfDAndETasks(MainLogic.getExpiredTasks())); } else { overdueRectangle.setOpacity(0); } }