After many sleepless nights, I came up with a solution:
greenPanel.setLayout(new BorderLayout());
greenPanel.add(new JLabel("test"));
MiGPanel.add(greenPanel, "pos 0 0 33% 100%");
JPanel yellowPanel = new JPanel();
yellowPanel.setBackground(Color.yellow);
MiGPanel.add(yellowPanel, "pos 33% 0 66% 100%");
JPanel bluePanel = new JPanel();
bluePanel.setBackground(Color.blue);
MiGPanel.add(bluePanel, "pos 66% 0 100% 100%");
Absolute positioned elements should not use with and height attributes, instead you should use the "pos x y x1 y1" method.