wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes 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 "JeditorPane" Watch "JeditorPane" New topic
Author

JeditorPane

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
How can I add JScrollPane to JEditorPane
is it possible?
Guido Sautter
Ranch Hand

Joined: Dec 22, 2004
Posts: 142
Why do you want to do this? Might be helpful if you explain a little more.

The other way around (JEditorPane in JScrollPane) is possible, and very common, too.
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
I have to display page on gui component and that page I will take from server and present it on gui

I have created one JEditorPane instance and display page on that instance

but it is not viewable total page , some page is missing

so that way I am thinking add a JScrollPane to JEditorPane

can you please tell me how it is possible
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
I have to display html page on gui component and that html page I will take from server and present it on gui

I have created one JEditorPane instance and display html page on that instance

but it is not viewable total page , some page is missing

so that way I am thinking add a JScrollPane to JEditorPane

can you please tell me how it is possible
Guido Sautter
Ranch Hand

Joined: Dec 22, 2004
Posts: 142
So if the html page is too big, just put the JEditorPane into a JScrollPane so it can be larger than the space available in your GUI. Just try it ...
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
I am not getting

can you give me sample code
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37923
    
  22
Have you read the API description of JEditorPane and JScrollPane?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JeditorPane
 
Similar Threads
Display problem in JFrame
How to clear contents of HTMLDocument in JEditorPane???
HTML Content in a JPanel
Java Print Problem
Creating a web browser with Java