[JAVAGUI] bug fixing - use the popup directly (without testing it) if there is only one popup