JApplet in HTML
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, April 27, 2002 09:31 AM

Direkt3 We're trying to show a JApplet in our browser, but the browser only shows a gray square. We are using JDK v1.3.1 and Internet Explorer v5.5. This is our JApplet code: import java.awt.*; import javax.swing.*; import javax.swing.JApplet; public class Direkt3 extends JApplet { public void init() { Container content = getContentPane(); content.setBackground(Color.yellow); content.setLayout(new FlowLayout()); content.add(new JButton("Button")); } } and this is our HTML code: Applet Title    More>>
Direkt3


We're trying to show a JApplet in our browser, but the browser only shows a gray square.
We are using JDK v1.3.1 and Internet Explorer v5.5.


This is our JApplet code:

			
import java.awt.*;
import javax.swing.*;
import javax.swing.JApplet;

public class Direkt3 extends JApplet {

public void init() {

Container content = getContentPane();
content.setBackground(Color.yellow);
content.setLayout(new FlowLayout());
content.add(new JButton("Button"));
}

}



and this is our HTML code:


			






Applet Title








These files are stored in the same folder.


Does anybody know what could be wrong?


Thanks,

Sofia, Kristina and Johanna

   <<Less

Re: JApplet in HTML

Posted By:   Kesavan_Srinivasan  
Posted On:   Sunday, April 28, 2002 01:03 AM

Hi Sofia,

The problem is u dont hv a Java Plugin 1.3(LATEST) in ur browser. U can use HTMLConverter given by Sun Microsystems, to convert the HTML to make it work in the Internet Explorer 5.5.

If u hv further probs writer me at kesavansrini@yahoo.co.in

Kesavan.

About | Sitemap | Contact