I'm new to swing and I'm sure there is an another way, but due of some akward api desing I have to implememnt a handler that recives MouseEvent and return an resault. I would like to show popup menu to user and wait for it to close and return value based on what user chose. How to do that? Thanks in advance. OK specific problem: Substance TabCloseCallback imterface has the folowing method.
public TabCloseKind onAreaClick(JTabbedPane tabbedPane,
int tabIndex, MouseEvent mouseEvent);
I wish to show popup menu when it's called nad return value based on what user have chosen.