More reasonable legacy column default width
This commit is contained in:
parent
e342574ef3
commit
9d6d8f25b7
@ -253,6 +253,12 @@ public class ComponentPresetChooserDialog extends JDialog {
|
|||||||
public void itemStateChanged(ItemEvent e) {
|
public void itemStateChanged(ItemEvent e) {
|
||||||
updateFilters();
|
updateFilters();
|
||||||
tm.setColumnVisible(legacyColumn, showLegacyCheckBox.isSelected());
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user