Use an ArrayList rather than an array, and you don't have to worry about all that array manipulation. And as far as "storing" the data, how do you propose to do that with an empty actionPerformed method?
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Maybe I'll come back to this later. I knew it was going to be this kind of question and I am just not in the mood right now.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
It's because you posted a ton of code and it doesn't look like you tried very hard at solving this yourself, so none of us really care enough to help you. Read about ArrayList on google and you'll see what Masijade means. Read about ActionListener and you'll figure out how to implement it.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
Honestly posts like the one above just make you look stupid. I have almost 2000 posts in this forum, almost all of them trying to help people. You have 18 posts, probably all of them asking for help. There's nothing wrong with asking for help, but you are not entitled to receive it. The main reason I even posted in this thread was because your attitude indicated that you thought you were entitled, ("no good having a forum if there's no one to help.."). The people who help here are volunteers. Obviously your posts didn't provide enough info to warrant us going out of our way to help you like I pointed out before.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
Most of your 2000 posts do not help with programming, they are mainly giving a link to the API, discussing TV or making criticisms. Makes one wonder do you actually know much about programming or are you just one of those people who thinks forum post counts are very important to them as you seem to "mock" my 18 posts.
This isn't about my level of programming skill or yours. The important thing is learning how to ask questions well and showing effort, not expecting people to do your work for you.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354