该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
class puTongBan extends JFrame{JPanel shouPaiCuenFang;//卡牌存放
JButton chuPaiAnNiu;//出牌按钮JButton kaPaiAnNiu;//卡牌按钮
JLabel jl1;//背景标签JLabel wanJiaJueSePhoto,diRenJueSePhoto;//角色图片
public puTongBan (){ jl1=new JLabel(new ImageIcon("src\\game2_1\\游戏背景.png")); wanJiaJueSePhoto=new JLabel(new ImageIcon("src\\game2_1\\玩家.png")); diRenJueSePhoto=new JLabel("敌人"); chuPaiAnNiu=new JButton("出牌"); kaPaiAnNiu=new JButton("卡牌"); kaPaiAnNiu.setFont(new Font("楷书",Font.BOLD,100)); shouPaiCuenFang=new JPanel(); shouPaiCuenFang.add(kaPaiAnNiu);
this.add(jl1); this.add(shouPaiCuenFang); this.add(wanJiaJueSePhoto); this.setLayout(null); shouPaiCuenFang.setLayout(new FlowLayout()); jl1.setBounds(0, 0, 1200, 800); shouPaiCuenFang.setBounds(300, 550, 750, 250); wanJiaJueSePhoto.setBounds(1050, 550, 150, 250); this.setTitle("普通版"); this.setResizable(false); this.setSize(1200,800); this.setLocation(120,25); this.setVisible(true); }}