Mixing LWJGL and AWT JPanel

Hi guys,

i know this is a problem that got often posted quite some time. But still i cant seem to find the right solution.
The problem is i want to integrate the LWJGL field as a JPanel in an already huge Java Framework.

Following example code works well if i integrate it in a JFrame like described here: http://env3d.org/beta/node/44
But when i want to add the created Canvas to an JPanel, which will be integrated in the existing framework
the program crashes all the time.

org.lwjgl.LWJGLException: X Error - disp: 0x7f112c026aa0 serial: 41 error: BadValue (integer parameter out of range for operation) request_code: 1 minor_code: 0
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:321)
at org.lwjgl.opengl.LinuxDisplay.nCreateWindow(Native Method)
at org.lwjgl.opengl.LinuxDisplay.createWindow(LinuxDisplay.java:487)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:739)

Thanks guys.

regards
Mark