SIze of Jpanel inside JSplitPanel
<p>I was trying to add <code>JsplitPane</code> into my project.Requirement is i need to add two <code>Jpanel</code> inside right panel of <code>JSplitPane</code>.</p>

<p>so what i had done is first add <code>Jpanel</code> say it <code>panel1</code> to right panel and set <code>BoxLayout.Y-AXIS</code> and than add two panel inside <code>panel1</code>.</p>

<p>now in that two panel first panel have <code>BoxLayout</code> and i want the width of this panel to be of size of <code>panel1</code> but i am not able to do it.</p>

<p>anyone have idea how to do it?   </p>