Nom JLabel;Description JLabel;
Prix JLabel;
JButton l'image;
static final int image_width = 100;
static final int IMAGE_HEIGHT = 100;
ItemPanel publique (String dishName, String dishDescription, String dishprice, l'image de l'image) {
super ();
image = new JButton (nouvelle ImageIcon (photo));
nom = new JLabel (dishName);
Prix = new JLabel (dishprice);
Description = new JLabel (dishDescription);
image.setBackground (this.getBackground ());
image.setPreferredSize (nouvelle Dimension (image_width, IMAGE_HEIGHT));
this.setLayout (nouvelle BorderLayout ());
this.add (nom, BorderLayout.NORTH);
this.add (image, BorderLayout.WEST);
this.add (description, BorderLayout.CENTER);
this.add (prix, BorderLayout.EAST);
}