If not in the event thread run via SwingUtilities.invokeAndWait()
(Runnable run)
| 720 | * If not in the event thread run via SwingUtilities.invokeAndWait() |
| 721 | */ |
| 722 | private void invokeAndWait(Runnable run) { |
| 723 | if(!SwingUtilities.isEventDispatchThread()) { |
| 724 | try { |
| 725 | SwingUtilities.invokeAndWait(run); |
| 726 | } catch(Exception e) { |
| 727 | // shouldn't happen |
| 728 | e.printStackTrace(); |
| 729 | } |
| 730 | } else { |
| 731 | run.run(); |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | /** |
| 736 | The overridden read method in this class will not throw "Broken pipe" |
no test coverage detected