Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to embed Applet into the Browser?

 
jean xi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i run my html page, it always opens another window to run the Applet, How can i keep the Applet into the browser with my html contents.
(I use java plug-in 1.3 and htmlConverter to transform my html page)
Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd check the applet to see if it's opening a window or frame. Normally the applet will live in the rectangle whose extent you define in the < applet > tag.
 
jean xi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim.
Actually I create a JFrame, but i set
applet.isStandalone = false;
Is it matter?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup. I'm not familiar with isStandalone. but JFrame implies a window. What you probably wanted was JPanel.
 
jean xi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi tim,
I change my code using JPanel, I can run the applet in appletViewer, when i run in the browser(IE), this time it
doesn't pop up another window, but in the browser i see
nothing, just tell me 'Applet Started'.
BTW, i am using JRE1.3.1
Thanks
 
jean xi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally I use IE5.0, after I download IE5.5, it works.
Thanks Tim
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to open the IE Java Console. If the applet throws an exception, nothing will appear in the brower window, but the exception and stack trace will show up in the console window. IE 5.0 has no specific Java problems I know of.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic