@ Override protected void preparePaintComponent ( final Request request ) { if ( OPTION_CONTENT1 . equals ( rbSelect . getSelected ( ) ) ) { content . setText ( "This is content 1" ) ; } else if ( OPTION_CONTENT2 . equals ( rbSelect . getSelected ( ) ) ) { content . setText ( "This is content 2" ) ; } else if ( OPTION_CONTENT3 . equals ( rbSelect . getSelected ( ) ) ) { content . setText ( "This is content 3" ) ; } else { content . setText ( null ) ; } }
Set the content of the text field depending on the selected option in the radio button select .