Layout Help!

I have a JFrame that I have set up that looks like this:

and I want the label on the right to be centered up and down in the space marked by the arrow.
Here is how I have it laid out:

Inside the lower JPane with the parts labeled BorderLayout.WEST and BorderLayout.EAST I have panels with FlowLayouts modified to justify left or right. Now how can I get that Label to center vertically?

You just need to use GridLayout:


import java.awt.*;
import javax.swing.*;

public class Test extends JFrame {

    public Test() {
        Container c = getContentPane();
        JPanel p = new JPanel(new BorderLayout());
        JPanel left = new JPanel();
        JPanel right = new JPanel(new GridLayout());
        right.setBorder(BorderFactory.createLineBorder(Color.BLACK));
        c.add(new JScrollPane(new JTextArea()), BorderLayout.CENTER);
        c.add(p, BorderLayout.SOUTH);
        p.add(left, BorderLayout.WEST);
        p.add(right, BorderLayout.EAST);
        left.add(new JButton("One"));
        left.add(new JButton("Two"));
        JLabel lab = new JLabel("Label");
        right.add(lab);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        pack();
        show();
    }
    public static void main(String args[]) {
        Test t = new Test();
    }
}

Perfect!! Thank you!