📅  最后修改于: 2022-03-11 14:52:42.395000             🧑  作者: Mango
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setTitle("titolo");
frame.setLayout(new FlowLayout());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ImageIcon imageIcon = new ImageIcon("percorso");
JLabel label = new JLabel(imageIcon);
frame.add(label);
frame.pack();
frame.setVisible(true);
}