Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.script.ui;
public class ScriptUtility extends JFrame {
	private static final long serialVersionUID = -1235058341209416285L;
	public ScriptUtility(TaskRun run) {
		EditorPane epane = new EditorPane();
		this.setRootPane(epane);		
			public void windowActivated(WindowEvent arg0) {
			}
			public void windowClosed(WindowEvent arg0) {
				epane.shutdown();
			}
			public void windowClosing(WindowEvent arg0) {
			}
			public void windowDeactivated(WindowEvent arg0) {
			}
			public void windowDeiconified(WindowEvent arg0) {
			}
			public void windowIconified(WindowEvent arg0) {
			}
			public void windowOpened(WindowEvent arg0) {
				epane.start(run);
			}
		});
		this.setTitle("dcScript Debugger");
		this.setMinimumSize(new Dimension(500, 500));
	}
	public static void goSwing(TaskRun run) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {				
				try {
				catch (Exception x) {
				}
				new ScriptUtility(run).setVisible(true);
			}
		});
	}
New to GrepCode? Check out our FAQ X