Login  Register

jogl + swing help, please.

Posted by imakerobots on Feb 27, 2015; 3:16am
URL: https://forum.jogamp.org/jogl-swing-help-please-tp4034071.html

Hi Jogamp!

I love what you're doing, I think it's a Good Thing.

I've been writing code for my robot interfaces using Eclipse and Swing.  Up to now I've been overriding a jpanel::paintComponent() to do my WYSIWYG.  Fine for robots like Makelangelo.com, not so great when I get into stuff that moves in 3D.  I'd really like to bring all my robots under one roof, so to speak - opengl jpanel in one window, context-sensitive swing components in another window.  click on a robot to change the panel, tweak the panel to order the robot around.  I want to believe I don't have to rewrite all the GUI to run natively in OpenGL.

I'm currently working on https://github.com/marginallyclever/arm3. I have a simple menu bar above a jogl window.  I find that when I select a drop down menu the menus stop working until I resize the window or switch out and back in again.

In a separate, unreleased codebase, I tried a jSplitPanel with jogl on the left and swing components on the right.  the jogl window refused to resize correctly, despite my best efforts.

A perfect solution would be an open source demo I can read, grok, and adapt to my purposes.  The next best would be a patient explanation to my questions, like "what did I do wrong?" and "how do I fix it?"

Please, can you help?

Thank you!