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 233997 - Apply button is activated when no setting is changed
Summary: Apply button is activated when no setting is changed
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 08:23 UTC by Jiri Prox
Modified: 2016-07-07 07:15 UTC (History)
1 user (show)

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 2013-08-06 08:23:54 UTC
Apply button in Options is activated when selecting customizable hint

Steps to reproduce:
1) open Hints settings
2) change some setting for Comparing Strings useing == or != hint
3) press OK
4) open Hints settings
5) select Comparing Strings useing == or != hint 

-> apply button is enabled, although no changes are made


Product Version: NetBeans IDE Dev (Build 201308042300)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b40
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b98
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 MackSix 2013-08-17 15:51:51 UTC
This is what happens to me: 

1. Uncheck "Comparing Strings useing == or != hint" and then check it again.
2. Click Apply and then click OK.
3. Open options again and the Apply button is now always enabled.
4. Change tabs and close Options dialog with OK or Cancel button.

I open Options dialog, the Apply button is still enabled. 

I can get the Apply button to stop this behavior if I click it on another tab or panel, but sometimes this will cause other problems that lead to Fonts & Options panel going blank and/or the Language field in the On Save, Code Completion or Formatting Panels being blank. 

Restarting NetBeans may be required to line it back out.

Product Version: NetBeans IDE Dev (Build 201308152300)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b38
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 MackSix 2013-08-30 10:21:37 UTC
This occurs on some setting and not the others. The problem is if the label is click on, the Apply button gets enabled.

"Compare Strings using == or !=" happens to be one of the nodes that does this and if you close the dialog box with it highlighted in blue and you reopen it, the fact the line is higlighted in blue, causes the Apply button to be enabled.

If you click on a label that doesn't do that (like Redundant Conditional Statement below it)  and then close and reopen the dialog box, the Apply button stays disabled.
Comment 3 MackSix 2014-02-21 06:56:51 UTC
Now the button will be deactivated if you click OK and open the panel again, but checking/unchecking several options around "Comparing Strings useing == or != hint" may cause the apply button to reactivate after you press it.

Still valid in:

Product Version: NetBeans IDE Dev (Build 201402200001)
Updates: Updates available
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 4 Martin Balin 2016-07-07 07:15:52 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss