// Path: core/src/de/tomgrill/gdxdialogs/core/GDXDialogsVars.java
// public class GDXDialogsVars {
// 	public static final String VERSION = "1.3.0";
// 	public static final String LOG_TAG = "gdx-dialogs (" + VERSION + ")";
// }
// 
// Path: core/src/de/tomgrill/gdxdialogs/core/dialogs/GDXProgressDialog.java
// public interface GDXProgressDialog {
// 	/**
// 	 * Sets the message.
// 	 * 
// 	 * @param message The text to be displayed at the body of the dialog.
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog setMessage(CharSequence message);
// 
// 	/**
// 	 * Sets the title
// 	 * 
// 	 * @param title String value to set the title
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog setTitle(CharSequence title);
// 
// 	/**
// 	 * Shows the dialog. show() can only be called after build() has been called
// 	 * else there might be strange behavior. Runs asynchronously on a different thread.
// 	 *
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog show();
// 
// 	/**
// 	 * Dismisses the dialog. You can show the dialog again.
// 	 * 
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog dismiss();
// 
// 	/**
// 	 * This builds the button and prepares for usage.
// 	 * 
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog build();
// 
// }


import com.badlogic.gdx.Gdx;
import de.tomgrill.gdxdialogs.core.GDXDialogsVars;
import de.tomgrill.gdxdialogs.core.dialogs.GDXProgressDialog;
import javax.swing.JOptionPane;
import javax.swing.JDialog;
		this.message = message;
		return this;
	}

	@Override
	public GDXProgressDialog setTitle(CharSequence title) {
		this.title = title;
		return this;
	}

	@Override
	public GDXProgressDialog show() {
		new Thread(new Runnable() {

			@Override
			public void run() {
				Gdx.app.debug(GDXDialogsVars.LOG_TAG, DesktopGDXProgressDialog.class.getSimpleName() +
						" now shown.");
				dialog.setVisible(true);
			}

		}).start();
		return this;
	}


	@Override
	public GDXProgressDialog dismiss() {
		dialog.dispose();
		optionPane.setVisible(false);
// Path: core/src/de/tomgrill/gdxdialogs/core/GDXDialogsVars.java
// public class GDXDialogsVars {
// 	public static final String VERSION = "1.3.0";
// 	public static final String LOG_TAG = "gdx-dialogs (" + VERSION + ")";
// }
// 
// Path: core/src/de/tomgrill/gdxdialogs/core/dialogs/GDXProgressDialog.java
// public interface GDXProgressDialog {
// 	/**
// 	 * Sets the message.
// 	 * 
// 	 * @param message The text to be displayed at the body of the dialog.
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog setMessage(CharSequence message);
// 
// 	/**
// 	 * Sets the title
// 	 * 
// 	 * @param title String value to set the title
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog setTitle(CharSequence title);
// 
// 	/**
// 	 * Shows the dialog. show() can only be called after build() has been called
// 	 * else there might be strange behavior. Runs asynchronously on a different thread.
// 	 *
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog show();
// 
// 	/**
// 	 * Dismisses the dialog. You can show the dialog again.
// 	 * 
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog dismiss();
// 
// 	/**
// 	 * This builds the button and prepares for usage.
// 	 * 
// 	 * @return The same instance that the method was called from.
// 	 */
// 	GDXProgressDialog build();
// 
// }


// Path: desktop/src/de/tomgrill/gdxdialogs/desktop/dialogs/DesktopGDXProgressDialog.java
import com.badlogic.gdx.Gdx;
import de.tomgrill.gdxdialogs.core.GDXDialogsVars;
import de.tomgrill.gdxdialogs.core.dialogs.GDXProgressDialog;
import javax.swing.JOptionPane;
import javax.swing.JDialog;

		this.message = message;
		return this;
	}

	@Override
	public GDXProgressDialog setTitle(CharSequence title) {
		this.title = title;
		return this;
	}

	@Override
	public GDXProgressDialog show() {
		new Thread(new Runnable() {

			@Override
			public void run() {
				Gdx.app.debug(GDXDialogsVars.LOG_TAG, DesktopGDXProgressDialog.class.getSimpleName() +
						" now shown.");
				dialog.setVisible(true);
			}

		}).start();
		return this;
	}


	@Override
	public GDXProgressDialog dismiss() {
		dialog.dispose();
		optionPane.setVisible(false);
		Gdx.app.debug(GDXDialogsVars.LOG_TAG, DesktopGDXProgressDialog.class.getSimpleName() + " dismissed.");