private void FillLists(){
          try{
                     ResultSet AssetResults = null;
                     ResultSet ElementResults = null;
                     
                     Statement GetAssets;
                     Statement GetElements;
                     
                    
                     
                     GetElements = connection.createStatement();
                     ElementResults = GetElements.executeQuery( "SELECT * FROM Element");                     
                    
                     
                     //This gets stuff from the database and populates in to a combobox
                     while (ElementResults.next())
                    {
                       
                       Element AddElement;
                       
                       AddElement = new Element(ElementResults.getInt("elementID"), ElementResults.getString("elementName"));
                       //UserLoggedIn = new User(loginResults.getInt("userID"), loginResults.getString("firstName"), loginResults.getString("surname"), loginResults.getString("username"), loginResults.getString("password"));

                       AllElements.addElement(AddElement);
                        
                    }
                                                                                                     
                     GetAssets = connection.createStatement();
                     AssetResults = GetAssets.executeQuery( "SELECT * FROM Asset");  
                      
                    while (AssetResults.next())
                    {
                        
                        Asset AddAsset;
                        
                        //AddAsset = new Asset(AssetResults.getInt("ID"),AssetResults.getString("assetName"), AssetResults.getString("assetType"));    
                        
                        //AllAssets.addAsset(AddAsset);                    
                    }
                    
                    ElList.setListData(AllElements);
                    AssList.setListData(AllAssets);
                    //ElList.setCellRenderer()
                    
        }catch(Exception e){
            JOptionPane.showMessageDialog(null,e);
        }
    }