|
38 | 38 | import org.nesvilab.utils.swing.MigUtils;
|
39 | 39 | import org.nesvilab.utils.swing.UiCheck;
|
40 | 40 | import org.nesvilab.utils.swing.UiCombo;
|
| 41 | +import org.nesvilab.utils.swing.UiRadio; |
41 | 42 | import org.nesvilab.utils.swing.UiSpinnerDouble;
|
42 | 43 | import org.nesvilab.utils.swing.UiSpinnerInt;
|
43 | 44 | import org.nesvilab.utils.swing.UiText;
|
|
78 | 79 | import javax.imageio.ImageIO;
|
79 | 80 | import javax.swing.AbstractAction;
|
80 | 81 | import javax.swing.Action;
|
| 82 | +import javax.swing.ButtonGroup; |
81 | 83 | import javax.swing.ImageIcon;
|
82 | 84 | import javax.swing.JComponent;
|
83 | 85 | import javax.swing.JFileChooser;
|
@@ -520,13 +522,16 @@ private JPanel[] createPanelOptsAdvancedGeneral() {
|
520 | 522 | "not-shown", uiCheckAllowUnlabeled,
|
521 | 523 | "<html>Allow peptides with unlabeled n-term (i.e. no TMT/iTRAQ label and no Acetyl at n-terminus)");
|
522 | 524 |
|
523 |
| - UiCheck uiCheckMs1Int = UiCheck.of("Use MS1 intensity", true); |
524 |
| - FormEntry feMs1Int = fe(TmtiConfProps.PROP_ms1_int, |
525 |
| - "not-shown", uiCheckMs1Int, |
526 |
| - "<html>Use MS1 precursor ion intensity (if true) or MS2 summed TMT <br/>\n" |
527 |
| - + "reporter ion intensity (if false) as part of the reference <br/>\n" |
528 |
| - + "sample abundance estimation"); |
529 |
| - |
| 525 | + JLabel labelUse = new JLabel("Use "); |
| 526 | + UiRadio uiRadioMs1 = new UiRadio("MS1", null, true); |
| 527 | + UiRadio uiRadioMs2 = new UiRadio("MS2", null, false); |
| 528 | + uiRadioMs1.setToolTipText("Use MS1 precursor ion intensity in ratios to abundances conversion"); |
| 529 | + uiRadioMs2.setToolTipText("Use MS2 summed TMT reporter ion intensity in ratios to abundances conversion"); |
| 530 | + ButtonGroup bgMs = new ButtonGroup(); |
| 531 | + bgMs.add(uiRadioMs1); |
| 532 | + bgMs.add(uiRadioMs2); |
| 533 | + uiRadioMs1.setName(TmtiConfProps.PROP_ms1_int); |
| 534 | + |
530 | 535 | UiCheck uiCheckPrintRef = UiCheck.of("Print reference intensity", false);
|
531 | 536 | FormEntry fePrintRefInt = fe(TmtiConfProps.PROP_print_RefInt,
|
532 | 537 | "not-shown", uiCheckPrintRef,
|
@@ -579,7 +584,9 @@ private JPanel[] createPanelOptsAdvancedGeneral() {
|
579 | 584 |
|
580 | 585 | JPanel p2 = mu.newPanel(mu.lcNoInsetsTopBottom());
|
581 | 586 | mu.border(p2, "Ratio to Abundance conversion");
|
582 |
| - mu.add(p2, feMs1Int.comp); |
| 587 | + mu.add(p2, labelUse).split(3); |
| 588 | + mu.add(p2, uiRadioMs1); |
| 589 | + mu.add(p2, uiRadioMs2).wrap(); |
583 | 590 | mu.add(p2, fePrintRefInt.comp);
|
584 | 591 | mu.add(p2, feLog2Transformed.comp).spanX().wrap();
|
585 | 592 |
|
|
0 commit comments