To disable vertical scroll bar i used the following syntax
table.getHorizontalBar().setEnabled(false);
But it is not working. It is ruining my application ui. How can i disable it?
Use option SWT.NO_SCROLL
and SWT.V_SCROLL
while constructing the table as following:
new Table (shell, SWT.NO_SCROLL | SWT.V_SCROLL);
You can't prevent the Table
from showing its scrollbars if it wants to. However, if you give the table the space it requires, it should not have to display any scrollbars.
Note: You can simply use SWT.NO_SCROLL in the constructor but if you want to update it later it won't be possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With