View Single Post
Join Date: Apr 2004
Posts: 5
Reputation: Defiledgrave is an unknown quantity at this point 
Solved Threads: 0
Defiledgrave Defiledgrave is offline Offline
Newbie Poster

Re: Cannot figure out why I'm getting these Errors

 
0
  #7
Apr 9th, 2004
Alright well I took out the extra two lines so they aren't in there twice and instead of using the keyword this I applied them to thier respective areas....price and output but it still won't initialize I even tried it keeping it with the keyword this and still no progress.......

order.addActionListener((ActionListener)output);
food.addItemListener((ItemListener)price);


order.addActionListener((ActionListener)this);
food.addItemListener((ItemListener)this);

niether way works :-(

EDIT----ok well I worked on it some more and I got the applet to initalize when I commented out the second line so I had
order.addActionListener((ActionListener)output);
//food.addItemListener((ItemListener)price);
it initialized but didn't do anything when I entered a int into the text box and hit the order button

I don't know why it won't initalize with the second line
Reply With Quote