• Post Reply Bookmark Topic Watch Topic
  • New Topic

display web page  RSS feed

 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

i am developing a browser application using swing as a GUI. I am using the JEditorPane class of java api to display a webpage.

code is like





The problem is the JEditorPane class could not do it properly like it increase or decrease the font text of web page, does not place the components where they are place on a URL etc.



How can display a web page properly??

 
Mohamed Sanaulla
Bartender
Posts: 3179
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a suggestion: You can try the Web Viewer component of JavaFX 2. So you can embed JavaFX components in your Swing application. There are tutorials for these at http://www.javafx.com
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JEditorPane has HTML 3.2 support. To render "modern" websites, you might want to evaluate something like the lobo browser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!