import javax.swing.*;
import java.awt.*;
import couleur.Gris;

public class Grisaille {
  public static void main(String[] args) {
    Color ton1 = new Gris(155);
    Color ton2 = new Gris(75);
    JFrame fenetre = new JFrame();
    fenetre.setSize(500, 300);
    fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JTextField etiquette = new JTextField();
    JTextArea etiquette2 = new JTextArea();
    etiquette.setBackground(ton1);
    etiquette2.setBackground(ton2);
    fenetre.add(etiquette, BorderLayout.SOUTH);
    fenetre.add(etiquette2, BorderLayout.CENTER);
    fenetre.setVisible(true);
  }
}