aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Fitting HTML page within JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Fitting HTML page within JEditorPane" Watch "Fitting HTML page within JEditorPane" New topic
Author

Fitting HTML page within JEditorPane

Shivaji Bhosale
Ranch Hand

Joined: Mar 12, 2001
Posts: 70
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

Joined: Mar 12, 2001
Posts: 70
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

Joined: Oct 18, 2000
Posts: 4121

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


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fitting HTML page within JEditorPane