GT-2698 - convert JRadioButton to GRadioButton

This commit is contained in:
dev747368
2019-04-16 18:21:28 -04:00
parent 3c0484cae3
commit d7410690ff
54 changed files with 529 additions and 344 deletions

View File

@@ -400,10 +400,9 @@ public class VTMarkupItemsTableProvider extends ComponentProviderAdapter
JComponent nameFilterPanel = createTextFilterPanel();
parentPanel.add(nameFilterPanel, BorderLayout.CENTER);
ancillaryFilterButton = new JButton();
ancillaryFilterButton = new JButton(FILTER_ICON);
ancillaryFilterButton.addActionListener(
e -> tool.showDialog(ancillaryFilterDialog, component));
ancillaryFilterButton.setIcon(FILTER_ICON);
ancillaryFilterButton.setToolTipText("Filters Dialog");
parentPanel.add(ancillaryFilterButton, BorderLayout.EAST);

View File

@@ -28,6 +28,7 @@ import javax.swing.border.TitledBorder;
import docking.DockingWindowManager;
import docking.help.HelpService;
import docking.widgets.button.GRadioButton;
import docking.widgets.checkbox.GCheckBox;
import docking.widgets.combobox.GComboBox;
import docking.widgets.label.GDLabel;
@@ -843,7 +844,7 @@ public class ApplyMarkupPropertyEditor implements OptionsEditor {
}
private JRadioButton createRadioButton(final String optionName) {
final JRadioButton applyRadioButton = new JRadioButton(optionName);
final GRadioButton applyRadioButton = new GRadioButton(optionName);
applyRadioButton.addActionListener(e -> changesMade(true));
return applyRadioButton;

View File

@@ -352,10 +352,9 @@ public class VTMatchTableProvider extends ComponentProviderAdapter
JComponent lengthFilterPanel = createLengthFilterPanel();
innerPanel.add(lengthFilterPanel);
ancillaryFilterButton = new JButton();
ancillaryFilterButton = new JButton(UNFILTERED_ICON);
ancillaryFilterButton.addActionListener(
e -> tool.showDialog(ancillaryFilterDialog, component));
ancillaryFilterButton.setIcon(UNFILTERED_ICON);
ancillaryFilterButton.setToolTipText("Filters Dialog");
HelpService helpService = DockingWindowManager.getHelpService();
HelpLocation filterHelpLocation =

View File

@@ -25,6 +25,7 @@ import javax.swing.*;
import javax.swing.event.*;
import docking.DockingUtils;
import docking.widgets.button.GRadioButton;
import docking.widgets.label.GLabel;
import ghidra.framework.plugintool.PluginTool;
import ghidra.program.model.address.*;
@@ -119,9 +120,9 @@ public class ChooseAddressSetEditorPanel extends JPanel {
JPanel chooseSourcePanel = new JPanel(new VerticalLayout(5));
ButtonGroup originGroup = new ButtonGroup();
entireProgramButton = new JRadioButton("Use Entire " + name + " Program", false);
toolSelectionButton = new JRadioButton("Use " + name + " Tool's Selection", false);
myRangesButton = new JRadioButton("Specify My Own Address Ranges", false);
entireProgramButton = new GRadioButton("Use Entire " + name + " Program", false);
toolSelectionButton = new GRadioButton("Use " + name + " Tool's Selection", false);
myRangesButton = new GRadioButton("Specify My Own Address Ranges", false);
originGroup.add(entireProgramButton);
originGroup.add(toolSelectionButton);
originGroup.add(myRangesButton);