Design Time support for JOGL

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Design Time support for JOGL

pgespo62
I am new to this forum, and as a user of WorlWindJava I found this issue in JOGL: starting from WorldWind Java 2.0 (based on JOGL 2.1.5) editing of forms containing  WWJ panels  is not supported anymore. I am using Eclipse 4.4.1 with WindowBuilder 1.7.0 under Windows 8.1. The parser of WindowBuilder claims for an "IllegalStateExeption in setupPrint()".

I tested a basic sample based on JOGL APIs with different releases of JOGL, and I found that release 2.0.2 is working with WindowBuilder, while release 2.1.5 does not support design time.

Is this a real issue or known limitation of newer JOGL releases?

Pier Giorgio
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

gouessej
Administrator
Hi

You're in the right place to talk about JOGL ;) What do you mean by "design time"? Are you talking about Beans.isDesignTime()? Please can you use some other versions of JOGL to determine in which own the behavior was changed? Can you post the whole stack trace? If there is a limitation or a bug, we have to fix it.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

pgespo62
I have this simple class that adds a GLJPanel to a JFrame:
import java.awt.EventQueue;

import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;
import javax.media.opengl.awt.GLJPanel;
import javax.swing.JFrame;

/**
 * This type...
 * TODO Type Description
 *
 * @author PierGiorgio
 *
 */
public class SampleJFrame extends JFrame {


    private GLJPanel gljpanel;

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    SampleJFrame frame = new SampleJFrame();
                    frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the frame.
     */
    public SampleJFrame() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setBounds(100, 100, 450, 300);
        GLProfile glprofile = GLProfile.getDefault();
        GLCapabilities glcapabilities = new GLCapabilities(glprofile);
        gljpanel = new GLJPanel( glcapabilities ); 
        setContentPane(gljpanel);
        
        
    }

}

Using the Design View of WindowBuilder with JOGL 2.1.5, I got such error:

While switching to JOGL 2.0.2 the form can be edited smoothly:
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

gouessej
Administrator
Please click on "Show stack trace" and post it here.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

pgespo62
Please find the exception stack trace
stacktrace.txt
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

gouessej
Administrator
Thanks. Please can you test with JOGL 2.1.0 and 2.1.4? It would allow us to determine more precisely when the regression appeared.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Design Time support for JOGL

pgespo62
Test done. Same issue for both 2.1.0 and 2.1.4  releases.