title: How can i change jtabbedpane selected tab background color
body: <p>I tried most of the things to do this,using helps from this site,there have more related post about this question,but any of that questions not helped to me.</p>
  
  <p><img src="https://i.stack.imgur.com/AgJQk.png" alt="enter image description here"></p>
  
  <p>I need to change <code>jtabbedpane</code> selected tab background color.i used this code to that,but nothing will happen</p>
  
  <pre><code>import java.awt.Color;
  import javax.swing.UIManager;
  
  public class TestTabcolor extends javax.swing.JFrame {
  
  
      public TestTabcolor() {
          initComponents();
          UIManager.put("TabbedPane.selected", Color.Red);
      }
  
      public static void main(String args[]) {
  
          java.awt.EventQueue.invokeLater(new Runnable() {
              public void run() {
                  new TestTabcolor().setVisible(true);
              }
          });
      }
  
  }
  </code></pre>
  
  <p>can anyone tell me how can i change selected tab color :) Thank you</p>
  
  <p><strong>Update:</strong>
  please don't set this question as duplicated,because that related questions not solved my problem</p>