Exemple JavaFX
ImageView piano = new ImageView(new Image(ChangeInstru.class.getResourceAsStream("images/piano.png")));
piano.setFitHeight(50);
piano.setPreserveRatio(true);
ImageView guitare = new ImageView(new Image(ChangeInstru.class.getResourceAsStream("images/guitare.png")));
guitare.setFitHeight(50);
guitare.setPreserveRatio(true);
ImageView orgue = new ImageView(new Image(ChangeInstru.class.getResourceAsStream("images/orgue.png")));
orgue.setFitHeight(50);
orgue.setPreserveRatio(true);
Crazy Caiman