/**
* This internal function stores column and dialog layout information in the
* settings object.
*/
private void saveLayout() {
final Settings settings = SettingsKeys.getSettings();
settings.setInt(SettingsKeys.DIALOG_X, getX());
settings.setInt(SettingsKeys.DIALOG_Y, getY());
settings.setInt(SettingsKeys.DIALOG_W, getWidth());
settings.setInt(SettingsKeys.DIALOG_H, getHeight());
final TableColumnModel colModel = table.getColumnModel();
final StringBuffer colSizes = new StringBuffer();
for (int i = 0; i < colModel.getColumnCount(); ++i) {
colSizes.append(Integer.toString(colModel.getColumn(i).getModelIndex()));
colSizes.append(';');
colSizes.append(Integer.toString(colModel.getColumn(i).getWidth()));
colSizes.append(';');
}
settings.setProperty(SettingsKeys.DIALOG_COLS, colSizes.toString());
}