if (cookieDomain == null || cookieDomain.length() < 1) { try { cookieDomain = new URL(url).getHost(); } catch (Exception e) { Log.logException(Log.LEVEL_ERROR, MODULE, e);
galleries = new DefaultComboBoxModel(); gallery = new Gallery(jStatusBar); String url = getParameter("gr_url"); String cookieName = getParameter("gr_cookie_name"); String cookieValue = getParameter("gr_cookie_value"); String cookieDomain = getParameter("gr_cookie_domain"); String cookiePath = getParameter("gr_cookie_path"); String albumName = getParameter("gr_album");  if (cookieDomain == null || cookieDomain.length() < 1) { try { cookieDomain = new URL(url).getHost(); } catch (Exception e) { Log.logException(Log.LEVEL_ERROR, MODULE, e); } }  gallery.setType(Gallery.TYPE_STANDALONE); gallery.setStUrlString(url); gallery.cookieLogin = true; galleries.addElement(gallery);  jPicturesList.setInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); jPicturesList.setInputMap(JComponent.WHEN_FOCUSED, null); jPicturesList.setInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW, null); jPicturesList.setCellRenderer(new CoreUtils.FileCellRenderer());  CookieModule.addCookie(new Cookie(cookieName, cookieValue, cookieDomain, cookiePath, null, false));  gallery.fetchAlbums(jStatusBar, false);  album = gallery.getAlbumByName(albumName);  jPicturesList.setModel(album);  ImageUtils.deferredTasks();  jStatusBar.setStatus(GRI18n.getString(MODULE, "DefMessage"));
	public void init() {		GalleryRemote.setProperties();		if (GalleryRemote.createInstance(true, this) == null) {			JOptionPane.showMessageDialog(DialogUtil.findParentWindow(this),					"Only one instance of the Gallery Remote can run at the same time...",					"Error", JOptionPane.ERROR_MESSAGE);			return;		}		jbInit();		galleries = new DefaultComboBoxModel();		gallery = new Gallery(jStatusBar);		String url = getParameter("gr_url");		String cookieName = getParameter("gr_cookie_name");		String cookieValue = getParameter("gr_cookie_value");		String cookieDomain = getParameter("gr_cookie_domain");		String cookiePath = getParameter("gr_cookie_path");		String albumName = getParameter("gr_album");		if (cookieDomain == null || cookieDomain.length() < 1) {			try {				cookieDomain = new URL(url).getHost();			} catch (Exception e) {				Log.logException(Log.LEVEL_ERROR, MODULE, e);			}		}		gallery.setType(Gallery.TYPE_STANDALONE);		gallery.setStUrlString(url);		gallery.cookieLogin = true;		galleries.addElement(gallery);		jPicturesList.setInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);		jPicturesList.setInputMap(JComponent.WHEN_FOCUSED, null);		jPicturesList.setInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW, null);		jPicturesList.setCellRenderer(new CoreUtils.FileCellRenderer());		//jPicturesList.setFixedCellHeight();		CookieModule.addCookie(new Cookie(cookieName, cookieValue, cookieDomain, cookiePath, null, false));		gallery.fetchAlbums(jStatusBar, false);		album = gallery.getAlbumByName(albumName);		jPicturesList.setModel(album);		ImageUtils.deferredTasks();	}