import java.awt.*; import java.util.*; import javax.swing.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub
/* ImageIcon dizzy = new ImageIcon("src\\icons\\1.png"); JLabel dizzylabel = new JLabel(dizzy); icons.add(dizzylabel);
ImageIcon smile = new ImageIcon("src\\icons\\2.png"); JLabel smilelabel = new JLabel(smile); icons.add(smilelabel);
... if you have for example 100 icons thes you have to repeat code for 100 times:( */ JFrame frame = new JFrame();
import java.awt.*;
import java.util.*;
import javax.swing.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
/*
ImageIcon dizzy = new ImageIcon("src\\icons\\1.png");
JLabel dizzylabel = new JLabel(dizzy);
icons.add(dizzylabel);
ImageIcon smile = new ImageIcon("src\\icons\\2.png");
JLabel smilelabel = new JLabel(smile);
icons.add(smilelabel);
... if you have for example 100 icons thes you have to repeat
code for 100 times:(
*/
JFrame frame = new JFrame();
ArrayList icons = new ArrayList();
for(int i=1;i