XYLayout是什么东西啊,我在JAVA2的DOC里找不到啊

解决方案 »

  1.   

    通过坐标来定位的布局方式,jbuilder带的
      

  2.   

    同意楼上
    例:private void jbInit() throws Exception  {
        //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
        contentPane = (JPanel) this.getContentPane();
        jButton1.setText("jButton1");
        contentPane.setLayout(xYLayout1);
        this.setSize(new Dimension(400, 300));
        this.setTitle("Frame Title");
        contentPane.add(jButton1,   new XYConstraints(79, 109, 88, 32));//这里就是添加个button
      }
      

  3.   

    Borland特有的布局管理器 你可以按XYLayout设计后转为GridBagLayout就可以了 而且布局的伸缩性更好。