private void Flag() {
       frozen=false;
       String str,warning;
       int fps = 0;
     
       MultipleChoiceActivate();
       jLabel2.setVisible(true);
       jRadioButton5.setSelected(true);
       jTextField2.setText("Επέλεξε μία απάντηση!");
       jTextField1.setHorizontalAlignment(JTextField.CENTER);
       jTextField2.setHorizontalAlignment(JTextField.CENTER);
       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 );
       warning="";

       jTextField1.setText(selection[0][1]); 
       warning="Ο σύνδεσμος που περιέχει την εικόνα: ";
 
       try { 
               URL url = new URL(selection[nextInt][1]);
               BufferedImage img = ImageIO.read(url);
               java.awt.Image img2=img.getScaledInstance(240,140,BufferedImage.SCALE_SMOOTH);
               Icon icon=new ImageIcon(img2);   
               jLabel2.setIcon(icon);
            } catch (IOException e) {
                  jLabel2.setText("Εικόνα:"+selection[nextInt][0]);
                  JOptionPane.showMessageDialog(this, warning+selection[nextInt][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();
       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);
           }
       }
      
       //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]);
     
       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]][0];
       answ2=selection[ind[1]][0];
       if (index>3) answ3=selection[ind[2]][0];
       if (index>4) answ4=selection[ind[3]][0];
     
       jRadioButton3.setVisible(false);
       jRadioButton4.setVisible(false);
       jRadioButton5.setVisible(false);
     
       if (index>3)  jRadioButton3.setVisible(true); jRadioButton3.setText(answ3);
       if (index>4)  jRadioButton4.setVisible(true); jRadioButton4.setText(answ4);
     
       jRadioButton1.setText(answ1);
       jRadioButton2.setText(answ2);
       jRadioButton1.setEnabled(true);
       jRadioButton2.setEnabled(true);
       jRadioButton3.setEnabled(true);
       jRadioButton4.setEnabled(true);
     
       answ=selection[nextInt][0];
       quest=selection[nextInt][0];
       dbpedia=selection[nextInt][2];
       wiki=selection[nextInt][3];
       // System.out.println("Η απάντηση είναι:  "+answ);
       question[num]="Η ερώτηση ήταν: "+selection[0][1] +selection[nextInt][1]+";";
       answer[num]="Η σωστή απάντηση ήταν: " +selection[nextInt][0];
    }