I am trying to create a clone of Web Browser using Swing. I have used JEditorPane but for some reason the background color is always in blue color. This is what I have done
JEditorPane editor = new JEditorPane();
editor.setEditable(false);
editor.addHyperlinkListener(this);
editor.setBackground(Color.WHITE);
try{
editor.setPage("https://www.google.com");
}catch(Exception e){}
and
this is what I am getting as result
I don't want to use JavaFx, is there any way how we can fix this using Swing only?