Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EasyMode extends JPanel{
- int x=3,y=4;
- int r,c;
- private JPanel jpEasy;
- private JButton[][] Cards;
- private ImageIcon flipped,img1,img2,img3,img4,img5,img6;
- public EasyMode(){
- jpEasy=new JPanel(new GridLayout(x,y));
- flipped=new ImageIcon("flipped.png");
- Cards=new JButton[y][x];
- for(int r=0;r<y ;r++){
- for(int c=0;c<=x;c++){
- Cards[r][c] = new JButton(flipped);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement