This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Open a Web Page inside a jDesktopPane
JeditorPane
HTML too big in JEditorPane
create a html help menu
can swing embed a html table in any kind of panel ?