Quero rodar o applet:
1. import java.awt.*;
2. import java.awt.event.*;
3.
4. import java.swing.*;
5.
6. public class Date extends Japplet
7. implements ActionListener
8. {
9. private int count = 0, total = 0;
10. private final int INCREMENT = 5;
11.
12. private Jbutton button;
13.
14. public void init()
15. {
16. Container container = getContentPane();
17. button = new JButton( "Click Para Incrementar" );
18. button.addActionListener( this );
19. container.add( button );
20. }
21.
22. public void actionPerformed( ActionEvent actionEvent )
23. {
24. total += INCREMENT;
25. count++;
26. showstatus( "After increment " + count + ": total = " + total );
27. }
28.
29.
30.
31. }
Mas to com duvida em como gerar o formulario ou usar o appletviewer com Netbeans 6.8 ou 6.9?
Eu compilo o codigo acima gerei o codigo html abaixo
[code]
TesteTeste v1.1
The source. [/code]
Botei todos os arquivos na mesma pasta e nao funfou?
Alg pode ajudar?