Browse Source

Merge pull request #923 in BA/design from ~PLOUGH/design:dev to dev

* commit '5dda04e93b7a2e83a057d5abd171a02e18b41316':
  REPORT-2561 大屏-数字时钟插件,属性表左移
master
superman 8 years ago
parent
commit
e50b8f99f8
  1. 5
      designer_form/src/com/fr/design/designer/properties/WidgetPropertyTable.java

5
designer_form/src/com/fr/design/designer/properties/WidgetPropertyTable.java

@ -26,6 +26,7 @@ import com.fr.general.ComparatorUtils;
public class WidgetPropertyTable extends AbstractPropertyTable {
private FormDesigner designer;
private static final int LEFT_COLUMN_WIDTH = 97; // "属性名"列的宽度
public WidgetPropertyTable(FormDesigner designer) {
super();
@ -86,7 +87,9 @@ public class WidgetPropertyTable extends AbstractPropertyTable {
setModel(model);
this.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
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();
}

Loading…
Cancel
Save