Bom dia
Pessoal estou tentando exbir um frama no navegador mas não esta funcionando, o arquivo html e o arquivo .java e o .class, estão no mesmo diretório mas não roda, veja o código:
html:
<html>
<head>
<title>Simple Graph (1.1)</title>
</head>
<body>
<h1>FirstApplet</h1>
<hr>
<xxxxxx code=FirstApplet.class width=300 height=120>
</applet>
<hr>
<a href="FirstApplet.java">The source</a>.
</body>
java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package unidade2.aula1;
import java.awt.*;
public class FirstFrames extends java.awt.Frame {
java.awt.Button button1, button2, button3;
public static void main (String args[]){
// 1 Instanciar a classe a qual pertence o metodo main
// 2 chamar os metodos dessa classe
FirstApplet frm = new FirstApplet();
public FirstApplet(){
}
public void init() {
button1 = new Button("Ok");
button2 = new Button("Open");
button3 = new Button("Close");
add(new Button("novo botão"));
add(button1);
add(button2);
add(button3);
}
}