вторник, 2 апреля 2013 г.

How to disable scrollbars in natTable?

The scrollbars are on the NatTable intself (Scrollable interface). If you are not using a ViewportLayer you can call natTable.getVerticalBar().setVisible(false), natTable.getHorizontalBar().setVisible(false); That will hopefully work for you.

The ViewportLayer only enables the scrollbars. They are disabled by default.

NatTable can be constructed with an optional style, if you don't include the SWT.VERTICAL/HORIZONTAL scrollbars a null pointer exception is thrown when NatTable tries to disable the scrollbars. I think that's a bug.

Комментариев нет:

Отправить комментарий