swt - Resizable row/column headers in NatTable -


i have nattable column , row headers, , use cornerlayer it. how make row , column headers resizable other column or row?

you need register necessary bindings header regions

gridlayer.addconfiguration(new abstractuibindingconfiguration() {      @override     public void configureuibindings(uibindingregistry uibindingregistry) {         uibindingregistry.registerfirstmousemovebinding(                 new columnresizeeventmatcher(swt.none, gridregion.row_header, 0),                 new columnresizecursoraction());          uibindingregistry.registerfirstmousedragmode(                 new columnresizeeventmatcher(swt.none, gridregion.row_header, 1),                 new columnresizedragmode());          uibindingregistry.registerfirstmousemovebinding(                 new rowresizeeventmatcher(swt.none, gridregion.column_header, 0),                 new rowresizecursoraction());          uibindingregistry.registerfirstmousedragmode(                 new rowresizeeventmatcher(swt.none, gridregion.column_header, 1),                 new rowresizedragmode());     } }); 

Comments