private void Flag2() {
       String str;
       MultipleChoiceActivate();
       jTextField1.setHorizontalAlignment(JTextField.CENTER);
       jTextField2.setHorizontalAlignment(JTextField.CENTER);
       jTextField2.setText("Επέλεξε μία απάντηση!");
       ReadFromFile GetData = new ReadFromFile();
       String[][] selection;
       int index,nextInt=0,nextInt2=0,nextInt3=0,nextInt4=0;
       Random generator = new Random();

       do {
             selection=GetData.Selection1(data); index=GetData.index();//indexwithoutduplicates=GetData.indexwithoutduplicates();
            } while (index==2);
       
       String selectedcategory=GetData.selectedcategory();
       jLabel28.setText("Κατηγορία: "+selectedcategory);
       Category[num]=selectedcategory;
       
       do {
             nextInt = generator.nextInt(index);
           } while (nextInt==0);
      
       jTextField1.setText(selection[0][0]+selection[nextInt][0]+";");

       do {
             nextInt2 = generator.nextInt(index); 
           } while (selection[nextInt2][0].equals(selection[nextInt][0]) || selection[nextInt2][1].equals(selection[nextInt][1]) || nextInt2==0);
       if (index>3) {
          do {
             nextInt3 = generator.nextInt(index); 
           } while (selection[nextInt3][0].equals(selection[nextInt][0]) || selection[nextInt3][0].equals(selection[nextInt2][0]) || 
                        selection[nextInt3][1].equals(selection[nextInt][1]) || selection[nextInt3][1].equals(selection[nextInt2][1]) || nextInt3==0);
          if (index>4) {
            do {
              nextInt4 = generator.nextInt(index); 
            } while (selection[nextInt4][0].equals(selection[nextInt][0]) | selection[nextInt4][0].equals(selection[nextInt2][0]) || selection[nextInt4][0].equals(selection[nextInt3][0]) || 
                         selection[nextInt4][1].equals(selection[nextInt][1]) | selection[nextInt4][1].equals(selection[nextInt2][1]) || selection[nextInt4][1].equals(selection[nextInt3][1]) || nextInt4==0);
          }
       }
       ArrayList nums = new ArrayList();
       nums.add(nextInt);
       nums.add(nextInt2);
       if (index>3) nums.add(nextInt3);
       if (index>4) nums.add(nextInt4);
       Collections.shuffle(nums);
     
       int ind[]= {nextInt,nextInt2,nextInt3,nextInt4};
       ind[0]=Integer.parseInt(nums.get(0).toString()); 
       ind[1]=Integer.parseInt(nums.get(1).toString()); 
       if (index>3) ind[2]=Integer.parseInt(nums.get(2).toString()); 
       if (index>4) ind[3]=Integer.parseInt(nums.get(3).toString()); 
     
       answ1=selection[ind[0]][1];
       answ2=selection[ind[1]][1];
       if (index>3) answ3=selection[ind[2]][1];
       if (index>4) answ4=selection[ind[3]][1];
     
       jRadioButton3.setVisible(false);
       jRadioButton4.setVisible(false);
      
       if (index>3) {
          jRadioButton3.setVisible(true); 
          try { 
               URL url = new URL(selection[ind[2]][1]);
               BufferedImage img = ImageIO.read(url);
               java.awt.Image img2 = img.getScaledInstance(150, 70, BufferedImage.SCALE_SMOOTH);
               Icon icon=new ImageIcon(img2);   
               jRadioButton3.setIcon(icon);
            } catch (IOException e) {
                  jRadioButton3.setText("Εικόνα:"+selection[ind[2]][0]);
                  JOptionPane.showMessageDialog(this, "Ο σύνδεσμος που περιέχει την εικόνα: "+selection[ind[2]][0]+" δε λειτουργεί!");
               }
       }
       if (index>4) {
          jRadioButton4.setVisible(true);
          try { 
               URL url = new URL(selection[ind[3]][1]);
               BufferedImage img = ImageIO.read(url);
               java.awt.Image img2 = img.getScaledInstance(150, 70, BufferedImage.SCALE_SMOOTH);
               Icon icon=new ImageIcon(img2);   
               jRadioButton4.setIcon(icon);
            } catch (IOException e) {
                  jRadioButton4.setText("Εικόνα:"+selection[ind[3]][0]);
                  JOptionPane.showMessageDialog(this, "Ο σύνδεσμος που περιέχει την εικόνα: "+selection[ind[3]][0]+" δε λειτουργεί!");
               }
       }

       try { 
               URL url = new URL(selection[ind[0]][1]);
               BufferedImage img = ImageIO.read(url);
               java.awt.Image img2 = img.getScaledInstance(150, 70, BufferedImage.SCALE_SMOOTH);
               Icon icon=new ImageIcon(img2);   
               jRadioButton1.setIcon(icon);
       } catch (IOException e) {
                  jRadioButton1.setText("Εικόνα:"+selection[ind[0]][0]);
                  JOptionPane.showMessageDialog(this, "Ο σύνδεσμος που περιέχει την εικόνα: "+selection[ind[0]][0]+" δε λειτουργεί!");
          }
          
       try { 
               URL url = new URL(selection[ind[1]][1]);
               BufferedImage img = ImageIO.read(url);
               java.awt.Image img2 = img.getScaledInstance(150, 70, BufferedImage.SCALE_SMOOTH);
               Icon icon=new ImageIcon(img2);   
               jRadioButton2.setIcon(icon);
       } catch (IOException e) {
                   jRadioButton2.setText("Εικόνα:"+selection[ind[1]][0]);
                  JOptionPane.showMessageDialog(this, "Ο σύνδεσμος που περιέχει την εικόνα: "+selection[ind[1]][0]+" δε λειτουργεί!");
          }

       frozen=false;
       int fps = 0;
       str = getParameter("fps");
       try { 
            if (str != null) {
                fps = Integer.parseInt(str);
            }
       } catch (Exception e) {}

       int delay = (fps > 0) ? (1000 / fps) : 1000;
       timer = new Timer(delay, this);
       timer.setInitialDelay(0);
       timer.setCoalesce(true);
       startAnimation();
        
       jRadioButton1.setEnabled(true);
       jRadioButton2.setEnabled(true);
       jRadioButton3.setEnabled(true);
       jRadioButton4.setEnabled(true);
     
       //System.out.println("1. "+selection[nextInt][0]);
       //System.out.println("2. "+selection[nextInt2][0]);
       //System.out.println("3. "+selection[nextInt3][0]);
       //System.out.println("4. "+selection[nextInt4][0]);
     
       answ=selection[nextInt][1];
       if ("η χώρα είναι: ".equals(selection[0][0]))  {
            if (nextInt==ind[0]) {answw="η πρώτη σημαία";}
            else if (nextInt==ind[1]) {answw="η δεύτερη σημαία";}
            else if (nextInt==ind[2]) {answw="η τρίτη σημαία";}
            else if (nextInt==ind[3]) {answw="η τέταρτη σημαία";}
       }
       else {
            if (nextInt==ind[0]) {answw="η πρώτη εικόνα";}
            else if (nextInt==ind[1]) {answw="η δεύτερη εικόνα";}
            else if (nextInt==ind[2]) {answw="η τρίτη εικόνα";}
            else if (nextInt==ind[3]) {answw="η τέταρτη εικόνα";}
       }
    
       quest=selection[nextInt][0];
       dbpedia=selection[nextInt][2];
       wiki=selection[nextInt][3];
       question[num]="Η ερώτηση ήταν: "+selection[0][0] +selection[nextInt][0]+";";
       answer[num]="Η σωστή απάντηση ήταν: " +selection[nextInt][1];
       
    }