SHARE
TWEET

Untitled

a guest Jun 17th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class EasyMode extends JPanel{
  2. int x=3,y=4;
  3. int r,c;
  4. private JPanel jpEasy;
  5. private JButton[][] Cards;
  6. private ImageIcon flipped,img1,img2,img3,img4,img5,img6;
  7. public EasyMode(){
  8.  
  9.     jpEasy=new JPanel(new GridLayout(x,y));
  10.     flipped=new ImageIcon("flipped.png");
  11.     Cards=new JButton[y][x];
  12.  
  13.     for(int r=0;r<y ;r++){
  14.         for(int c=0;c<=x;c++){
  15.              Cards[r][c] = new JButton(flipped);
  16.  
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top