This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A non-editable JEditorPane should work:
You can also listen for clicks on links using a HyperLinkListener:
Keep in mind that JEditorPane does not really support anything past HTML 3.2. I believe SwingX has a component with better HTML support.
By The Way... I have a doubt... The jEditorPane shows the website, but i cannot interact with it... i mean, if i open google and write something in the search bar, it doesnt make anything... the hyperlink listener you wrote is for that?
I changed the code like this:
But is not working, when i clic on a link in the displayed website, it doesnt make anything