#topicpath
----
** SubFormのスニペット
 public class SubForm {
 	private Shell subShell;
   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;
 	}
   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);
 	}
   public void widgetSelected(SelectionEvent e) {
     SubForm subform = new SubForm();
     subform.open(shell);
   }
 });


----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS