Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT.EMBEDDED problem on OSX(Trying to embed an external application in a SWT composite on OSX)
SWT.EMBEDDED problem on OSX [message #663316] Mon, 04 April 2011 15:12
Fabian Bernhard is currently offline Fabian BernhardFriend
Messages: 4
Registered: April 2011
Junior Member
Dear all,

I try to embed an external video stream in a SWT Composite.

public static void main(String[] pArgs) throws Exception {
        final Display wDisplay = new Display();
        final Shell wShell = new Shell(wDisplay, SWT.SHELL_TRIM);
        final Composite wVideo = new Composite(wShell, SWT.EMBEDDED);

        // Dummy code
        displayVideoInThisWindow(wVideo.handle);
}


It works all fine on Windows, but not on OSX.

1) What exactly is stored in the property "handle" on OSX? I want to understand the internals so that I can direct my research in this direction.

2) How can I get hold of the underlying, internal NSWindow of a Composite on OSX? I want to pass a pointer to the NSWindow through JNI to the video application written in C. The C application would then draw the video into that NSWindow.

Thanks in advance!

Previous Topic:how do i add a combo to a grid?
Next Topic:Managing Menu Item Enable State
Goto Forum:
  


Current Time: Mon Mar 30 11:21:23 GMT 2020

Powered by FUDForum. Page generated in 0.02502 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top