I need to add items in a JtextArea and with its Description and a Price but i have a problem in aligning it. i want an output of this is like
Description Price
Coffe $50.00
Bread $30.00
Egg $10.00
but my Program makes like
Description Price
Coffe $50
Bread $30
Egg $20
Anyone pls help me how to Align it?....
txtArea.append( "\n" + desc+" " + price + " " + quanty);
Font.MONOSPACED
, and then useString.format(...)
not tabs.