public FrameBrowser(FrameTreeListener tl,
RemoteResourceWrapper rrw)
{
boolean authorized = false;
RemoteResource rr = null;
PropertyManager pm = PropertyManager.getPropertyManager();
serverBrowser = rrw.getBrowser();
this.tl = tl;
locked = false;
frameicon = getImage(pm.getIconLocation("frame"));
frameopened = getImage(pm.getIconLocation("frameopened"));
rootResource = rrw;
String name = null;
while (!authorized) {
try {
authorized = true;
rr = rrw.getResource();
name = (String) rr.getValue("identifier");
} catch (RemoteAccessException ex) {
if( ex.getMessage().equals("Unauthorized")) {
authorized = false;
} else {
errorPopup("Can't read resource identifier",ex);