This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218375 - Colors are unintentionally changed
Summary: Colors are unintentionally changed
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 13:37 UTC by Jiri Prox
Modified: 2012-09-21 02:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-09-14 13:37:14 UTC
The color and style of font decoration are randomly changed without user intention when browsing the settings.

Steps to reproduce:
1) start IDE with fresh userdir
2) open some java file
3) open Fonts&Colors
4) use mouse to select categories (language: All Languages)
   a) select 'Whitespace' -> all is fine
   b) select category "URL"
   -> from now on - all categories which does not have any decoration set display  'blue' color (but this is only minor issue)
   c) select 'Warnings'
   d) select 'Whitespace'

-> White space are now set to have yellow wave underline, if user not press OK the color in editor are changed according to setting! 
   

Product Version: NetBeans IDE Dev (Build 201209120001)
Updates: Updates available
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: D:\udir-5
Cache directory: D:\udir-5\var\cache
Comment 1 Milutin Kristofic 2012-09-19 12:17:23 UTC
I tried debug it and I think there is problem in 

cbEffectColor.setSelectedItem (new ColorValue (null, null)); at SyntaxColoringPanel:781 
and
combo.setSelectedIndex(combo.getItemCount()-2); at ColorComboBoxSupport:112

Can you look at it, Standa?
Comment 2 Stanislav Aubrecht 2012-09-19 14:01:42 UTC
core-main d785cb8f30bc
Comment 3 Quality Engineering 2012-09-21 02:28:37 UTC
Integrated into 'main-golden', will be available in build *201209210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d785cb8f30bc
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #218375 - do not listen to combo changes when you aren't supposed to