I'm tring to centrare one JLabel in a GridLayout.
For Example
JPanel p=new JPanel();
p.setLayout(new GridLayout(0,3));
p.add(new JLabel("a"));
p.add(new JLabel("b"));
p.add(new JLabel("c"));
The problem is that the JLabel are in the left part and not in the center part. Anyone can help me?