addMyPanel method does not need to be static.