0
我使用Eclipse RCP的開發用戶界面。我創建了一些按鈕和我想改變自己的規模和location.I使用的方法setLocation()和的setSize(),但沒有得到任何結果:無法更改按鍵的大小和位置,與Eclipse RCP?
Composite top = new Composite(parent, SWT.NONE);
GridLayout layout1 = new GridLayout(2, true);
top.setLayout(layout1);
Button buttonEdit = new Button(top, SWT.PUSH);
buttonEdit.setText("Edit");
buttonEdit.setLocation(10,10);
buttonEdit.setSize(50, 20);
任何想法? 非常感謝
或者使用的WindowBuilder,這就是Eclipse 3.7的一部分。 –
,相同的軟件有不同的名稱:-) –