public MainGraphic(){
        con = getContentPane();       
        setBounds(0,0,1000,600);
        
        border = new BorderLayout();
        con.setLayout(border);
              
        
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);          
        
        button = new JButton("Seznam surovin");
        con.setLayout(border);
        button.addActionListener(new ActionListener(){
            @Override
            public void actionPerformed(ActionEvent ae) {
            
            
                    
                    JInternalFrame f = new JInternalFrame("Suroviny",false,true);                    
                    f.setVisible(true);
                    f.setClosable(true);
                    f.setDefaultCloseOperation(JInternalFrame.EXIT_ON_CLOSE);
                    
                    con.add(f,BorderLayout.CENTER); 
                
            }
            
        });       
        con.add(button,BorderLayout.WEST);
        
    }