I have Java Desktop application that displays some information in a JTable that may contain URLs with some text in some cells. How can I make only the URL click-able and allow the user to open it in a default browser if he/she clicks on it.
I have Java Desktop application that displays some information in a JTable that may
Share
You can use the approach shown here in a custom
TableCellEditor. Once selected, you canbrowse()the URI.Addendum: You can use
JEditorPanefor your editor component andaddHyperlinkListener()to listen for events related to the link.