public JRadioButton getWildCardsButton() { if (wildCardsButton == null) { wildCardsButton = new JRadioButton(); wildCardsButton.setText("Wild Cards"); wildCardsButton.setMnemonic('i'); wildCardsButton.setDisplayedMnemonicIndex(1); wildCardsButton.addActionListener(this); } return wildCardsButton; }
public JRadioButton getRegexButton() { if (regexButton == null) { regexButton = new JRadioButton(); regexButton.setText("Regular Expressions"); regexButton.setMnemonic('x'); regexButton.setDisplayedMnemonicIndex(9); regexButton.addActionListener(this); } return regexButton; }
public JRadioButton getLiteralButton() { if (literalButton == null) { literalButton = new JRadioButton(); literalButton.setText("Literal"); literalButton.setMnemonic('L'); literalButton.setSelected(true); literalButton.addActionListener(this); } return literalButton; }