This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web page on a JPanel  RSS feed

 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have a stand alone application that I am wanting to put a web page onto a JPanel. What is the easiest way to do this? We have an existing website on our webserver that I would like to try and add to the JPanel. It has animation on it. Is this possible to do without using an Applet?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't put a Web Page on a JPanel. You will need to use a JEditorPane. If you call your Web Page from the JEditorPane and then put the JEditorPane on a JPanel, I think that will give you the result you are looking for.
BTW - the JEditorPane as is, is not meant to be a web browser. So your Web Page may contain content that the JEditorPane cannot render.
[ January 24, 2003: Message edited by: Gregg Bolinger ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!