21 lines
548 B
Java
21 lines
548 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
public class appelgris{
|
||
|
public static void main(String[] args) {
|
||
|
int numero = 150;
|
||
|
Grisaille e = new Grisaille(numero);
|
||
|
|
||
|
JFrame fenetre = new JFrame();
|
||
|
// on configure la fenetre
|
||
|
fenetre.setSize(500, 300);
|
||
|
fenetre.setLocation(0, 0);
|
||
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
JTextField etiquette = new JTextField("JE suis un texte oui je suis du texte !");
|
||
|
etiquette.setBackground(e);
|
||
|
fenetre.add(etiquette);
|
||
|
fenetre.setVisible(true);
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|