java – Why is my textfield still editable even if i set enabled and editable to false?

I want the textfield to be uneditable when i click the radio button again. Why is it that even if I set enabled and editable to false, it is still editable? Here is my code

int clickCount = 0;
        ButtonGroup radioGroup = new javax.swing.ButtonGroup();
        JRadioButton r_amount  = new javax.swing.JRadioButton();

if (++clickCount % 2 == 0) {

            radioGroup.clearSelection();
            r_percentage.setSelected(false);
            r_amount.setSelected(false);         
            txt_d2.setEnabled(false);
            txt_d2.setEditable(false);
            txt_d2.setText("");
           
         
        }else{
             
            r_amount.setSelected(true);
            r_percentage.setSelected(false);
            txt_d1.setEnabled(false);
            txt_d2.setEnabled(true);
            txt_d2.setEditable(true);
            txt_d1.setText("");