JEditorPane (html page) doesn't appear on main frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EntryTeam
    New Member
    • Aug 2009
    • 55

    JEditorPane (html page) doesn't appear on main frame

    class Browser has method getBrowserWindo w() which returns JEditorPane(new URL("some URL")).

    class MainForm calls new Browser().getBr owserWindow() and assigns it to another JEditorPane object.
    Code:
    editor = new Browser().getBrowserWindow(); 
    scrollpane = new JScrollPane(editor);
    Object editor.hashCode () is correct, so there's no doubt that i've got the right object.

    Still, i can't see html page in the main frame.

    P.S. i've tried creating instead of htmlpane simple JEditorPane filled with text only,
    and this one i couldn't see neither.
Working...