File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/main/java/com/thedeanda/ajaxproxy/ui Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -383,14 +383,18 @@ private void showCard(String cardName) {
383
383
}
384
384
385
385
private void selectedCard (String cardName , JToggleButton selectedToolbarButton ) {
386
- serverToolbarButton .setSelected (false );
387
- requestToolbarButton .setSelected (false );
388
- loggerToolbarButton .setSelected (false );
389
- variablesToolbarButton .setSelected (false );
386
+ if (selectedToolbarButton != serverToolbarButton )
387
+ serverToolbarButton .setSelected (false );
388
+ if (selectedToolbarButton != requestToolbarButton )
389
+ requestToolbarButton .setSelected (false );
390
+ if (selectedToolbarButton != loggerToolbarButton )
391
+ loggerToolbarButton .setSelected (false );
392
+ if (selectedToolbarButton != variablesToolbarButton )
393
+ variablesToolbarButton .setSelected (false );
390
394
391
395
cardLayout .show (cardPanel , cardName );
392
396
393
- selectedToolbarButton .setSelected (true );
397
+ // selectedToolbarButton.setSelected(true);
394
398
395
399
}
396
400
}
You can’t perform that action at this time.
0 commit comments