aspose file tools*
The moose likes Applets and the fly likes How to embed Applet into the Browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to embed Applet into the Browser?" Watch "How to embed Applet into the Browser?" New topic
Author

How to embed Applet into the Browser?

jean xi
Greenhorn

Joined: Jul 25, 2001
Posts: 10
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

Joined: Jun 25, 2001
Posts: 15665
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
jean xi
Greenhorn

Joined: Jul 25, 2001
Posts: 10
Thanks Tim.
Actually I create a JFrame, but i set
applet.isStandalone = false;
Is it matter?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

Yup. I'm not familiar with isStandalone. but JFrame implies a window. What you probably wanted was JPanel.
jean xi
Greenhorn

Joined: Jul 25, 2001
Posts: 10
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

Joined: Jul 25, 2001
Posts: 10
Originally I use IE5.0, after I download IE5.5, it works.
Thanks Tim
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to embed Applet into the Browser?
 
Similar Threads
browser caching
Redirect from an Applet to a different HTML page
Want Help...Ugent
open URL in specific frame.
HTML wont run Applet