I think it's a matter of preference and use most of the time. I typically will extend JFrame to place
alot of initialization code in it, and also whatever else I want. That way I can keep all the code that deals with the particular frame in the same place.
Otherwise, if you are continually creating the same frame with the same type of behavior, in order to eliminate duplicate code, you would need to create some sort of factory method, and go from there.
But either way is okay -- it just really depends on what the frame is doing.
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED