Please help with Browser Scrollbars [message #458472] |
Thu, 14 July 2005 07:55 |
Eclipse User |
|
|
|
Originally posted by: gregoire.diboula.gmx.net
Hello Everybody,
Could you please help me with the following issue. I am trying to use
the SWT Browser. Yet, I can not completely remove the vertical
scrollbar. Is there anyway to achieve this? My code follows.
Thanks so much.
Gregoire.
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.SWT;
import org.eclipse.swt.*;
import org.eclipse.swt.browser.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class HTMLTEST {
public static void main(String [] args) {
Display display = new Display();
Shell shell = new Shell(display, SWT.NONE);
shell.setLayout(new FillLayout());
shell.setSize(200, 700);
{
Browser browser = new Browser(shell, SWT.NONE
| SWT.SMOOTH
);
browser.setText("<HTML><HEAD><TITLE>HTMLTest"+
"</TITLE></HEAD><BODY></BODY></HTML>");
}
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03197 seconds