Code:
import javax.swing.*;
import java.awt.event.*;
public class OpstartKlasse extends JFrame
{
public static void main (String args [])
{
JFrame frame = new OpstartKlasse();
frame.setSize (400,200);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle("Soes Badal");
JPanel paneel = new Paneel (); [COLOR="Red"]//hier gaat het fout. Melding: cannot convert[/COLOR]
frame.setContentPane(paneel); [COLOR="Red"]//from Paneel to JPanel.[/COLOR]
frame.setVisible(true);
}
}
Code:
public class Paneel {
}