I try to do this:

![Mokump](https://i.stack.imgur.com/LKfY5.png)

but if I use GridLayout, the heigth is bery small

```
PanelPost.setLayout(new GridLayout(20, 1, 0, 12));
for(int y=0;y<15;y++){
            JPanel p=new JPanel();
            p.setBackground(Color.RED);
            p.setLayout(null);
            p.setSize(PanelPost.getWidth(),150);
            PanelPost.add(p);

        }

```

![GridLayout](https://i.stack.imgur.com/KYSZQ.png)
if I use FlowLayout, only displays some points 
With BoxLayout 

```
setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));

```

the panels are in the center and the width and height are not respected
and if i use setLayout(null) the scroll does not work then 
What is the best way to do this? :C