67,513
社区成员
发帖
与我相关
我的任务
分享
Box userBox = Box.createVerticalBox();
NodeIcon nodeIcon=new NodeIcon("123.png", true);
NodeIcon nodeIcon1=new NodeIcon("123.png", true);
Box b = Box.createVerticalBox();
b.add(nodeIcon);
JPanel j =new JPanel();
JPanel j1 =new JPanel();
j.add(b);
Box a = Box.createVerticalBox();
a.add(nodeIcon1);
j1.add(a);
userBox.add(j);
userBox.add(j1);
this.add(userBox);
this.pack();
this.setVisible(true);