How to overlay SWT Widgets over GLCanvas
Posted by Tuan Anh Nguyen on Jul 04, 2013; 2:21am
URL: https://forum.jogamp.org/How-to-overlay-SWT-Widgets-over-GLCanvas-tp4029507.html
Dear all,
I am an amatuer with JOGL and SWT. I got a problem while try show some SWT Widgets over the GLCanvas using AbsoluteLayout.
composite = new Composite(parent, SWT.NONE);
composite.setLayout(null);
Button button = new Button(composite, SWT.NONE);
button.setText("New Button");
button.setBounds(172, 145, 94, 28);
glcanvas = GLCanvas.create(composite, SWT.NO_BACKGROUND, null, null, null);
I thought that the button should be on top of GLCanvas but it is always behind the GLCanvas. Am i doing something wrong ? Please help me, thank you very much.