Answers for "immagini in java"

1

immagini java

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);
	}
Posted by: Guest on April-23-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language