233234235236237238239240241242
@Override public void mouseClicked(MouseEvent event) { if (event.getSource() == trayIcon) { if (event.getButton() == MouseEvent.BUTTON1) { if (searchFrame == null || searchFrame.isVisible()) { new SearchItemInputFrame(this); } } } }
4142434445464748
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ @Override public void actionPerformed(ActionEvent e) { if (searchFrame == null || !searchFrame.isVisible()) { new SearchItemInputFrame(this); } }