Ragazzi stò usando eclipse per creare una semplicissima finestra con un bottone all'interno.

Questo è il codice:

codice:
import javax.swing.*;

public class Finestra {
	JFrame finestra;
	Jframe bottone;
	
	Finestra(){
		finestra=new JFrame();
		finestra.setlayout(null);
		finestra.setSize(800, 600);
		bottone=new JButton;
		bottone.setBounds(40, 50, 90, 90);
		finestra.add(bottone);
		finestra.setVisible(true);
	}
	
	public static void main(String[] args) {
		Finestra f=new Finestra();
	}
}
Però quando vado a mandare in "Run", mi esce scritto:

Errors exist in required project(s)
Finestra3
Proceed with launch?

Quando clicco proced, in basso nella console in rosso esce scritto:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

at Finestra.main(Finestra.java:17)

Come mai? Dove sbaglio?