Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
  * which accompanies this distribution, and is available at http://creativecommons.org/licenses/by-nd/4.0/
  *
  * Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV
  */
package de.ipk_gatersleben.bit.bi.edal.rmi.sample.gui;
public class StartGUI {
	private static final int SERVER_PORT = 2000;
	private static final String SERVER_ADDRESS = "localhost";
	public static void main(final String[] argsthrows Exception {

use windows or unix login
		Subject subject = EdalHelpers.authenticateSampleUser();

alternatively use Google+ login
		// Subject subject = EdalHelpers.authenticateGoogleUser("", 3128);
connect to running EDAL server on "localhost"
		ClientDataManager dataManagerClient = new ClientDataManager(new Authentication(subject));
		EdalFileChooser dialog = new EdalFileChooser(new JFrame(), dataManagerClient);
		dialog.showConnectionButton(false);
		dialog.showOpenDialog();
	}
New to GrepCode? Check out our FAQ X