📅  最后修改于: 2022-03-11 14:52:48.684000             🧑  作者: Mango
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);