digitalmars.D.dwt - Help me on toolbar problem

Hi there,
I am reading SWT: A Developer's Notebook and tried some code in the book,sure I
also tried to re-organize the structure and to see what happens.In the attached
simple code,the Option menu,Window menu and toobar item CHECK does not work
properly.When I click on it,the application quit immediatley.I don't know why.
Can anyboy help me?
Thanks and best Regards,
Sam

Hi there,
I am reading SWT: A Developer's Notebook and tried some code in the book,sure
I also tried to re-organize the structure and to see what happens.In the
attached simple code,the Option menu,Window menu and toobar item CHECK does not
work properly.When I click on it,the application quit immediatley.I don't know
why.
Can anyboy help me?
Thanks and best Regards,
Sam