Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
	}
 
PREVIOUS NEXT
Tagged: #immagini #java
ADD COMMENT
Topic
Name
3+8 =