Top / SWT / 別ウィンドウを開く

SubForm?のスニペット

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?を呼ぶ方のスニペット

button = new Button(shell, SWT.NONE);
button.addSelectionListener(new SelectionAdapter() {
  public void widgetSelected(SelectionEvent e) {
    SubForm subform = new SubForm();
    subform.open(shell);
  }
});

この記事は

選択肢 投票
おもしろかった 24  
そうでもない 11  

Top / SWT / 別ウィンドウを開く

現在のアクセス:14011


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-12-20 (火) 17:12:11 (2676d)