This is the code I use to display google in JEditorPane
String url="http://google.com"; editorPane.setEditable(false); try { editorPane.setPage(url); } catch (IOException e) {}
But for some reason the background will always be blue, it doesnβt matter if I call
setBackgroundColor(Color.WHITE);
java url colors swing jeditorpane
Laurens
source share