JOGL in JSplitPane

Hi All,

I am having an interesting problem with trying to use JOGL with a Swing JSplitPane.

Here’s the setup: The left pane consists of a GLCanvas contained by a JPanel. The right pane just has a few standard Swing components (like buttons) sitting on a JPanel.

Here’s the problem: When I try to move the splitter bar, the bar will only move to the right. This is in the direction of the Swing panel, away from the GLCanvas panel. I cannot move the splitter bar to the left, making the gl window smaller and the Swing panel larger.

Do any of you have any ideas as to what the issue might be?

Thanks a lot!

try putting the glcanvas in the center of a border-layouted jpanel…

[quote]try putting the glcanvas in the center of a border-layouted jpanel…
[/quote]
That is exactly what I am doing. Any other ideas?

I’m trying to do the same thing myself. I was able to get it to work by calling setMinimumSize() on the GLCanvas JPanel (giving it some small size like setMinimumSize(new Dimension(1, 1)), for example).

Hope this helps!