excelent, thanks for that code mate! much apriciated,
ill try adapting it into my program with the joptionpane rather then system.out.plrintln.
looks like what i am after.....even though i might not understand it all, but ill have a play with it and figure it out hopefully
thanks a ton, much apriciated