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