PDA

View Full Version : GLCanvas & menubar



Don Gazon
04-15-2003, 05:36 AM
I am programming in java and I use gl4java.

My applicaton extends GLAnimCanvas and is placed in a JFrame.
I want to add a menubar to my application. So I added a JMenuBar to the JFrame. But the menu's, when opened, appear behind my application (GLAnimCanvas). The reason for this is that GLAninCanvas is a heavyweight component, and the JFrame is a lightweight component.
And a heavyweight component is shown in foreground.

Does anyone know how I place the GLAnimCanvas int the background, so the menu's appear in front of the Canvas?
Or is there an other solution to this problem???

Thx!

[This message has been edited by Don Gazon (edited 04-15-2003).]