aspose file tools*
The moose likes Applets and the fly likes To put 2 applets on Web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "To put 2 applets on Web page" Watch "To put 2 applets on Web page" New topic
Author

To put 2 applets on Web page

maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
I'm trying to put 2 applets on one Web page, one bellow other. Both applets are made in NetBeans in same project and they have the same jar file.

How to make to put them on Web page? I tried to write new applet tag, but it is not displayed when I run the applet. Only one applet is displayed. How to fix that?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Post the HTML of the web page in question.


Ping & DNS - updated with new look and Ping home screen widget
maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
Here it is:

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
That looks OK, as far as it goes. Is there a gray/white area where the 2nd applet should be? Are there any messages in the Java Console?
maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
There is no error report. I tried to add some text bellow the first applet and it doesn't display it. Same, it doesn't at all display the second applet. First is shown correctly and there is nothing shown bellow it. There is no even field of specified dimension for second applet. Nothing... Do you have any idea how I could fix this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Try splitting the applet into opening and closing tags like this:

It wouldn't make a difference for XML, but HTML isn't XML.
maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
That is the solution Thank you, Ulf, very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To put 2 applets on Web page
 
Similar Threads
How to Call Applets from Servlets
Error message when applet does not come..
Multiple applets instances confused
pls help me out
How to insert java code in Static HTML page ?