We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log browser exception rather than print stack trace
bookie-scrape/src/main/java/com/bookiescrape/app/tray/SystemTrayController.java
Line 293 in 384ef93
// create and set tray icon's popup menu useSwingPopupMenu(); // useAWTPopupMenu(); // set about and quit initial menu item action handlers setInitialAboutActionHandler(); setInitialQuitActionHandler(); } /** */ private void useSwingPopupMenu() { popupMenu = new SwingPopupMenu(trayIcon); } /** */ private void useAWTPopupMenu() { popupMenu = new AWTPopupMenu(); trayIcon.setPopupMenu((PopupMenu) popupMenu.getPopupMenu()); } /** Initial about handler opens aboutUri in a browser. */ private void setInitialAboutActionHandler() { popupMenu.setOnAboutSelected(action -> { try { Desktop.getDesktop().browse(aboutUri); } catch (IOException e) { // TODO log browser exception rather than print stack trace e.printStackTrace(); } }); } /** Initial quit handler exits JavaFX and removes icon from system tray. */ private void setInitialQuitActionHandler() { popupMenu.setOnQuitSelected(action -> { System.out.println("Quit was selected"); // exit JavaFX and remove system tray icon Platform.exit(); tray.remove(trayIcon); System.exit(0); }); } /**
56b59b05436a4b065ece052ac3313ab10c3a1088
The text was updated successfully, but these errors were encountered:
No branches or pull requests
log browser exception rather than print stack trace
bookie-scrape/src/main/java/com/bookiescrape/app/tray/SystemTrayController.java
Line 293 in 384ef93
56b59b05436a4b065ece052ac3313ab10c3a1088
The text was updated successfully, but these errors were encountered: