formatiing a String !!
Now then!
I am new to all this JAVA programming so please be gentle with me!!
I am trying to do something what I think should be easy but I am having huge difficulty with it and I don抰 know where to look now!
I am trying to combine several string and text fields into one text field, move the resulting text field into a vector, then display the vector in a list box.
All of this is working, however, the way it is displayed the records appear like:
1,ABC,123.
12,DEFG,5678
I have been asked to display them as
1 ,ABC,123
12,DEFG,5678
I have tried \r, \n, \r\n in the string and none of it seams to work.
the way the fields are being populated from my SQL statement is below:
TextField supplierNumberText = new TextField(6);
String supplierNumberParm = rs.getString(1);
String supplierNameParm = rs.getString(2);
String supplierAddressParm = rs.getString(3);
String supplierPostCodeParm = rs.getString(4);
supplierNumberText.setText(supplierNumberParm);
String supplierInfo = supplierNumberText.getText()+", "+supplierNameParm+ ", "+supplierAddressParm+ ", "+supplierPosTCodeParm;
supplierNameVector.addElement(supplierInfo);
Any useful advice, (or should that be constructive!!) would be most appreciated!

