title: JSlider fitting the width of a JPanel
body: <p>Is there any way to make a <code>JSlider</code> to fit the width of a <code>JPanel</code> when it resizes? I'm now using. <code>JFrame</code>'s <code>pack()</code> method and when I resize the panel in which the slider is contained, the slider doesn't change its size.</p>
  
  <p>Thanks in advance!</p>