Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement