AMS_Memory thisksp = (AMS_Memory) memories.get((String)obj); System.out.println("thisksp "+thisksp); JInternalFrame jp = new PETScViewKSP(thisksp);
AMS_Memory thismem = (AMS_Memory) memories.get((String)obj); System.out.println("thismem "+thismem); JInternalFrame jp; String oclass = mem.get_field("Class").getStringData()[0]; if (oclass.equals("KSP")) { jp = new PETScViewKSP(thismem); } else if (oclass.equals("SNES")) { jp = new PETScViewSNES(thismem); } else return;
      public void valueChanged(TreeSelectionEvent e) {        System.out.println("User selected tree node"); 	System.out.println("node "+e.getPath().getLastPathComponent());        Object obj = ((DefaultMutableTreeNode)(e.getPath().getLastPathComponent())).getUserObject();	AMS_Memory thisksp = (AMS_Memory) memories.get((String)obj);	System.out.println("thisksp "+thisksp);        JInternalFrame jp = new PETScViewKSP(thisksp);        rpanel.add(jp);	/*        jp.setLocation(50,50); */      }