/** Creates new form OversigtNu */ public OversigtNuFuel() { initComponents(); this.con = new Control(); this.setSize(600, 600); setLocationRelativeTo(null); double text = con.loadKmPerL(); String newText = Double.toString(text); viewKml.setText(newText); double km = con.loadDrivenDis(); String newkm = Double.toString(km); kilometer.setText(newkm); String type = "Price"; double price = con.loadPrice(type); String newprice = Double.toString(price); pricetag.setText(newprice); }