开发者

SWT in eclipse version 4.1 add additional dialogs

开发者 https://www.devze.com 2023-03-12 19:13 出处:网络
I am very new to swt and im my example I am using the following code for the shell and the display: final GridLayout layout = new GridLayout(2, false);

I am very new to swt and im my example I am using the following code for the shell and the display: final GridLayout layout = new GridLayout(2, false); parent.setLayout(layout);

I am trying to open a new ,'panel' as it is called in java, I think in swt it is a new displ开发者_运维百科ay/dialog? when a button is pressed in the opening shell? I have looked everywhere for an example and I tried so much and cannot get it to work. Any ideas on what I would put into my Listener?

Thanks, Ann.


The equivalent to JPanel is a Composite in SWT. You should consider to read http://www.eclipse.org/swt/snippets/ for examples.

You may also check out http://www.eclipse.org/recommenders/ which might be of help when learning SWT.

0

精彩评论

暂无评论...
验证码 换一张
取 消