{
return;
} // if (mov == null)
// create a new MovieWindow
MovieWindow movieWindow = null;
// called from Scheme side, find the variable name of mov in movielist
if (name.equalsIgnoreCase("preview"))
{
// look for mov in movieList
if (movieList.contains(mov))
{
Enumeration<String> keys = movieList.keys();
while (keys.hasMoreElements())
{
String key = keys.nextElement();
if (movieList.get(key) == mov)
{
movieWindow = new MovieWindow(this, key, mov);
break;
} // if (movieList.get(key) == mov)
} // while (keys.hasMoreElements())
} // if (movieList.contains(mov))
// if not in movieList
else
{
movieWindow = new MovieWindow(this, this.name, mov);
} // else
} // if (name.equalsIgnoreCase("preview"))
// called from Java side
else
{
movieWindow = new MovieWindow(this, name, mov);
} // else
this.windows.add(movieWindow);
} // showMovie(Movie, String)