@SuppressWarnings("empty-statement")
    private void jButtonRunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRunActionPerformed
      uList.clear();
      ziarno.clear();  
      
      
      ziarno.add(x1);
      ziarno.add(x2);
      ziarno.add(x3);
      ziarno.add(x4);
      
      if(size>0){
      uList.add(a1);
      uList.add(a2);
      uList.add(a3);
      uList.add(a4);
      }
      
       int xN = 0;
      
        if(size>0){
            int i = 0;
        while ( i < (size - (ziarno.size())) ){
           int ij;
            ij = ((ziarno.get(ziarno.size()-1) * uList.get(uList.size()-1) +  ziarno.get(ziarno.size()-2) * uList.get(uList.size()-2) +  ziarno.get(ziarno.size()-3) * uList.get(uList.size()-3) +  ziarno.get(ziarno.size()-4) * uList.get(uList.size()-4))  + c) % m;
       
       if (ij >= rozkladI ){
             uList.add(ij);
       }else{
           ij = ij + rozkladI;
           
           uList.add(ij);
           
       }
        i++;
       
         }
        }
       System.out.println( uList);
                
       
        JPanel jpanel3 = creteDemoPanel();
        jpanel3.setPreferredSize(new Dimension(640, 480));  
       
         ds = createDataset();
         cp.repaint();
         chart = ChartFactory.createScatterPlot
          (
                  "Test Chart",
                  "x",
                  "y",
                  ds,
                  PlotOrientation.VERTICAL,
                  true,
                  true,
                  false
          );
    
     xyPlot = (XYPlot) chart.getPlot();
     renderer = xyPlot.getRenderer();
   
     cp.repaint();
    
     cp = new ChartPanel(chart);
     cp.repaint();
    
     jTabbedPane2.removeAll();
     jTabbedPane2.addTab("wygenerowane punkty", cp);

    cp.setMouseWheelEnabled(true);
    
    
   cdb = createDatasetBar();
   chartBar = ChartFactory.createXYBarChart(
            "Bar Chart Demo 1",       // chart title
            "Category",               // domain axis label
            false,
            "Value",                  // range axis label
            cdb,                  // data
            PlotOrientation.VERTICAL, // orientation
            true,                     // include legend
            true,                     // tooltips?
            false                     // URLs?
        );
    PlotBar = (XYPlot) chartBar.getPlot();
    rendererBar = (XYBarRenderer) PlotBar.getRenderer();
    chartPanelBar = new ChartPanel(chartBar);
    jTabbedPane2.addTab("histogram", chartPanelBar);
        
    }//GEN-LAST:event_jButtonRunActionPerformed