public BasicFontPropertiesPane() { eventListenerList = new EventListenerList(); final FontNameUpdateHandler nameUpdateHandler = new FontNameUpdateHandler(); fontFamilyTextBox = new JTextField(); fontFamilyTextBox.getDocument().addDocumentListener( nameUpdateHandler ); fontFamilyList = new JList( createFontNameModel() ); fontFamilyList.addListSelectionListener( nameUpdateHandler ); final FontSizeUpdateHandler sizeUpdateHandler = new FontSizeUpdateHandler(); fontSizeTextBox = new JTextField(); fontSizeTextBox.getDocument().addDocumentListener( sizeUpdateHandler ); fontSizeList = new JList( createFontSizeModel() ); fontSizeList.addListSelectionListener( sizeUpdateHandler ); fontStyleList = new JList( createFontStyleModel() ); fontStyleList.getSelectionModel().addListSelectionListener( new FontStyleUpdateHandler() ); extendedFontPropertiesShowing = true; underlineCheckbox = new JCheckBox( Messages.getInstance().getString( "BasicFontPropertiesPane.Underline" ) ); underlineCheckbox.addChangeListener( new FontStyleUpdateHandler() ); strikethroughCheckbox = new JCheckBox( Messages.getInstance().getString( "BasicFontPropertiesPane.Strikethrough" ) ); strikethroughCheckbox.addChangeListener( new FontStyleUpdateHandler() ); }