package org.openslx.dozmod.gui.activity; import javax.swing.JPanel; public abstract class ActivityPanel extends JPanel { private final JPanel container; public ActivityPanel(JPanel container) { this.container = container; container.add(this); } /** * If this activity wants to prevent the user from closing the application, * it should return true. This makes the application ask the user to confirm * quitting. * * @return true to ask the user for confirmation */ public abstract boolean wantConfirmQuit(); }