protected void onChange ( ) { enabled = false ; if ( getDocument ( ) . getLength ( ) > 0 ) { enabled = true ; } buttonModel . setEnabled ( enabled ) ; }
Callback method that can be overwritten to provide specific action on change of document .