Browser using JEditorPane forcing blue background
问题 This is the code I'm using to display google in a 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 a blue colour, doesn't matter if I call setBackgroundColor(Color.WHITE); 回答1: As @AndrewThompson noted in the comments JEditorPane is really behind, it supports only a subset of HTML 3.2 and CSS1, and isn't really cable of rendering any modern web pages. I