Creating a superclass, since both panels have components in common. Make
it easier to deal with the same things on FrameListener.