// Path: gameManager/src/org/dipgame/gameManager/utils/BareBonesBrowserLaunch.java
// public class BareBonesBrowserLaunch {
// 
// 	static final String[] browsers = { "google-chrome", "firefox", "opera",
// 			"epiphany", "konqueror", "conkeror", "midori", "kazehakase",
// 			"mozilla" };
// 	static final String errMsg = "Error attempting to launch web browser";
// 
// 	public static void openURL(String url) {
// 		try { // attempt to use Desktop library from JDK 1.6+
// 			Class<?> d = Class.forName("java.awt.Desktop");
// 			d.getDeclaredMethod("browse", new Class[] { java.net.URI.class })
// 					.invoke(d.getDeclaredMethod("getDesktop").invoke(null),
// 							new Object[] { java.net.URI.create(url) });
// 			// above code mimicks: java.awt.Desktop.getDesktop().browse()
// 		} catch (Exception ignore) { // library not available or failed
// 			String osName = System.getProperty("os.name");
// 			try {
// 				if (osName.startsWith("Mac OS")) {
// 					Class.forName("com.apple.eio.FileManager")
// 							.getDeclaredMethod("openURL",
// 									new Class[] { String.class })
// 							.invoke(null, new Object[] { url });
// 				} else if (osName.startsWith("Windows"))
// 					Runtime.getRuntime().exec(
// 							"rundll32 url.dll,FileProtocolHandler " + url);
// 				else { // assume Unix or Linux
// 					String browser = null;
// 					for (String b : browsers)
// 						if (browser == null
// 								&& Runtime.getRuntime()
// 										.exec(new String[] { "which", b })
// 										.getInputStream().read() != -1)
// 							Runtime.getRuntime().exec(
// 									new String[] { browser = b, url });
// 					if (browser == null)
// 						throw new Exception(Arrays.toString(browsers));
// 				}
// 			} catch (Exception e) {
// 				JOptionPane.showMessageDialog(null,
// 						errMsg + "\n" + e.toString());
// 			}
// 		}
// 	}
// 
// }


import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import org.dipgame.gameManager.utils.BareBonesBrowserLaunch;
			@Override
			public void componentShown(ComponentEvent e) {
			}

			@Override
			public void componentResized(ComponentEvent e) {
				setSizes();
				revalidateAll();
			}

			@Override
			public void componentMoved(ComponentEvent e) {
			}

			@Override
			public void componentHidden(ComponentEvent e) {
			}
		});
		
		gameMainPanel = new JPanel();
		gameMainPanel.setPreferredSize(this.getSize());
		gameMainPanel.setBackground(Utils.CYAN);
		BoxLayout boxLayout = new BoxLayout(gameMainPanel, BoxLayout.Y_AXIS);
		gameMainPanel.setLayout(boxLayout);
		gameMainPanel.add(MainPanel.createHeader());
		
		
		MouseAdapter adapter = new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent e) {
// Path: gameManager/src/org/dipgame/gameManager/utils/BareBonesBrowserLaunch.java
// public class BareBonesBrowserLaunch {
// 
// 	static final String[] browsers = { "google-chrome", "firefox", "opera",
// 			"epiphany", "konqueror", "conkeror", "midori", "kazehakase",
// 			"mozilla" };
// 	static final String errMsg = "Error attempting to launch web browser";
// 
// 	public static void openURL(String url) {
// 		try { // attempt to use Desktop library from JDK 1.6+
// 			Class<?> d = Class.forName("java.awt.Desktop");
// 			d.getDeclaredMethod("browse", new Class[] { java.net.URI.class })
// 					.invoke(d.getDeclaredMethod("getDesktop").invoke(null),
// 							new Object[] { java.net.URI.create(url) });
// 			// above code mimicks: java.awt.Desktop.getDesktop().browse()
// 		} catch (Exception ignore) { // library not available or failed
// 			String osName = System.getProperty("os.name");
// 			try {
// 				if (osName.startsWith("Mac OS")) {
// 					Class.forName("com.apple.eio.FileManager")
// 							.getDeclaredMethod("openURL",
// 									new Class[] { String.class })
// 							.invoke(null, new Object[] { url });
// 				} else if (osName.startsWith("Windows"))
// 					Runtime.getRuntime().exec(
// 							"rundll32 url.dll,FileProtocolHandler " + url);
// 				else { // assume Unix or Linux
// 					String browser = null;
// 					for (String b : browsers)
// 						if (browser == null
// 								&& Runtime.getRuntime()
// 										.exec(new String[] { "which", b })
// 										.getInputStream().read() != -1)
// 							Runtime.getRuntime().exec(
// 									new String[] { browser = b, url });
// 					if (browser == null)
// 						throw new Exception(Arrays.toString(browsers));
// 				}
// 			} catch (Exception e) {
// 				JOptionPane.showMessageDialog(null,
// 						errMsg + "\n" + e.toString());
// 			}
// 		}
// 	}
// 
// }


// Path: gameManager/src/org/dipgame/gameManager/LogFrame.java
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import org.dipgame.gameManager.utils.BareBonesBrowserLaunch;

			@Override
			public void componentShown(ComponentEvent e) {
			}

			@Override
			public void componentResized(ComponentEvent e) {
				setSizes();
				revalidateAll();
			}

			@Override
			public void componentMoved(ComponentEvent e) {
			}

			@Override
			public void componentHidden(ComponentEvent e) {
			}
		});
		
		gameMainPanel = new JPanel();
		gameMainPanel.setPreferredSize(this.getSize());
		gameMainPanel.setBackground(Utils.CYAN);
		BoxLayout boxLayout = new BoxLayout(gameMainPanel, BoxLayout.Y_AXIS);
		gameMainPanel.setLayout(boxLayout);
		gameMainPanel.add(MainPanel.createHeader());
		
		
		MouseAdapter adapter = new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent e) {
				BareBonesBrowserLaunch.openURL("http://www.dipgame.org/browse/gameManager");