• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JEditorPane problem

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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'm sure glad that he's gone. Now I can read this tiny ad in peace!
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic