public MortgageDialog(java.awt.Frame parent, boolean modal,int pl) {
        super(parent, modal);
        initComponents();
        player=pl;
        model = new DefaultListModel();
        jList1.setModel(model);
        fieldsR = new ArrayList<>();
        for (Field field : Game.fields) {
            String name="";
            String type="";
            String mortgage="";
            Boolean mort=false;
            Boolean insert=false;
            if (field.getClass()==Brewery.class) {
                Brewery brew = ((Brewery)field);
                type="Bryggeri";
                name = brew.Name;
                mort = brew.Mortgage;
                if (brew.Owner==pl) {
                    System.out.print(type);
                    insert=true;
                }
            }else if (field.getClass()==Street.class) {
                Street street = ((Street)field);
                name = street.Name;
                type="Gade";
                mort = street.Mortgage;
                if (street.Owner==pl) {
                    System.out.print(type);
                    insert=true;
                }
            }else if (field.getClass()==ShippingLines.class) {
                ShippingLines sl = ((ShippingLines)field);
                name = sl.Name;
                type="Redderi";
                mort = sl.Mortgage;
                if (sl.Owner==pl) {
                    System.out.print(type);
                    insert=true;
                }
            }
            if (insert) {
                if (mort) {
                    mortgage="Pantsat";
                }else{
                    mortgage="Ikke pantsat";
                }
                System.out.println("Pantsæt: "+type+": "+name+" - "+mortgage);
                model.addElement(type+": "+name+" - "+mortgage);
                fieldsR.add(Game.fields.indexOf(field));
            }
        }
        
        
        jList1.updateUI();
        setVisible(true);
    }