
March 18th, 2008, 02:11 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Posts: 1
Time spent in forums: 31 m 10 sec
Reputation Power: 0
|
|
how do I display everything on a seperate line?
This is the code I have for all my attributes.
I need them all to be on seperate lines.
myLabel = new JLabel ( String.format( "%s, %d\r\n, %s, $%.2f, $%.2f, $%.2f, $%.2f", Products[displayProduct].getproductName(),
Products[displayProduct].getproductNumber(), Products[displayProduct].getproductColor(),
Products[displayProduct].getproductUnits(), Products[displayProduct].getproductPrice(),
Products[displayProduct].getcalculateUnits(), Products[displayProduct].getrestockFee()) );
I would like it to look like this:
Product name:
Product Number:
Product Color:
Product Units:
Product Price
Product total value:
Value w/ restocking fee:
anyhow, any help would be great.
|