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 250662 - In "options" dialog "apply" button becomes enabled forever even without changes
Summary: In "options" dialog "apply" button becomes enabled forever even without changes
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 16:06 UTC by jmborer
Modified: 2015-11-04 19:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample application project (14.29 KB, application/zip)
2015-05-11 22:54 UTC, matvei
Details
Sample project (NETBEANS81-BETA) (14.81 KB, application/x-zip-compressed)
2015-11-04 19:04 UTC, matvei
Details
network configuration dump (ipconfig /all) (4.12 KB, text/plain)
2015-11-04 19:05 UTC, matvei
Details
Application log from sample project (NETBEANS81-BETA) (75.88 KB, application/octet-stream)
2015-11-04 19:06 UTC, matvei
Details
Screen recording of the problem (attached sample project running) (340.90 KB, image/gif)
2015-11-04 19:13 UTC, matvei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmborer 2015-02-24 16:06:18 UTC
When you first open the "options" dialog, the "apply" button is disabled. Then change any setting and the "apply" button becomes enabled. Click on the button: it becomes disabled and immediately returns to enabled state. It never returns to disabled state as long as you don't close the dialog.

Is this expected? IMHO, it is a bug. 

I noticed this weird behavior while developping a custom NB app.

Somehow related to https://netbeans.org/bugzilla/show_bug.cgi?id=241918



Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\projects\.netbeans\8.0
Cache directory: C:\projects\.netbeans\cache\8.0
Comment 1 jmborer 2015-02-24 16:09:09 UTC
Seems a duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=233997
Comment 2 matvei 2015-05-11 22:54:36 UTC
Created attachment 153606 [details]
Sample application project

I am also experiencing this bug, even with a totally clean, straight-from-the-template application with no custom code or modules added (attached). The only option categories/panels are the ones that shipped with NetBeans Platform.


Steps to reproduce (with attached sample project):
1) Build and run any application.
2) Go to Tools > Options
3) Press "Apply" a few times.

Note that "Apply" button is already enabled as soon as the dialog is displayed, with just the default panels shown. Observe that even after the "Apply" button is pressed, it gets re-enabled within 0.5 seconds.


Project built using: NetBeans IDE 8.0.2 (Build 201411181905)
NetBeans Platform: RELEASE80 pulled from http://bits.netbeans.org/nexus/content/groups/netbeans/
Java: 1.7.0_75; Java HotSpot(TM) 64-Bit Server VM 24.75-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US
Comment 3 Theofanis Oikonomou 2015-09-11 14:37:58 UTC
(In reply to jmborer from comment #1)
> Seems a duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=233997

I cannot reproduce either what you are describing here or what is described in that bug with NetBeans IDE Dev (Build 20150911-0e1eca6d3988). Please try a latest build and reopen if it still happens for you. Thank you for reporting.
Comment 4 matvei 2015-11-04 19:03:30 UTC
I am still experiencing this problem with NetBeans Platform 8.0.2 and 8.1-BETA. I am attaching a freshly-made sample project -- it's basically identical to the previous one, except for the newer platform version (8.1-BETA) and plugin versions (nbm-maven-plugin:4.0.1 and maven-compiler-plugin:3.3).

I am also attaching this application's log file, with FINEST logging enabled for org.netbeans.modules.options and org.netbeans.core.ui.options.general. The log file captures the following events:
- Line 127: Options dialog being opened. The Apply button is already enabled.
- Line 132: I press the Apply button. The button briefly becomes disabled again, then immediately re-enabled and focused.
- Line 440: I press the Apply button again. Same thing happens.
- Line 475: I press the OK button to dismiss the dialog.

I tried to narrow down the problem by hiding built-in Options categories one at a time, via layer.xml. I noticed that the "Apply" button is only permanently-enabled while the "General" tab is visible. Hiding the "General" tab restores normal/expected behavior.

It should also be noted that I am only seeing this bug when creating a Maven-based NetBeans application. I cannot reproduce this bug with an Ant-based application. Perhaps some difference between the project templates is exposing/hiding this bug?

Perhaps there is something in GeneralOptionsPanel (specifically, its isChanged() method) that causes the panel to permanently consider itself "changed"? Could have something to do with my local network/proxy configuration. Just in case, I am also attaching my network configuration (cleaned output of "ipconfig /all").
Comment 5 matvei 2015-11-04 19:04:13 UTC
Created attachment 157148 [details]
Sample project (NETBEANS81-BETA)
Comment 6 matvei 2015-11-04 19:05:26 UTC
Created attachment 157149 [details]
network configuration dump (ipconfig /all)
Comment 7 matvei 2015-11-04 19:06:24 UTC
Created attachment 157150 [details]
Application log from sample project (NETBEANS81-BETA)
Comment 8 matvei 2015-11-04 19:13:36 UTC
Created attachment 157151 [details]
Screen recording of the problem (attached sample project running)