JEditorPane: HTML Layout Broken
问题 I am rendering some images that are layered in a JEditorPane. I've read that JEditorPane is pretty rocky at best, however I am hoping that this is an issue with either my HTML code or something else. Here's how my content looks in the browser: And how it looks in a JScrollBar(JEditorPane): The HTML code: http://pastebin.com/EixG3WLH The Java code: File f = new File("index.html"); JEditorPane jep = new JEditorPane(f.toURI().toURL()); JScrollPane sp = new JScrollPane(jep); JFrame frame = new