Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help with JList formatting

807599Mar 3 2007 — edited Mar 3 2007
Hello. :o)

I am a student taking beginner Java class. I have created a JList that has items such as

Blueberry Muffins 0.85
Toast 2.00
Coffee 0.90
Vanilla Ice Cream 2.90

etc

I can't seem to be able to line it up so that prices are all justified right. I don't know if I am using the right words here. But I would like the last digit in the price to line up with each other. I have tried spacing it using space bar, but won't line up. I can't tab it, it just ignores the tab.

Is there a way of doing this? I have looked into my textbook, but I cannot find anything.

Thank You kindly.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2007
Added on Mar 3 2007
5 comments
698 views