JDialog popres = new JDialog(frame, "Edit Resource", false);
FramedResourceHelper helper = new FramedResourceHelper();
popres.setJMenuBar(helper.getMenuBar(popres));
PropertyManager pm = PropertyManager.getPropertyManager();
Properties props = pm.getEditorProperties(rrw);
helper.initialize(rrw, props);
Container cont = popres.getContentPane();
cont.setLayout(new GridLayout(1,1));
cont.add(helper.getComponent());
popres.setSize(new Dimension(500, 550));