Hi there,
I have a problem with my appl. May ý ask you?
I made a jpopup for using both menu in window and in system tray icon.
I used
trayIcon.addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger()) {
jpopup.setLocation(e.getX(), e.getY());
jpopup.setInvoker(jpopup);
jpopup.setVisible(true);
}
}
});
showing jpopup on trayicon.
But it is not closing itself. To close it, i have to push any menuitem on it.
Normally popup must close itself if we click mouse on anywhere of screen. But mine is not closing? How can fix this?