Setting size of inner region of Java SWT shell window

后端 未结 3 1688
无人共我
无人共我 2021-01-21 12:56

In a Java SWT shell window, how do I set its inner size than its whole window frame size?

For instance, if I use shell.setSize(300, 250) this would make the whole window

3条回答
  •  我在风中等你
    2021-01-21 13:17

    If I get you right you should set the size of the inner component to the needed size and use the method pack() (of the frame).

提交回复
热议问题