the xxxxModel represent the JList Models, which will add the field to the Jlist
Item is a class i made in which get and set methods for 7 variables are defined ----**************----------- Scanner scan = new Scanner(in2); scan.useDelimiter(",");
if the record is of fixed width (seven elements, then a newline symbol in your example), then just read seven elements and add them in the corresponding list and then drop the 8th element and start all over.
perhaps adding a scan.next() as last statement in the loop is good enough ?
pascal
Post by:autobot
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, that will fit in a stocking