title: Set Text Field's Disabled Background Color
body: <p>I have a textfield which I set <code>seteditable(false)</code> and <code>setEnabled(false)</code> but the problem is that in this case the background color of it changes to something and I cannot change it back.
  <img src="https://i.stack.imgur.com/CZGza.png" alt="enter image description here" /></p>
  <p>See, the background color of the app and the background color of the 2 disabled text fields are different
  Question: How to change the background color of a disabled and non-editable text field.</p>
  <p><code>t5</code> is the right text field (in the photo). What I have tried: Putting <code>t5.setBackground(Color....)</code>, <code>t5.setBackground(UIManager.getColor(&quot;t5.background&quot;))</code>, <code>t5.setBackground( null );</code> at the end of the constructor. I have even read <a href="https://stackoverflow.com/questions/15693497/background-color-of-jtextfield-doesnt-become-grayed-out-when-disabled-after-t">Background color of JTextField doesn&#39;t become &#39;grayed out&#39; when disabled after the background color had been changed before</a> and <a href="https://stackoverflow.com/questions/6114762/jtextfield-background-color-on-enable-disable">JTextField background color on enable/disable</a> but could not figure out a way to do what I want. I am using Netbeans 8 (Nimbus Theme). If I set the LaF to Windows, then the colors are same but how to make the colors same in Nimbus itself?</p>