ok so i fixed the error problem
instead of having the if statements with the || operator i just made multiple if statements:
if (e.getItemSelectable==watery.clam)
{
}
else if...
Type: Posts; User: that_guy
ok so i fixed the error problem
instead of having the if statements with the || operator i just made multiple if statements:
if (e.getItemSelectable==watery.clam)
{
}
else if...
ok so i added the following code after i added them to the applet in the init() method in the DinnerMenu class:
watery.clam.addItemListener(this);
watery.veg.addItemListener(this);...
ok heres what i dont get...
i set up the checkboxes as itemlisteners in the calling program as:
watery.clam.addItemListener(this);
where watery is the object and clam is the checkbox...
ok so heress my code... it looks the way its supposed to (except that it shows 1 zero instead of 2 while total is 0 so any additional help with that is appreciated)... it compiles correctly... but...