private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        // TODO add your handling code here:
          JFrame frame= new JFrame();
        //  Label back = new Label("C:\\Users\\Eng Omnia\\Pictures\\project\\images.jpg");
jFrame3.setVisible(false);

        Board board = new Board();
        board.getPlayer().setDialog(jDialog1);
//board.setArrow();
        board.setType(1);
        frame.add(board);
        board.setDialog(jDialog1);
        board.setFrame(frame);
        //board.getPlayer().setPlayer((ImageIcon) button.getIcon());
        board.setForStack();
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension d = tk.getScreenSize();
        frame.setSize(d.width,d.height);
frame.setVisible(true);
    }//GEN-LAST:event_jButton10ActionPerformed