@@ -205,8 +205,8 @@ public CommandObject getCommandObject() {
205
205
panel1 .add (label2 , gbc );
206
206
final JLabel label3 = new JLabel ();
207
207
label3 .setText ("Command:" );
208
- label3 .setDisplayedMnemonic ('C ' );
209
- label3 .setDisplayedMnemonicIndex (0 );
208
+ label3 .setDisplayedMnemonic ('M ' );
209
+ label3 .setDisplayedMnemonicIndex (2 );
210
210
gbc = new GridBagConstraints ();
211
211
gbc .gridx = 0 ;
212
212
gbc .gridy = 1 ;
@@ -238,8 +238,8 @@ public CommandObject getCommandObject() {
238
238
panel1 .add (label4 , gbc );
239
239
chkRunInTerminal = new JRadioButton ();
240
240
chkRunInTerminal .setText ("Run in terminal" );
241
- chkRunInTerminal .setMnemonic ('R ' );
242
- chkRunInTerminal .setDisplayedMnemonicIndex (0 );
241
+ chkRunInTerminal .setMnemonic ('T ' );
242
+ chkRunInTerminal .setDisplayedMnemonicIndex (7 );
243
243
gbc = new GridBagConstraints ();
244
244
gbc .gridx = 1 ;
245
245
gbc .gridy = 4 ;
@@ -308,6 +308,9 @@ public CommandObject getCommandObject() {
308
308
panel3 .add (btnOk , new GridConstraints (0 , 1 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
309
309
final Spacer spacer1 = new Spacer ();
310
310
panel3 .add (spacer1 , new GridConstraints (0 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , 1 , null , null , null , 0 , false ));
311
+ label2 .setLabelFor (txtName );
312
+ label3 .setLabelFor (txtCommand );
313
+ label4 .setLabelFor (txtGroup );
311
314
ButtonGroup buttonGroup ;
312
315
buttonGroup = new ButtonGroup ();
313
316
buttonGroup .add (chkRunInTerminal );
0 commit comments