Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with JFrame + Web page  RSS feed

 
Marvin Legend
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,


I need to put a Web Page in my JFrame application , I got a lot codes on the internet and could implement without problems , but the problem is that this code has an ugly page as hell, with colored all wrong and with a very poor quality , one of code I used was this :





If you test , you'll see that the page is displayed in the JFrame is horrible , can someone help me to get a good look as Chrome , Internet Explorer , Mozilla etc ?

Thank you guys .
 
Rob Spoor
Sheriff
Posts: 21047
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget all about JEditorPane. It's very, very limited, officially supporting only HTML 3.2.

If you want a proper web browser, check out JavaFX. It includes (since version 2.0) a web browser component based on WebKit (like Chrome).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!