In my java application, I have a list of links which I would like to open in default browser:
How to open it is pretty much clear based on this answer Open a link in browser with java button?.
What I'm trying to find out now is, how do I know which one of the links I'm triggering since they are all together in a file.
Does anyone has a good suggestion to this? because until now the only thing I could thought was create a JButton to each link and detect it through a listener but this seems not to be the most efficient solution. The links needs to be opened individually and If its possible I would like to trigger directly through the link.