import java.awt.*;
public class FrameTestProg {
public static void main (String [] args) {
Frame f = new Frame();
f.setSize (300,400);
f.setLocation (100, 100);
f.setVisible (true);
try {
int i;
for (i = 0; i < args.length; i++) {
Label l = new Label (args[i]);
l.setLocation (100, (i+1)*100);
l.setVisible (true);
l.setSize (100, 100);
f.add (l);
}
}
catch (ArrayIndexOutOfBoundsException e) {
f.add (new Label ("You must give at least one argument minimum!"));
}
}
}