Java Code Examples for org.eclipse.swt.widgets.Table.addControlListener()

The following are Jave code examples for showing how to use addControlListener() of the org.eclipse.swt.widgets.Table class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Hydrograph   File:   Source Code and License Vote up 5 votes
private void addControlListener(Table table, TableColumn tableColumn) {
	ControlListener controlistener= new ControlAdapter() {
		public void controlResized(ControlEvent e) {
			for (TableColumn column : table.getColumns()) {
				column.setWidth(table.getSize().x / table.getColumnCount() - (4 - table.getColumnCount()));