views:

146

answers:

2

I am using EmbeddedSwingComposite (built on SWT_AWT bridge) which is mentioned in the following article : http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/index.html

Though it says that using the above technique modality issues are resolved. But in my case there are still some modality issues left. I guess maybe becuause I am using JDK6 wherein Swing modality was changed.

Anybody with experience or any idea on this. Any further info please post.

Thanks in advance

A: 

I ran into this problem as well. My solution was to change the shell on the pop-up box / shell to an SWT shell, while keeping the children as Swing components. This sorts everything out completely, but might be incompatible with your existing APIs.

Chris Dennett
A: 

Hi Chris,

I need your help, please !!!

I was developed an application using Eclipse RCP that allows to create client's applications with the integration between swt and awt, but I had one problem when I run my application, the message is the following:

public void createPartControl(Composite parent) { this.parent_ = parent;

    parent.addControlListener(new ControlAdapter() {
        @Override
        public void controlResized(ControlEvent e) {
            updateDetached();
        }
    });
    updateDetached();

    composite_ = new Composite( parent, SWT.EMBEDDED );                
    display_ = parent.getDisplay();        
    display_.asyncExec(new Runnable() {        
        public void run() {
            frame_ = SWT_AWT.new_Frame( composite_ );
        }
    });
}

27 août 2010 08:02:04 sun.awt.X11.XToolkit processException ATTENTION: Exception on Toolkit thread java.lang.StackOverflowError at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method) at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:125) at sun.awt.X11.XToolkit$1.handleError(XToolkit.java:153) at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:134) ...

I had read a lot of comments in the web about this problem but I did'not find the solution.

Would you help me, please?

AEHP

AEHP