error: incompatible types: Vb0201 cannot be coverted to JFrame : My problem is that i want to make a simple JFrame, but i keep getting the same error with this line of code:

JFrame frame = new Vb0201();

The error that i get is:

error: incompatible types: Vb0201 cannot be coverted to JFrame


The full sourcecode is:

import javax.swing.*;

public class Vb0201 {
    
    public static void main(String[] args) {
    	
    	JFrame frame = new Vb0201();
    	frame.setSize( 400, 200 );
    	frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    	frame.setTitle( "Eerste applicatie" );
    	frame.setVisible( true );
    }
}

