()
| 62 | |
| 63 | |
| 64 | public static void assertIsSwingThread() |
| 65 | { |
| 66 | if (!SwingUtilities.isEventDispatchThread()) |
| 67 | { |
| 68 | throw new WrongThreadException( |
| 69 | "expected to be on swing thread - actually on: " + Thread.currentThread().getName()); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | public static void assertIsNotSwingThread() |
| 74 | { |
no test coverage detected