User Activity

  • Posted a comment on discussion General Discussion on Keepboard

    When I click "Show Keepboard" on Mac, it is usually hidden behind a window and not visible. I find this code inside MainFrame to work really well: public void showFrame() { setVisible(false); clearFilters(); setVisible(true); if (Platform.isMac()) { SwingUtilities.invokeLater(() -> { try { if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); desktop.getClass().getMethod("requestForeground", boolean.class) .invoke(desktop, false); } } catch (Exception ex) { System.err.println("Failed...

View All

Personal Data

Username:
elentz
Joined:
2002-08-01 16:09:12

Projects

  • No projects to display.

Personal Tools