I was able to get the selection for the horizontal scroll bar for the first composite.
But I have no idea about how to increment the second composites scroll simultaniusly usning the value from the first scroll...
When tried to set the value on Composites using setLocation it moved the Composites instead of the data in the composite.
If the scrollbars have the same amount of scrolling and should always be in sync, you can set one's model to that of the other. Otherwise you'll need to add a listener to each scrollbar and update the other scrollbar if an event occurs. Be aware to not cause a StackOverflowError: if scrollbar 1 is moved, your code will move scrollbar 2, which triggers an event so scrollbar 1 is moved, which triggers an event so scrollbar 2 is moved, etc.
The value is read from Swing table using
scrollValue = scrollPane.getHorizontalScrollBar().getValue()
and the tried setting the value in other Composite using the
table.getHorizontalBar().setSelection( scrollValue ); this is SWT Table.