1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
public class FenetreSceneEtre extends JInternalFrame {
private SceneEtre sceneEtre;
public FenetreSceneEtre(SceneEtre sceneEtre) {
super(sceneEtre.getEtre().getNom(), true, true, true, true);
this.sceneEtre = sceneEtre;
this.afficheInfos();
this.setVisible(true);
}
private void afficheInfos() {
JPanel panel = new JPanel();
JLabel lbPhoto = new JLabel(sceneEtre.getPhoto());
panel.add(lbPhoto);
this.setContentPane(panel);
}
public void paintComponents(Graphics g) {}
public void paintComponent(Graphics g) {}
} |