package lt.bit.gijos1; import javax.swing.*; public class Skaiciavimas extends Thread { private JTextField ats; private JLabel progresas; public Skaiciavimas(JTextField ats, JLabel progresas) { this.ats = ats; this.progresas=progresas; } public void run(){ Double sk=0.0; Long it=0l; for (int i=1; i<40000; i++){ for (int y=1; y