Formatting text within grid layout

Is it possible to format the placement of text in a grid layout?

Here is the code:

//Define Labels

JLabel amountLabel =new JLabel("Principle:$");

JLabel rateLabel =new JLabel("Please choose your Terms from the menu");

JLabel paymentLabel =new JLabel("Monthly Payment:");

JLabel emptyLabel =new JLabel();

JLabel emptyLabel1 =new JLabel();

What I am trying to do is to get "principle" and "Monthly Payment" over to the right side of the grid rather than on the left side.

I've tried using "\t" and that didn't work.

[854 byte] By [Bob123a] at [2007-10-2 7:58:50]
# 1
Read the API documentation for JLabel class closely.
hiwaa at 2007-7-16 21:49:57 > top of Java-index,Desktop,Core GUI APIs...
# 2

> Read the API documentation for JLabel class closely.

Thanks for the help. I don't know how many times I've asked the OP to read the API or the tutorial "before" posting a question.

How many times does the OP need to be told that you can't program if you don't have access to the API for reference. There are only 12 setXXX methods in the JLabel class. How long does it take to read about them instead of waiting hours hoping that someone will give you a direct answer?

camickra at 2007-7-16 21:49:57 > top of Java-index,Desktop,Core GUI APIs...
# 3
Are you talking about component orientation? I've already read that and it deals with the flow of characters rather than where they are laid out in the JLabel
Bob123a at 2007-7-16 21:49:58 > top of Java-index,Desktop,Core GUI APIs...
# 4
Forget that... I just found it. Thanks for the tasking.
Bob123a at 2007-7-16 21:49:58 > top of Java-index,Desktop,Core GUI APIs...