ankurtr ankurtr - 5 months ago 12x
Java Question

How to disable horizontal scroll bars in the swt table?

To disable vertical scroll bar i used the following syntax


But it is not working. It is ruining my application ui. How can i disable it?


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 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.