question: public void resetGUI ( ) { String interString ; if ( lineColorItem == null ) { interString = i18n . get ( DrawingAttributes . class , "lineColorItem" , "Change Edge Color" ) ; lineColorItem = new JMenuItem ( interString ) ; lineColorItem . setActionCommand ( LineColorCommand ) ; lineColorItem . addActionListener ( this ) ; interString = i18n . get ( DrawingAttributes . class , "lineColorItem" , I18n . TOOLTIP , "Change edge color for rendering." ) ; lineColorItem . setToolTipText ( interString ) ; } if ( fillColorItem == null ) { interString = i18n . get ( DrawingAttributes . class , "fillColorItem" , "Change Fill Color" ) ; fillColorItem = new JMenuItem ( interString ) ; fillColorItem . setActionCommand ( FillColorCommand ) ; fillColorItem . addActionListener ( this ) ; interString = i18n . get ( DrawingAttributes . class , "fillColorItem" , I18n . TOOLTIP , "Change fill color for rendering." ) ; fillColorItem . setToolTipText ( interString ) ; } if ( selectColorItem == null ) { interString = i18n . get ( DrawingAttributes . class , "selectColorItem" , "Change Highlight Edge Color" ) ; selectColorItem = new JMenuItem ( interString ) ; selectColorItem . setActionCommand ( SelectColorCommand ) ; selectColorItem . addActionListener ( this ) ; interString = i18n . get ( DrawingAttributes . class , "selectColorItem" , I18n . TOOLTIP , "Change highlight edge color rendered during selection." ) ; selectColorItem . setToolTipText ( interString ) ; } if ( mattingColorItem == null ) { interString = i18n . get ( DrawingAttributes . class , "mattingColorItem" , "Change Matted Edge Color" ) ; mattingColorItem = new JMenuItem ( interString ) ; mattingColorItem . setActionCommand ( MattingColorCommand ) ; mattingColorItem . addActionListener ( this ) ; interString = i18n . get ( DrawingAttributes . class , "mattingColorItem" , I18n . TOOLTIP , "Change the color of the border around the edge." ) ; mattingColorItem . setToolTipText ( interString ) ; } if ( mattedCheckBox == null ) { interString = i18n . get ( DrawingAttributes . class , "mattedEnableItem" , "Enable Matting on Edge" ) ; mattedEnabledItem = new JCheckBoxMenuItem ( interString , matted ) ; mattedEnabledItem . setActionCommand ( MattedCommand ) ; mattedEnabledItem . addActionListener ( this ) ; interString = i18n . get ( DrawingAttributes . class , "mattedEnableItem" , I18n . TOOLTIP , "Enable/Disable matting on edge." ) ; mattedEnabledItem . setToolTipText ( interString ) ; } if ( stroke instanceof BasicStroke ) { BasicStrokeEditorMenu tmpbse = getBasicStrokeEditor ( ) ; if ( tmpbse != null ) { tmpbse . setBasicStroke ( ( BasicStroke ) stroke ) ; } } }
target:  Updates the color and line stroke control buttons to match the current settings.