I have a question about GLJPanel resizing problem. Suppose I have a JFrame having a JMenuBar and a GLJPanel being contained in the JFrame's JContentPane. I want to implement a F8 key function, which will toggle the JMenuBar when being pressed. But, I found when the JMenuBar disappear, the GLJPanel does not get proper resizing. Please help me out. It almost drives me crazy. Thanks.