I have a small problem, i started a new GUI project using MigLayout and i love the layout but one thing i cannot figure out is how to remove all gaps between components them selves, components and frame and gap between cells and rows
Now MigLayout documentation describes using “gap 0px 0px” where gap [gapx] [gapy]
I did set gap to 0px on both axis but the gap is still there can someone help out here their forums are a ghost town : )
I want to remove the gap between JPanels and JFrame.. The red box and frame border, and
i want to remove the padding inside the red JPanel. My code is bellow:

package pe.view;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import net.miginfocom.swing.MigLayout;
public class UI_View extends JFrame
{
//Content panels
private JPanel left = new JPanel(new MigLayout());
private JPanel center = new JPanel(new MigLayout());
private JPanel right = new JPanel(new MigLayout());
//Content components
private DefaultListModel list_content = new DefaultListModel();
private JList list = new JList(list_content);
public UI_View()
{
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setMinimumSize(new Dimension(800, 600));
this.setTitle("PropriarityEnvoirment");
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
this.setLayout(new MigLayout("gap 0px 0px"));
String data[] = {"Hi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi","Hello","WiWi"};
for(int i = 0; i < data.length; i++)
{
list_content.addElement(data[i]);
}
left.add(list);
left.setBackground(Color.red);
center.setBackground(Color.green);
right.setBackground(Color.blue);
this.add(left, "growy, pushy");
this.add(center, "grow, pushx");
this.add(right, "grow, pushy");
}
}
To remove the space between a container in miglayout you can make use of
Docking, which is similar to BorderLayout.With docking your code will look something like this:
I hope this helps.