Is there a way to add a expandbar onto a jframe or jpanel without creating each component with code (using components that is already created).
Here is the code I used: ( http://www.eclipse.org/swt/snippets/#expandbar )
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new FillLayout());
shell.setText("ExpandBar Example");
ExpandBar bar = new ExpandBar (shell, SWT.V_SCROLL);
I have tried to add the expandbar to the panel, as well as trying to add the display and the shell to the panel, but does not work.
Please help. Thanks