More reasonable legacy column default width

This commit is contained in:
SiboVG 2023-09-19 22:17:39 +02:00
parent e342574ef3
commit 9d6d8f25b7

View File

@ -253,6 +253,12 @@ public class ComponentPresetChooserDialog extends JDialog {
public void itemStateChanged(ItemEvent e) {
updateFilters();
tm.setColumnVisible(legacyColumn, showLegacyCheckBox.isSelected());
if (showLegacyCheckBox.isSelected()) {
// Let's say the optimal width is 100 (you can adjust this as needed)
int optimalWidth = 50;
legacyColumn.setPreferredWidth(optimalWidth);
}
}
});