0

I'm working in an application based on Applets, with Swing and awt. My current task is to replace the call to an applet by a given web site, let say instead of opening an old applet I have to open the address https://stackoverflow.com/. After a short discussion with my technical supervisor he advised me to enbed the web site into the applet.

The issue is the following:

  • Can We embed a web site into an applet?
  • If yes, how? May be embedding the site into a JPanel, isn't it?

I did found plenty of ways of embedding an applet into a html page but not the other way around.

Thanks a lot in advance!

EDIT: As a matter of completing the question I finally found some links on Stackoverflow that may help someonelse:

Community
  • 1
  • 1
pafede2
  • 1,626
  • 4
  • 23
  • 40
  • *"After a short discussion with my technical supervisor he advised me to enbed the web site into the applet."* That's astonishingly poor advice. What is the point of all this? – Andrew Thompson Sep 18 '15 at 15:16
  • The idea is to replace the call to an applet which implements some search functionalities using web-services by a web site that has already implemented much better and advanced search features for the same items. They are basically publicly known products description. – pafede2 Sep 18 '15 at 15:20

1 Answers1

1

I am unsure if this will work in an applet since the example is for desktop use, however see this Oracle Example on creating a Swing Browser.

This utilizes the WebEngine class as part of JavaFX.

mascoj
  • 1,313
  • 14
  • 27