Browse Source

formatter

final/10.0
Wim.Zhai 6 years ago
parent
commit
e42e066b57
  1. 7
      designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedChartReportDataPane.java
  2. 2
      designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedStylePane.java

7
designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedChartReportDataPane.java

@ -11,7 +11,8 @@ import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPa
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import java.awt.*;
import java.awt.BorderLayout;
import java.awt.Component;
import java.util.Arrays;
/**
@ -31,9 +32,7 @@ public abstract class AbstractExtendedChartReportDataPane<T extends AbstractData
Component[][] components = new Component[len][2];
for (int i = 0; i < len; i++) {
Component formulaPane = formulaPanes[i];
formulaPane.setPreferredSize(new Dimension(100, 20));
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPane};
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPanes[i]};
}
double p = TableLayout.PREFERRED;

2
designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedStylePane.java

@ -34,7 +34,7 @@ public abstract class AbstractExtendedStylePane<T extends AbstractChart> extends
public AbstractExtendedStylePane() {
}
public AbstractExtendedStylePane(AttributeChangeListener listener) {
public AbstractExtendedStylePane(AttributeChangeListener listener) {
this.listener = listener;
}

Loading…
Cancel
Save