Code example for URL

Methods: toString

0
		if (w != null && w.length() > 0) {
			try { 
				u = new URL(w);
			} catch (MalformedURLException e) {
				try { 
					u = new URL("http://" + w);
					teamCreatorOptionsPanel.getWebpageField().setText(u.toString());
				} catch (MalformedURLException ignored) {}
			} 
		} 
 
		repositoryManager.createTeam(f, u, teamCreatorOptionsPanel.getDescriptionArea().getText(),
				teamCreatorOptionsPanel.getAuthorField().getText(), robotSelectionPanel.getSelectedRobotsAsString(), null);
		return 0; 
	} 
}