Sets the Swing look and feel to the system look and feel (Windows only).
()
| 47 | |
| 48 | /** Sets the Swing look and feel to the system look and feel (Windows only). */ |
| 49 | @AstroImageJ(reason = "update keymapping on mac for copy/paste", modified = true) |
| 50 | public static void setSystemLookAndFeel() { |
| 51 | if (!IJ.isWindows()) |
| 52 | return; |
| 53 | try { |
| 54 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); |
| 55 | } catch(Throwable t) {} |
| 56 | } |
| 57 | |
| 58 | /** Sets the Swing look and feel. */ |
| 59 | @AstroImageJ(reason = "update keymapping on mac for copy/paste", modified = true) |
no test coverage detected