immagini java

Solutions on MaxInterview for immagini java by the best coders in the world

showing results for - "immagini java"
Elisa
17 Oct 2016
1	public static void main(String[] args) {
2		JFrame frame = new JFrame();
3		frame.setTitle("titolo");
4		frame.setLayout(new FlowLayout());
5		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
6
7		ImageIcon imageIcon = new ImageIcon("percorso");
8		JLabel label = new JLabel(imageIcon);
9
10		frame.add(label);
11		frame.pack();
12		frame.setVisible(true);
13	}