Re: Writing to a file and a TextArea



zhah99 wrote:
Hello there! The application I am building will calculate the total sales for
any number of salesmen. The application will allow the salesman to enter
their name, the product (numbered 1-5 in a JComboBox) they sold as well as
the amount of products they sold. They would then hit the Salesman Entry Done
button to tell the application that the salesman is done entering their
information. Once all of the salesmen have entered their information they can
hit Grand Total and the grand total of those sales will display in the text
area.

[snip code]


public Salesman(String name, double sales)
{
setName(name);
setSales(0);
}

[snip code]

Change this method to ..

public Salesman(String name, double sales)
{
setName(name);
setSales(sales);
}

--

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.