• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fitting HTML page within JEditorPane

 
Shivaji Bhosale
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am using JEditorPane for displaying HTML page.
HTML page alone being displayed . But its not getting fitted
correctly in the editorpane.
So how come I can fit the HTML to the editor pane, so I can have scrolling
to see the complete page ?
 
Shivaji Bhosale
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I was successful to display HTML, its just i needed to add my componeent to the constructor of scroll pane.
But the real pain doesnt stop. Now I am asked to support JavaScript to my browser control, written in Java Swing.
How it can be done ?
Any ideas to start with ?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know Mozilla provides a package called Rhino that allows you to embed JavaScript into Java... I haven't used it alot myself, so you'll have to rely on the docs provided at their site on how to make it do what you want...

-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic