title: Need to disable buttons depending on if a radio button is selected
body: <p>I'm trying to program a fully functioning Windows 7 calculator in programmer mode. Right now, I'm just working on getting the buttons to work properly. So I want for the buttons that will be used for hexa to be disabled until the radio button for hex is selected. So the A-F buttons will be disabled while in dec or Bint mode until it is selected otherwise. </p>
  
  <p>Here is the button A:</p>
  
  <pre><code>JButton button_A = new JButton("A");
  button_A.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
          button_A.setEnabled(false);
          hexDisable();
          textField.setText(textField.getText() + "A");
      }
  });
  </code></pre>
  
  <p>Here is the radio button:</p>
  
  <pre><code>JRadioButton rButton_Hex = new JRadioButton("Hex");
  rButton_Hex.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
          hexDisable();
      }
  });
  rButton_Hex.setBounds(9, 218, 54, 23);
  contentPane.add(rButton_Hex);
  Group1.add(rButton_Hex);
  </code></pre>
  
  <p>This is the method that will enable and disable the appropriate buttons. </p>
  
  <pre><code>public void hexDisable(){
      button_A.setEnabled(true);
  }
  </code></pre>
  
  <p>I'm extremely new to using GUIs in Java.</p>