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

To put 2 applets on Web page

 
maja neskovic
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the HTML of the web page in question.
 
maja neskovic
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is:

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is the solution Thank you, Ulf, very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic