如何修改SWT的表格的行高

2025-01-01 11:35:48
推荐回答(1个)
回答1:

如何修改SWT的表格的行高

table.addListener(SWT.MeasureItem, new Listener() {
public void handleEvent(Event event) {
int clientWidth = table.getClientArea().width;
event.height = event.gc.getFontMetrics().getHeight() * 2; // increased item heights
event.width = clientWidth * 2;
}
});