I need some help with the placement of this component. What I need is to place this panel to fully fit in the JFrame. Also, when the JFrame is resized this panel will also resize, so does the JList. This panel is added to a spiltpane, but it only appears in the center and not fully occupy the allocated pane.
The panel is probably laying out fine. It's the JList that might be visually confusing as to what the component is doing. Try setting a layout of BorderLayout on the JPanel (P) and adding the scroller to it with BorderLayout.CENTER.