Salve a tutti,
sono un neofita di JAVA, ho compilato il seguente codice con JBuilder
mi restituisce il seguente errore: java.lang.NoSuchMethodError: main Exception in thread "main"Codice PHP:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
*
Title: </p>
*
Description: </p>
*
Copyright: Copyright (c) 2004</p>
*
Company: </p>
* @author not attributable
* @version 1.0
*/
public class Etichette extends JFrame {
private JLabel Etichetta1, Etichetta2, Etichetta3;
public Etichette() {
super ("Test etichette in java");
Container c = getContentPane();
c.setLayout (new FlowLayout());
Etichetta1 = new JLabel ("Label etichetta 1");
Etichetta1.setToolTipText("Questa è l'etichetta n.1");
c.add(Etichetta1);
c.setSize(275,170);
show();
}
public static void main (String args[]){
Etichette app = new Etichette();
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e)
{
System.exit(0);
}
}
);
}
}
Cosa vuole?!??!![]()
![]()