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.
When the Options Dialog is opened using: import org.netbeans.api.options.OptionsDisplayer; OptionsDisplayer.getDefault().open("id", true); The custom application Options Dialog is opened as a modal dialog as expected but it results in a the OptionsPanelController method applyChanges() to not be called when either the "Apply" or "OK" button is pressed. When the following call is made instead: OptionsDisplayer.getDefault().open("id", false); The custom application Options Dialog is opened as a non-modal dialog as expected and the OptionsPanelController method applyChanges() is called when the "Apply" or "OK" button is pressed. P.S. Is it possible to hide/remove the "Apply" button?
Changeset: 9812875354af Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2015-07-08 13:14 Message:
The problem was not that applyChanges() was not called. There was some weird NbPresenter issue. I tried to work around it and now it seems to work as expected. At least for my dummy options panel and dummy action that opens it as modal dialog. Please try a latest build and reopen if it still does not work for you. Thank you
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9812875354af User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Task #252874 - An Options Dialog that is modal does not call applyChanges method