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