|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
package com.fr.design.chart; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
import com.fr.base.chart.chartdata.CallbackEvent; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.design.chart.auto.AutoTypeCalculate; |
|
|
|
@ -48,7 +48,6 @@ import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.*; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author Bjorn |
|
|
|
@ -141,15 +140,15 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent
|
|
|
|
|
|
|
|
|
|
private JPanel createContentPane() { |
|
|
|
|
JPanel contentPane = new JPanel(new BorderLayout()); |
|
|
|
|
contentPane.add(column( |
|
|
|
|
row(10, |
|
|
|
|
flex().weight(0.1), |
|
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Table_Data") + ":")).weight(1), |
|
|
|
|
cell(tableNameComboBox).weight(3), |
|
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Data_Field") + ":")).weight(1.3), |
|
|
|
|
cell(dataFieldBox).weight(3), |
|
|
|
|
cell(refreshButton).weight(1.5), |
|
|
|
|
flex(3) |
|
|
|
|
contentPane.add(Layouts.column( |
|
|
|
|
Layouts.row(10, |
|
|
|
|
Layouts.flex().weight(0.1), |
|
|
|
|
Layouts.cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Table_Data") + ":")).weight(1), |
|
|
|
|
Layouts.cell(tableNameComboBox).weight(3), |
|
|
|
|
Layouts.cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Data_Field") + ":")).weight(1.3), |
|
|
|
|
Layouts.cell(dataFieldBox).weight(3), |
|
|
|
|
Layouts.cell(refreshButton).weight(1.5), |
|
|
|
|
Layouts.flex(3) |
|
|
|
|
).with(it -> it.setPreferredSize(new Dimension(super.getPreferredSize().width, FineUIScale.scale(tableNameComboBox.getPreferredSize().height)))) |
|
|
|
|
).getComponent()); |
|
|
|
|
contentPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|