import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

public class Window extends JPanel{
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SwingUtilities.invokeLater(new Runnable(){
			
			@Override
			public void run() {
				JFrame restaurantFrame = new JFrame("restaurant");
				restaurantFrame.setSize(800,800);
				restaurantFrame.setResizable(false);
				restaurantFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				restaurantFrame.add(new Window());
				restaurantFrame.setVisible(true);		
			}
		});

	}
	
	public Window(){
		
	}
	
	
} 

@@ -1,28 +1,199 @@
+import java.awt.Graphics;%0Aimport java.awt.Graphics2D;%0Aimport java.awt.image.BufferedImage;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport javax.imageio.ImageIO;%0A
 import javax.swing.JFrame;%0Ai
@@ -760,33 +760,404 @@
 %09%0A%09p
-ublic Window()%7B%0A%09%09%0A%09%7D%0A%09%0A%09
+rivate  BufferedImage tableImage=null;%0A%09%0A%09public Window()%7B%0A%09%09%0A%09%09File imageFile = new File(%22img/s.png%22);%0A%09%09%0A%09%09try %7B%0A%09%09%09tableImage = ImageIO.read(imageFile);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09System.err.println(%22Blad odczytu obrazka%22);%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09%0A%09%0A%09%7D%0A%09%0A%09@Override%0A%09public void paintComponent(Graphics g)%7B%0A%09%09Graphics2D g2 = (Graphics2D) g;%0A%09%09g2.drawImage(tableImage, 0,0, this);%0A%09%7D
 %0A%7D %0A

add table