title: How to Add a scroll bar to a JTabbedPane. Basically i have an admin panel which is attached further on a frame as a TAB(JTabbedPane)
body: <p>//here admin is a panel located on a frame as 2nd TAB on which i want to add a Scroll bar. </p>
  
  <pre><code>import java.awt.Color;
  import java.awt.Image;
  
  import javax.swing.JLabel;
  import javax.swing.JPanel;
  import javax.swing.JScrollBar;
  import javax.swing.JScrollPane;
  public class admin extends JPanel
  {
      private static final long serialVersionUID = 1L;
   JLabel lb;
   Image image;
   JScrollPane js;
   public admin()   //admin panel is invoked by a frame. 
   {
  
      setBackground(Color.white);
  
      add(new admsign()); // admsign is another panel located on admin which is a simple form. 
  
  
  // if you want me to post the code for admsign() then tell me.
  
  
  
  
   }
  }
  </code></pre>
  
  <p>// i think it is unnecessary. </p>