Swing components vs. custom painting
Okay i'll try to explain an arguement i had with my programming teacher.
For my assignments that have animation in them, he wants everything to be done with Swing components i.e JLabel.
For example, some of you here have helped me with Tetris, kind of.
Because my tetris used a paint method, but not double buffered, it flickered, this is when he made the arguement that i should be making all of the tetris pieces JLabels, or a class that extends it. That's why when i posted that one time, that's why i was using JLabels. Afterwards i was informed that i should keep my idea of making a class extend rectangle, and just paint them all inside of a label, but using double buffer techniques. It worked good, and i like that way.
The problem is that my teacher still expects me to make everything on the screen a label, and i don't get why? his arguement was that swing is double buffered, my counter arguement was that double buffering isn't all that hard.
when you're adding all sorts of components and labels to a content pane, it gets messy dealing with all the visible fields of these components, so i like my way better.
his final arguement came down to, well this is newer, they had to have released it for a reason, so i'm going to trust Sun on this one.
Anyway, i've been rambling a lot, what do you guys think is better to use?