|
|
@ -26,6 +26,7 @@ import com.fr.general.ComparatorUtils; |
|
|
|
public class WidgetPropertyTable extends AbstractPropertyTable { |
|
|
|
public class WidgetPropertyTable extends AbstractPropertyTable { |
|
|
|
|
|
|
|
|
|
|
|
private FormDesigner designer; |
|
|
|
private FormDesigner designer; |
|
|
|
|
|
|
|
private static final int LEFT_COLUMN_WIDTH = 97; // "属性名"列的宽度
|
|
|
|
|
|
|
|
|
|
|
|
public WidgetPropertyTable(FormDesigner designer) { |
|
|
|
public WidgetPropertyTable(FormDesigner designer) { |
|
|
|
super(); |
|
|
|
super(); |
|
|
@ -86,7 +87,9 @@ public class WidgetPropertyTable extends AbstractPropertyTable { |
|
|
|
setModel(model); |
|
|
|
setModel(model); |
|
|
|
this.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); |
|
|
|
this.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); |
|
|
|
TableColumn tc = this.getColumn(this.getColumnName(0)); |
|
|
|
TableColumn tc = this.getColumn(this.getColumnName(0)); |
|
|
|
tc.setPreferredWidth(30); |
|
|
|
tc.setPreferredWidth(LEFT_COLUMN_WIDTH); |
|
|
|
|
|
|
|
tc.setMinWidth(LEFT_COLUMN_WIDTH); |
|
|
|
|
|
|
|
tc.setMaxWidth(LEFT_COLUMN_WIDTH); |
|
|
|
this.repaint(); |
|
|
|
this.repaint(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|