📅  最后修改于: 2022-03-11 14:52:22.734000             🧑  作者: Mango
ImageIcon image = new ImageIcon("c:\\path\\image.png");
imagelabel = new JLabel(character, image, JLabel.CENTER);
frame.add(imagelabel);