Created attachment 95506 [details]
This may only happen if the profile is not the default. Not sure. This can be seen when Font&Color is first selected or when language is changed.
This came to my attention by a jVi user who had some jvi navigation fail after changing the font. After discussion he realized that he had changed whitespace size and not the default font, and he thought that was a NB bug. When he changed the default everything was fine. Turns out there have been spuratic reports of this navigation problem for a long time without knowing why, some users fixed it by removing userdir.
SyntaxColoringPanel.setCurrentProfile() does lCategories.setSelectedIndex to 0, but then does refreshUI() which does updatePreview() which does preview.setParameters and this ends up firing a property change event which causes whitespace to be selected in category.
The attached patch is to ColorModel which is where the preview lives. The patch prevents firing change events while setParameters is running. Notice that the changes are made through an invokeLater.
*** This bug has been marked as a duplicate of bug 165431 ***