Refactor Swing & AWT tray icon