不是说没有人告诉你,而是SWT没有这种功能。Wait until eclipse 3 or submit your question to eclipse.org

解决方案 »

  1.   

    是吗,那我还有个别的问题。我用SashForm作了一个多窗体,我想让其中一个窗体不能改变大小,怎么做。
      

  2.   

    …………你怎么净问这麻烦的………………办法是通过事件监听,强制取消用户的动作…… child3.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) {
    } public void controlResized(ControlEvent e) {
    child3.setSize(100, 100);//假设这是你的默认大小
    }
    });