import javax.swing.*; import java.awt.*; public class Damier{ public static void main(String[] args) { if(args.length <= 0) { System.err.println("number of line recquired"); System.exit(1); } int line = Integer.parseInt(args[0]); JFrame fenetre = new JFrame("Damier"); fenetre.setLayout(new GridLayout(line, line)); GridLayout gestionnaire = new GridLayout(5, 5); fenetre.setLayout(gestionnaire); for(int i = 0 ; i