Applet que no carga
Hola a tod@s
Mi problema es que en el appletviewer me va todo way, pero al intentar ejecutalo en html me aparece: java.lang.NoSuchMethodError:java/awt/GridBagConstraints:method <init> (|||DD|||java/awt/Insets;||) V not found. Na, sabes?!!??!
Lo unico que pongo en el init() es :
public void init() {
try {
this.setEnabled(true);
this.setLayout(gridBagLayout1);
usersText.setColumns(9);
statusText.setBackground(Color.gray);
statusText.setText("textArea3");
label1.setText("Status:");
label2.setFont(new java.awt.Font("Dialog", 0, 10));
label2.setText("Usuarios:");
button1.setFont(new java.awt.Font("Dialog", 0, 10));
button1.setLabel("Conectar");
button2.setFont(new java.awt.Font("Dialog", 0, 10));
button2.setLabel("Desconectar");
this.add(usersText,new GridBagConstraints(1, 0, 1, 3, 0.0, 0.0,GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL,new Insets(0, 8, 0, 10), 39, 242));
this.add(chatText, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,new Insets(1, 2, 0, 0), 264, 238));
this.add(mensajeText, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(9, 0, 0, 0), 284, 0));
this.add(label1,new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 0, 0));
this.add(statusText,new GridBagConstraints(0, 4, 1, 2, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,new Insets(1, 0, 19, 0), 251, 30));
this.add(label2,new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 0, 0));
this.add(button1,new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 16, 0));
this.add(button2, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.NONE,new Insets(8, 0, 3, 0), 0, 0));
Tras declararlo en la clase.
Alguien puede ayudarme???
Muchas gracias.
Mi problema es que en el appletviewer me va todo way, pero al intentar ejecutalo en html me aparece: java.lang.NoSuchMethodError:java/awt/GridBagConstraints:method <init> (|||DD|||java/awt/Insets;||) V not found. Na, sabes?!!??!
Lo unico que pongo en el init() es :
public void init() {
try {
this.setEnabled(true);
this.setLayout(gridBagLayout1);
usersText.setColumns(9);
statusText.setBackground(Color.gray);
statusText.setText("textArea3");
label1.setText("Status:");
label2.setFont(new java.awt.Font("Dialog", 0, 10));
label2.setText("Usuarios:");
button1.setFont(new java.awt.Font("Dialog", 0, 10));
button1.setLabel("Conectar");
button2.setFont(new java.awt.Font("Dialog", 0, 10));
button2.setLabel("Desconectar");
this.add(usersText,new GridBagConstraints(1, 0, 1, 3, 0.0, 0.0,GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL,new Insets(0, 8, 0, 10), 39, 242));
this.add(chatText, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,new Insets(1, 2, 0, 0), 264, 238));
this.add(mensajeText, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(9, 0, 0, 0), 284, 0));
this.add(label1,new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 0, 0));
this.add(statusText,new GridBagConstraints(0, 4, 1, 2, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,new Insets(1, 0, 19, 0), 251, 30));
this.add(label2,new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 0, 0));
this.add(button1,new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.NONE,new Insets(0, 0, 0, 0), 16, 0));
this.add(button2, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0,GridBagConstraints.SOUTH, GridBagConstraints.NONE,new Insets(8, 0, 3, 0), 0, 0));
Tras declararlo en la clase.
Alguien puede ayudarme???
Muchas gracias.
El applet debe heredar de (java.awt.*) porque estas usando un metodo que no esta en la libreria especifica que estas utilizando en tu applet hay muchos componentes que no van a estar en ese java.lang.NoSuchMethodError:java/awt/GridBagConstraints:method