This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JEditorPane problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane problem" Watch "JEditorPane problem" New topic
Author

JEditorPane problem

Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
I have divided my Application frame in two, I am trying to load a HTML page (Main.html) in one of them.
c is a container which holds eveything.
mip is the JEditorPane which should display the HTML.

The problem is that I get a blank, white JScrollPane instead of one displaying my HTML page.
Heres what Ive got:
My Main Method (scrap):

etc etc...

And the CreateInfoPane Method, to load in the HTML etc:


Im pretty sure the CreateInfoPane method is ok, I think the way I add the pane to the container in the main method is the problem. Any suggestions would be greatly appreciated,
Thanks,

Eoin.
Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
FYI I got around the problem by having the CreateInfoPane method create and return a JEditorPane with the desired properties, instead of passing it a Pane to transform.
Main method unchanged.
Hope this helps someone else!!!


E
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JEditorPane problem
 
Similar Threads
jEditorPane clearing cache
displaying HTML in a JEditorPane
Link to open using JEditor Pane
Not able to open links from JEditorPane
Loading Webpage in JFrame