Hi its me again (The blind one

)
I started with my project (clicked a SWING-GUI with VEP and tried to test Canvas3dPanel) and got some problems. I thought VEP made some problems, but after this code don´t work too, I think I don´t understand something.
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import org.xith3d.render.canvas.Canvas3DPanel;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
JFrame f = new JFrame("sdfsdfsdf");
f.setLayout(new GridLayout(1, 1));
//JPanel c3dp = new JPanel();
Canvas3DPanel c3dp = new Canvas3DPanel(); // there are other constructors that could be interesting, too.
f.getContentPane().add(c3dp, null);
f.setVisible(true);
}
}
Errormsgs:
Exception in thread "main" java.lang.UnsupportedOperationException: You cannot change the LayoutManager of a Canvas3DPanel.
at org.xith3d.render.canvas.Canvas3DPanel.setLayout(Canvas3DPanel.java:80)
at java.awt.Panel.<init>(Unknown Source)
at java.awt.Panel.<init>(Unknown Source)
at org.xith3d.render.canvas.Canvas3DPanel.<init>(Canvas3DPanel.java:205)
at org.xith3d.render.canvas.Canvas3DPanel.<init>(Canvas3DPanel.java:222)
at org.xith3d.render.canvas.Canvas3DPanel.<init>(Canvas3DPanel.java:230)
at main.Main.main(Main.java:19) Why it doesn´t work? I change the layout only one time (f.setlayout....)
Cu Alex