Mr Atwal
Mr Atwal

Reputation: 1

How to detect when a user click a hyperlink on a web browser made in scala

I am making a simple web browser in Scala 2.9. This is only using HTML (no CSS, JavaScript, etc.). I used EditorPane to show the website.

Can anyone tell me how to detect a hyperlink on that page and when a user clicks on any hyperlink and redirects to that page. I am also trying to use Java HyperlinkListener to do this but I am unable to add Hyperlinklistener to EditorPane.

Upvotes: -1

Views: 345

Answers (1)

Mr Atwal
Mr Atwal

Reputation: 1

I solved it.I used java JEditor pane and wrap this Jcomponent in scala swing component. To get hyper link i add hyperlinklistener to jeditorpane.

Upvotes: 0

Related Questions