View Single Post
Apr 8th, 2004
0

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

another thing ... quick paste into eclipse and it suggests that you cast "this" with (ActionListener) and (ItemListener) .... Also I think you may have meant addItemListener on the second food.add* line.

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


//edit ... left off the semicolons myself that time
Reputation Points: 12
Solved Threads: 1
Newbie Poster
sykkn is offline Offline
6 posts
since Apr 2004