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

public class Saisie {
    public static void main(String[] args){
        JFrame fenetre = new JFrame("Saisie");
        fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JTextArea textarea = new JTextArea();
        JTextField saisie = new JTextField();

        textarea.setBackground(new Color(0, 0, 0));
        saisie.setBackground(new Color(128, 128, 128));
        textarea.setForeground(new Color(0, 128, 0));
        saisie.setForeground(new Color(0, 128, 0).darker());

    
        fenetre.add(saisie, BorderLayout.SOUTH);
        fenetre.add(textarea, BorderLayout.CENTER);
        
        fenetre.setSize(500, 300);
        fenetre.setLocation(500,250);
        fenetre.setVisible(true);
    }
}