Get desktop environment primary screen info. Note: must be called only after or inside #start(Runnable) successful method call. @return primary desktop screen
()
| 99 | * @return primary desktop screen |
| 100 | */ |
| 101 | public static Screen getPrimaryScreen() { |
| 102 | assert _onUIThread() : "Should be run on UI thread"; |
| 103 | for (Screen s: getScreens()) |
| 104 | if (s.isPrimary()) |
| 105 | return s; |
| 106 | throw new IllegalStateException("Can't find primary screen"); |
| 107 | } |
| 108 | |
| 109 | public static void openSymbolsPalette() { |
| 110 | assert _onUIThread() : "Should be run on UI thread"; |
no test coverage detected