mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DBE: prevent expansion of checkboxes in Schemas And Tables view
This commit is contained in:
@@ -233,7 +233,11 @@ public class TableUtil {
|
||||
}
|
||||
|
||||
public static void setupCheckboxColumn(@NotNull TableColumn column) {
|
||||
int checkboxWidth = new JCheckBox().getPreferredSize().width;
|
||||
setupCheckboxColumn(column, 0);
|
||||
}
|
||||
|
||||
public static void setupCheckboxColumn(@NotNull TableColumn column, int additionalWidth) {
|
||||
int checkboxWidth = new JCheckBox().getPreferredSize().width + additionalWidth;
|
||||
column.setResizable(false);
|
||||
column.setPreferredWidth(checkboxWidth);
|
||||
column.setMaxWidth(checkboxWidth);
|
||||
|
||||
Reference in New Issue
Block a user