// Path: src/main/java/com/github/pemapmodder/pocketminegui/PocketMineGUI.java
// public class PocketMineGUI{
// 	public static Activity CURRENT_ROOT_ACTIVITY = null;
// 
// 	public static void main(String[] args){
// 		new ChooseServerActivity().init();
// 	}
// }


import com.github.pemapmodder.pocketminegui.PocketMineGUI;
import lombok.Getter;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.Border;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
package com.github.pemapmodder.pocketminegui.lib;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



public abstract class Activity extends JFrame{
	@Getter
	private Activity parent, child = null;
	private boolean hasNewActivity = false;
	private boolean onStopCalled = false;

	public Activity(String title){
		this(title, null);
	}

	public Activity(String title, Activity parent){
		super(title);
		this.parent = parent;
		if(parent != null){
			parent.setChild(this);
		}
	}

	public final void init(){
		if(!hasParent()){
// Path: src/main/java/com/github/pemapmodder/pocketminegui/PocketMineGUI.java
// public class PocketMineGUI{
// 	public static Activity CURRENT_ROOT_ACTIVITY = null;
// 
// 	public static void main(String[] args){
// 		new ChooseServerActivity().init();
// 	}
// }


// Path: src/main/java/com/github/pemapmodder/pocketminegui/lib/Activity.java
import com.github.pemapmodder.pocketminegui.PocketMineGUI;
import lombok.Getter;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.Border;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

package com.github.pemapmodder.pocketminegui.lib;

/*
 * This file is part of PocketMine-GUI.
 *
 * PocketMine-GUI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PocketMine-GUI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with PocketMine-GUI.  If not, see <http://www.gnu.org/licenses/>.
 */



public abstract class Activity extends JFrame{
	@Getter
	private Activity parent, child = null;
	private boolean hasNewActivity = false;
	private boolean onStopCalled = false;

	public Activity(String title){
		this(title, null);
	}

	public Activity(String title, Activity parent){
		super(title);
		this.parent = parent;
		if(parent != null){
			parent.setChild(this);
		}
	}

	public final void init(){
		if(!hasParent()){
			if(PocketMineGUI.CURRENT_ROOT_ACTIVITY != null){