Import java.awt.*;
import java.awt.event.*;
import java.swing.*;
public class image extends JFrame {
private JPanel p1,p2;
private JLabel lb1,lb2;
private JTextField txt1,txt2;
public image(){
this.setTitle("image");
this.setSize(500,500);
Container cf=this.getContentPane();
cf.setLayout(new GridLayout (2,1));
p1=new JPanel();
IconImage ic1=new IconImage("tva.gif"); // le nom d'image tu le choisi
p1.add(ic1);
lb1=new Jlabel("image1");
p1.add(lb1);
txt1=new JTextField(12);
p1.setLayout(new Flowlayout(FlowLayout.CENTER));
p1.add(txt1);
cf.add(p1);
p2=new JPanel();
IconImage ic2=new IconImage("facture.gif"); // le nom de l'image tu le choisi
p2.add(ic2);
lb2=new Jlabel("image2");
p2.add(lb2);
txt2=new JTextField(12);
p2.setLayout(new Flowlayout(FlowLayout.CENTER));
p2.add(txt2);
cf.add(p2);
// tu termine le programme comme d'habitude , et bon courage