Skip to content

Commit dc2b07b

Browse files
committed
🚧 Added method createBorder.
- set height to 35
1 parent df9d529 commit dc2b07b

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

  • dev.skidfuscator.client.standalone/src/main/java/dev/skidfuscator/obfuscator/gui

dev.skidfuscator.client.standalone/src/main/java/dev/skidfuscator/obfuscator/gui/ConfigPanel.java

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import dev.skidfuscator.obfuscator.util.JdkDownloader;
1212
import dev.skidfuscator.obfuscator.util.Observable;
1313

14+
import javax.swing.border.CompoundBorder;
1415
import javax.swing.border.EtchedBorder;
1516
import javax.swing.event.DocumentEvent;
1617
import javax.swing.event.DocumentListener;
@@ -38,16 +39,7 @@ public class ConfigPanel extends JPanel implements SkidPanel {
3839
public ConfigPanel() {
3940
setLayout(new GridBagLayout());
4041
// Create compound border with titled border and empty border for padding
41-
setBorder(BorderFactory.createCompoundBorder(
42-
BorderFactory.createTitledBorder(
43-
BorderFactory.createEtchedBorder(EtchedBorder.RAISED),
44-
"Configuration",
45-
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
46-
javax.swing.border.TitledBorder.DEFAULT_POSITION,
47-
new Font(SEGOE_UI, Font.BOLD, 16)
48-
),
49-
BorderFactory.createEmptyBorder(20, 0, 10, 0)
50-
));
42+
setBorder(createBorder());
5143
// Input file
5244
int currentRow = 0;
5345
addConfigRow(currentRow++, "Input JAR:", inputField, createInputValidation(), false);
@@ -62,6 +54,19 @@ public ConfigPanel() {
6254
setupAutoSave();
6355
}
6456

57+
private CompoundBorder createBorder() {
58+
return BorderFactory.createCompoundBorder(
59+
BorderFactory.createTitledBorder(
60+
BorderFactory.createEtchedBorder(EtchedBorder.RAISED),
61+
"Configuration",
62+
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
63+
javax.swing.border.TitledBorder.DEFAULT_POSITION,
64+
new Font(SEGOE_UI, Font.BOLD, 16)
65+
),
66+
BorderFactory.createEmptyBorder(20, 0, 10, 0)
67+
);
68+
}
69+
6570
/**
6671
* Crea las constraints base con configuración común
6772
*/
@@ -126,7 +131,7 @@ private void addConfigRow(int row, String labelText, JTextField field,
126131

127132
// Button panel
128133
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 0));
129-
buttonPanel.setPreferredSize(new Dimension(BUTTON_PANEL_WIDTH, 30));
134+
buttonPanel.setPreferredSize(new Dimension(BUTTON_PANEL_WIDTH, 35));
130135

131136
JButton browseButton = createBrowseButton(field, isDirectory);
132137
JLabel checkLabel = new JLabel("✗");
@@ -159,7 +164,7 @@ private void addRuntimeRow(int row) {
159164

160165
// Button panel with install button
161166
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 0));
162-
buttonPanel.setPreferredSize(new Dimension(BUTTON_PANEL_WIDTH, 30));
167+
buttonPanel.setPreferredSize(new Dimension(BUTTON_PANEL_WIDTH, 35));
163168

164169
JLabel downloadCheck = new JLabel("✗");
165170
downloadCheck.setForeground(new Color(255, 65, 54));

0 commit comments

Comments
 (0)