()
| 484 | } |
| 485 | |
| 486 | public static void refreshFrame() { |
| 487 | if (SwingUtilities.isEventDispatchThread()) { |
| 488 | refreshFrameInUi(); |
| 489 | } else { |
| 490 | SwingUtilities.invokeLater(new Runnable() { |
| 491 | @Override |
| 492 | public void run() { |
| 493 | refreshFrameInUi(); |
| 494 | } |
| 495 | }); |
| 496 | } |
| 497 | |
| 498 | } |
| 499 | |
| 500 | private static void refreshFrameInUi() { |
| 501 | Bither.getMainFrame().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |