#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( SubwindowExample , self ) . __init__ ( ) #NEWLINE# self . _subwindow = Window ( 'A subwindow' ) #NEWLINE# layout = self . _subwindow . getContent ( ) #NEWLINE# layout . setMargin ( True ) #NEWLINE# layout . setSpacing ( True ) #NEWLINE# message = Label ( 'This is a subwindow' ) #NEWLINE# self . _subwindow . addComponent ( message ) #NEWLINE# close = Button ( 'Close' , CloseListener ( self ) ) #NEWLINE# layout . addComponent ( close ) #NEWLINE# layout . setComponentAlignment ( close , Alignment . TOP_RIGHT ) #NEWLINE# opn = Button ( 'Open subwindow' , OpenListener ( self ) ) #NEWLINE# self . addComponent ( opn )