|
|
|
@ -58,7 +58,7 @@ public class MyApplication {
|
|
|
|
|
paramPanel.add(zongPreJtf, gbc);
|
|
|
|
|
|
|
|
|
|
JPanel sizePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
|
|
|
|
|
sizePanel.add(new JLabel("A3大小尺寸 长:"));
|
|
|
|
|
sizePanel.add(new JLabel("A3大小尺寸(厘米) 长:"));
|
|
|
|
|
JTextField a3LongJtf = new JTextField(5);
|
|
|
|
|
sizePanel.add(a3LongJtf);
|
|
|
|
|
sizePanel.add(new JLabel("宽:"));
|
|
|
|
@ -225,7 +225,7 @@ public class MyApplication {
|
|
|
|
|
// 执行长时间运行的业务操作
|
|
|
|
|
|
|
|
|
|
// 模拟耗时操作
|
|
|
|
|
String saveUrl = savePathField.getText();
|
|
|
|
|
String saveUrl = savePathField.getText()+"/";
|
|
|
|
|
String readUrl = folderField.getText();
|
|
|
|
|
new FenpanService().fenpan(saveUrl,readUrl);
|
|
|
|
|
|
|
|
|
@ -295,13 +295,13 @@ public class MyApplication {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
leftIndexGbc.gridx = 0;
|
|
|
|
|
leftIndexGbc.gridy = 1;
|
|
|
|
|
leftIndexGbc.anchor = GridBagConstraints.WEST;
|
|
|
|
|
leftIndexPanel.add(new JLabel("图片dpi:"), leftIndexGbc);
|
|
|
|
|
leftIndexGbc.gridx = 1;
|
|
|
|
|
JTextField dpiField = new JTextField(5);
|
|
|
|
|
leftIndexPanel.add(dpiField, leftIndexGbc);
|
|
|
|
|
// leftIndexGbc.gridx = 0;
|
|
|
|
|
// leftIndexGbc.gridy = 1;
|
|
|
|
|
// leftIndexGbc.anchor = GridBagConstraints.WEST;
|
|
|
|
|
// leftIndexPanel.add(new JLabel("图片dpi:"), leftIndexGbc);
|
|
|
|
|
// leftIndexGbc.gridx = 1;
|
|
|
|
|
// JTextField dpiField = new JTextField(5);
|
|
|
|
|
// leftIndexPanel.add(dpiField, leftIndexGbc);
|
|
|
|
|
|
|
|
|
|
// ... 其他标签左对齐,与前面的代码相同 ...
|
|
|
|
|
|
|
|
|
|