Implement this interface when you create your panel. It ensures that everything can be showed in the main window.