• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JeditorPane

 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I add JScrollPane to JEditorPane
is it possible?
 
Guido Sautter
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting

can you give me sample code
 
Campbell Ritchie
Sheriff
Pie
Posts: 50175
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the API description of JEditorPane and JScrollPane?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic