Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Web page on a JPanel

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?
Ranch Hand
Posts: 15304
Mac OS X IntelliJ IDE Chrome
  • 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 ]
    Bookmark Topic Watch Topic
  • New Topic