aspose file tools*
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
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: 38363
    
  23
Have you read the API description of JEditorPane and JScrollPane?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JeditorPane