@@ -102,8 +102,12 @@ public ConfigPanel() {
102102
103103 // Input file
104104 gbc .gridx = 0 ; gbc .gridy = 0 ;
105+ gbc .weightx = 0.0 ;
106+ gbc .fill = GridBagConstraints .NONE ;
105107 add (new JLabel ("Input JAR:" ), gbc );
106108 gbc .gridx = 1 ;
109+ gbc .weightx = 1.0 ; // IMPORTANTE: el campo se expande
110+ gbc .fill = GridBagConstraints .HORIZONTAL ; // IMPORTANTE: llena horizontal
107111 inputField = new JTextField (30 );
108112 JLabel inputCheck = new JLabel ("✗" );
109113 inputCheck .setForeground (new Color (255 , 65 , 54 ));
@@ -149,8 +153,12 @@ private void updateCheck() {
149153
150154 // Output file
151155 gbc .gridx = 0 ; gbc .gridy = 1 ;
156+ gbc .weightx = 0.0 ;
157+ gbc .fill = GridBagConstraints .NONE ;
152158 add (new JLabel ("Output JAR:" ), gbc );
153159 gbc .gridx = 1 ;
160+ gbc .weightx = 1.0 ; // IMPORTANTE: el campo se expande
161+ gbc .fill = GridBagConstraints .HORIZONTAL ; // IMPORTANTE
154162 outputField = new JTextField (30 );
155163 JLabel outputCheck = new JLabel ("✗" );
156164 outputCheck .setForeground (new Color (255 , 65 , 54 ));
@@ -228,8 +236,12 @@ private void updateCheck() {
228236
229237 // Libraries
230238 gbc .gridx = 0 ; gbc .gridy = 2 ;
239+ gbc .weightx = 0.0 ;
240+ gbc .fill = GridBagConstraints .NONE ;
231241 add (new JLabel ("Libraries:" ), gbc );
232242 gbc .gridx = 1 ;
243+ gbc .weightx = 1.0 ; // IMPORTANTE: el campo se expande
244+ gbc .fill = GridBagConstraints .HORIZONTAL ; // IMPORTANTE
233245 libsField = new JTextField (30 );
234246 JLabel libsCheck = new JLabel ("✗" );
235247 libsCheck .setForeground (new Color (255 , 65 , 54 ));
@@ -270,8 +282,12 @@ private void updateCheck() {
270282
271283 // Runtime
272284 gbc .gridx = 0 ; gbc .gridy = 3 ;
285+ gbc .weightx = 0.0 ;
286+ gbc .fill = GridBagConstraints .NONE ;
273287 add (new JLabel ("Runtime:" ), gbc );
274288 gbc .gridx = 1 ;
289+ gbc .weightx = 1.0 ; // IMPORTANTE: el campo se expande
290+ gbc .fill = GridBagConstraints .HORIZONTAL ; // IMPORTANTE
275291 runtimeField = new JTextField (30 );
276292
277293 // Check if JDK was previously downloaded
0 commit comments