public Fenetre(String init) { this.setTitle("Test"); this.setSize(800, 600); this.setLocationRelativeTo(null); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.validate(); this.setVisible(true); Calcul pan = new Calcul(init); this.setContentPane(pan); this.validate(); this.setVisible(true); pan.lire(); pan.afficher(); }