View Single Post
Apr 9th, 2004
0

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

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
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Defiledgrave is offline Offline
5 posts
since Apr 2004