I'd like to call a method that is in my main class into my GUI. (a text area)

My method that is in the separate class looks like this:

```
public void DisplayHS() {
  highscore temp;
  for(int i = 0; i<(count-1);i ++) {
    for (int j =(i +1); j<count; j ++) {
      if (HA[i].getScore() > HA[j].getScore()) {
        temp = HA[i];
        HA[i] = HA[j];
        HA[j] = temp;
      }
    }
  }
  for (int i = 0; i<9; i ++) {
    System.out.println((i+1) +"." + HA[i]);
  }
}  

```

How do I call that method into my GUI text area?

Thank you.