static public Element getSelectedElement(){
         Element e = new Element();
         for (int i = 0; i < Globals.computerList.size(); i++) {                
                if (Globals.computerList.get(i).isSelected() == Boolean.TRUE){                    
                    e.ID = Globals.computerList.get(i).getID();
                    e.index = i;
                    e.type = Globals.Type.COMPUTER;
                }
         }
         
         for (int i = 0; i < Globals.hubList.size(); i++){                
                if (Globals.hubList.get(i).isSelected() == Boolean.TRUE){                    
                    e.ID = Globals.hubList.get(i).getID();
                    e.index = i;
                    e.type = Globals.Type.HUB;
                }
         }
         
         for (int i = 0; i < Globals.switchList.size(); i++){                
                if (Globals.switchList.get(i).isSelected() == Boolean.TRUE){                    
                    e.ID = Globals.switchList.get(i).getID();
                    e.index = i;
                    e.type = Globals.Type.SWITCH;
                }
         }
         
         for (int i = 0; i < Globals.routerList.size(); i++){                
                if (Globals.routerList.get(i).isSelected() == Boolean.TRUE){                    
                    e.ID = Globals.routerList.get(i).getID();
                    e.index = i;
                    e.type = Globals.Type.ROUTER;
                }
         }
         return e;
    }