Okay, so we have this task where we need to program a CD library. It has 4 textfields where you'll put in artist, title, length and number of tracks. Were using JFrame for this and I've managed to make the layout pretty well. The program also has 5 buttons:

Add: Is supposed to add these 4 variables into an object (CD) and save them to an arraylist
Print: Is supposed to print out all of the objects that you've added and show them in the text field below.
Sort: Is supposed to sort the CDs after Artist name
Abort: This one I've managed to solve on my own
Exit: This one I've managed to solve on my own

My teacher refuses to help me since this is the last project, and my friends can't solve it either. I know this sounds like I'm a lazy idiot that's looking for an easy way out, but I could really need some help here. The code is just full of diffrent trials of thought right now, I'm not the best programmer...

If you could solve this for me or just give me a tip on how to think I would be very grateful. Tell me if there is something you don't understand. And sorry for the swedish comments by the side...

I don't understand what your question is - probably because you haven't yet asked one...

Quote:

And sorry for the swedish comments by the side...

Those comments are totally redundant and make the code much harder to read, but rather than apologise for them, why didn't you just delete them? If you won't make any effort to make your code readable, why should we make any effort to read it?