java dialog 不显示_panel面板中的元素在dialog窗口中不能显示,求助~~~~

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

Panel p1,p2,p3,p4,p5,p6,p7,p8,p9,p10;

p1=new Panel(null);

p2=new Panel(null);

p3=new Panel(null);

p4=new Panel(null);

p5=new Panel(null);

p6=new Panel(null);

p7=new Panel(null);

p8=new Panel(null);

p9=new Panel(null);

p10=new Panel(null);

this.setLayout(null);

p1.setBounds(0, 40, 200, 40);

p2.setBounds(200, 40, 200, 40);

p3.setBounds(0, 80, 200, 40);

p4.setBounds(200, 80, 200, 40);

p5.setBounds(0, 120, 200, 40);

p6.setBounds(200, 120, 200, 40);

p7.setBounds(0, 160, 400, 40);

p8.setBounds(0, 200, 400, 40);

this.add(p1);

this.add(p2);

this.add(p3);

this.add(p4);

this.add(p5);

this.add(p6);

this.add(p7);

this.add(p8);

this.add(p9);

this.add(p10);

//p1.setBackground(Color.red);p8.setBackground(Color.red);

p1.add(new Label("请:输入 棋盘长度n(2到42):"));

p1.add(tn);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值