panel布局用null
每个button具体定坐标

解决方案 »

  1.   

    可以使用箱式布局管理器:
    Box box = Box.createVerticalBox();
    box.add(button1);
    box.add(button2);
    box.add(button3);
    panel.add(box);Ps:绝对定位还叫布局管理吗?
      

  2.   

    JBuilder 里面还有一个 VerticalFlowLayout
      

  3.   

    用箱式布局管理器怎么才能空出边距阿?按钮布满了整个panel
      

  4.   

    use gridlayout..
    when you create gridlayout, you can specifiy the verticalgap between components
      

  5.   

    把FlowLayout得源代码拿出来,将水平得布局算法改成垂直得就行了,工作量应该不是太大。