No scrollbars with ScrolledForm [message #441434] |
Mon, 16 August 2004 08:14 |
Eclipse User |
|
|
|
Originally posted by: markus.jakob.triadem.ch
Hi
I'm using Eclipse Forms.
My problem is that on the ScrolledForm no scrollbars appear when the
window size is reduced.
What am i doing wrong?
I'm working with:
OS: Windows XP
JRE: j2re1.4.2_05
Eclipse: Version: 3.0.0 Build id: 200406251208
public static void main(String[] args)
{
Display display = new Display();
SignalEditor application = new SignalEditor();
Shell topShell = application.open(display);
topShell.pack();
topShell.open();
while (!topShell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep ();
}
}
display.dispose ();
}
private Shell open(Display display)
{
applicShell = new Shell(display, SWT.SHELL_TRIM);
toolkit = new FormToolkit(display);
form = toolkit.createScrolledForm(applicShell);
GridLayout layout = new GridLayout();
form.getBody().setLayout(layout);
.
.
.
form.pack();
toolkit.paintBordersFor(form.getBody());
return(applicShell);
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03374 seconds