fixed import button in settings
This commit is contained in:
parent
bed1268a9d
commit
24983276ac
@ -12,6 +12,7 @@ import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Insets;
|
||||
import java.awt.Window;
|
||||
import java.io.File;
|
||||
@ -838,18 +839,14 @@ public class SettingsDialog extends JDialog {
|
||||
|
||||
gbc.gridx = 0;
|
||||
gbc.gridy++;
|
||||
gbc.gridwidth = 1;
|
||||
gbc.weightx = 0;
|
||||
gbc.fill = GridBagConstraints.NONE;
|
||||
gbc.gridwidth = 3;
|
||||
gbc.weightx = 1.0;
|
||||
gbc.fill = GridBagConstraints.HORIZONTAL;
|
||||
gbc.anchor = GridBagConstraints.WEST;
|
||||
|
||||
JPanel actionBtnPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
|
||||
JPanel actionBtnPanel = new JPanel(new GridLayout(1, 2, 6, 0));
|
||||
JButton exportBtn = new JButton("Export");
|
||||
JButton importBtn = new JButton("Import");
|
||||
|
||||
Dimension actionSize = new Dimension(100, exportBtn.getPreferredSize().height);
|
||||
exportBtn.setPreferredSize(actionSize);
|
||||
importBtn.setPreferredSize(actionSize);
|
||||
|
||||
exportBtn.addActionListener(e -> {
|
||||
String path = pathField.getText();
|
||||
@ -896,7 +893,6 @@ public class SettingsDialog extends JDialog {
|
||||
});
|
||||
|
||||
actionBtnPanel.add(exportBtn);
|
||||
actionBtnPanel.add(Box.createHorizontalStrut(10));
|
||||
actionBtnPanel.add(importBtn);
|
||||
p.add(actionBtnPanel, gbc);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user