File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes Fitting HTML page within JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply 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: 4120

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.
 
 
subject: Fitting HTML page within JEditorPane
 
Threads others viewed
create a html help menu
can swing embed a html table in any kind of panel ?
JeditorPane
HTML too big in JEditorPane
Open a Web Page inside a jDesktopPane
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture