SWT/別ウィンドウを開く
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
** SubFormのスニペット [#g086edb7]
public class SubForm {
private Shell subShell;
public Shell open(Shell shell) {
subShell = new Shell(shell);
subShell.setText("subShell");
// DESIGNER: Add controls before this line.
subShell.open();
return subShell;
}
}
** 上のSubFormを呼ぶ方のスニペット [#m63d9f3a]
button = new Button(shell, SWT.NONE);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
SubForm subform = new SubForm();
subform.open(shell);
}
});
----
この記事は
#vote(おもしろかった[24],そうでもない[11])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
** SubFormのスニペット [#g086edb7]
public class SubForm {
private Shell subShell;
public Shell open(Shell shell) {
subShell = new Shell(shell);
subShell.setText("subShell");
// DESIGNER: Add controls before this line.
subShell.open();
return subShell;
}
}
** 上のSubFormを呼ぶ方のスニペット [#m63d9f3a]
button = new Button(shell, SWT.NONE);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
SubForm subform = new SubForm();
subform.open(shell);
}
});
----
この記事は
#vote(おもしろかった[24],そうでもない[11])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: