protected Component createCustomEditor ( ) { JPanel panel ; panel = new JPanel ( new BorderLayout ( ) ) ; panel . setBorder ( BorderFactory . createEmptyBorder ( 5 , 5 , 5 , 5 ) ) ; m_EditComponent = ( ClassOptionEditComponent ) getEditComponent ( ( ClassOption ) getValue ( ) ) ; m_EditComponent . addChangeListener ( new ChangeListener ( ) { public void stateChanged ( ChangeEvent e ) { m_EditComponent . applyState ( ) ; setValue ( m_EditComponent . getEditedOption ( ) ) ; } } ) ; panel . add ( m_EditComponent , BorderLayout . CENTER ) ; return panel ; }
Creates the custom editor .