(Dialog dialog, Component... processed)
| 308 | } |
| 309 | |
| 310 | @AstroImageJ(reason = "Scale frames") |
| 311 | public static void scaleFrame(Dialog dialog, Component... processed) { |
| 312 | scaleDefaultFonts(); |
| 313 | if (SwingUtilities.isEventDispatchThread()) { |
| 314 | scale(dialog, Prefs.getGuiScale(), new HashSet<>(Arrays.asList(processed))); |
| 315 | } else { |
| 316 | try { |
| 317 | SwingUtilities.invokeAndWait(() -> scale(dialog, Prefs.getGuiScale(), new HashSet<>(Arrays.asList(processed)))); |
| 318 | } catch (InterruptedException | InvocationTargetException e) { |
| 319 | e.printStackTrace(); |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | @AstroImageJ(reason = "Scale frames") |
| 325 | public static void scaleFrame(Frame frame, Component... processed) { |
no test coverage detected