| 1821 | private Action aboutAction = new HelpAboutAction(); |
| 1822 | |
| 1823 | @Override |
| 1824 | public Object invoke(Object proxy, Method method, Object[] args) |
| 1825 | throws Throwable { |
| 1826 | SwingUtilities.invokeLater(() -> { |
| 1827 | if("handleAbout".equals(method.getName())) { |
| 1828 | aboutAction.actionPerformed(null); |
| 1829 | } else if("handlePreferences".equals(method.getName())) { |
| 1830 | optionsDialog.showDialog(); |
| 1831 | optionsDialog.dispose(); |
| 1832 | } |
| 1833 | }); |
| 1834 | |
| 1835 | return null; |
| 1836 | } |
| 1837 | }; |
| 1838 | |
| 1839 | // Create an proxy instance for all the handler interfaces |