/**
* Get the Internal Frame containing frame & resource lists
* @return A JInternalFrame instance
*/
protected JInternalFrame getInternalFrame() {
PropertyManager pm = PropertyManager.getPropertyManager();
JInternalFrame frame = new JInternalFrame("Available Resources",
true, //resizable
false, //closable
true, //maximizable
true);//iconifiable
tabbedPane = new JTabbedPane();
//Resource list
Hashtable resources = pm.getResources();
Enumeration e =
(Sorter.sortStringEnumeration(resources.keys())).elements();
Vector cells = new Vector(10);
while (e.hasMoreElements()) {
String name = (String)e.nextElement();
ResourceCell cell =
new ResourceCell(name, (String)resources.get(name));
cells.addElement(cell);
}
DraggableList list = getResourceList(cells);
JScrollPane scroll = new JScrollPane(list);
tabbedPane.addTab("Resources", null, scroll, "Resources available");
//frames
resources = pm.getFrames();
e = (Sorter.sortStringEnumeration(resources.keys())).elements();
cells = new Vector(10);
while (e.hasMoreElements()) {
String name = (String)e.nextElement();
ResourceCell cell =