I'm trying to base the visual configuration of my NatTables on the default settings of the NatTable widget (in order to change according to platform and system settings). However, when I have to configure the registries, I typically don't have access to the NatTable widget.
Does anyone have any suggestions on how to work around this problem?
I'm not quite sure of what kind of configurations you talking about. Generally I would suggest to rely on style configurations based on default settings that can be retrieved by SWT itself, as it gets the values from the platform. So you don't have to know the NatTable.
Yes, but there really is only one way to find out what the default font of a control is: you have to create the control and then ask it for it's font. What I do now is that I send a "ConfigureCommand" down the stack containing the NatTable instance. I was wondering if there are other, better ways.
Ok, but NatTable extends Canvas, and does Canvas have a default font? And if it has one, is it different to the system font?. If you want to get the system font of the platform, I would go the following way: