• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

embedded Applet in web broswer

 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This applet runs fine but will not show after ebedding it in my browser.


public class MyApplet extends JApplet {
private BuildGraph buildGraph;
private Kruskal k;
private Container contentPane = getContentPane();

public MyApplet() {
k = new Kruskal();
buildGraph = new BuildGraph(k.getAllnewEdges());

Graph G = buildGraph.getGraph();
ViewDemo s = new ViewDemo(G);
s.setSize(450,550);
s.init();
s.start();

contentPane.setLayout(new BorderLayout(550,650));
contentPane.add(s, BorderLayout.WEST);
}

}


<APPLET codebase="org/me/hello/" code="org/me/hello/MyApplet.class" width=350 height=200></APPLET>
[ June 13, 2007: Message edited by: jite eghagha ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where does it run fine - in appletviewer? I kind of doubt that, because with that codebase and code attribute, it would need to be in a directory called "org/me/hello/org/me/hello/MyApplet.class"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic