The main Options dialog window has buttons with OK on the left instead of on the right on Linux
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 28
### What happened
Problem:
-------------
On Linux, unlike other Netbeans dialog boxes where the OK button is on the right, the main Options dialog window has buttons with OK on the left.
I am refering to Netbeans 26 but maybe in following version as well.
The fix has to do with this:
--------------------------------------
Package: "Options Dialog and SPI"
File: OptionsDisplayerImpl.java
Line: 175
Line says: boolean isMac = Utilities.isMac();
It should say: boolean useMacButtonOrder = shouldUseMacButtonOrder();
In other netbeans dialog boxes, it is correct:
---------------------------------------------------------------
Like in NbPresenter.java:
./core.windows/src/org/netbeans/core/windows/services/NbPresenter.java:647:
final boolean useMacButtonOrder = shouldUseMacButtonOrder();
Many thanks.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Open the Options window from the Tools menu.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux
### JDK
openjdk version "17.0.16" 2025-07-15
### Apache NetBeans packaging
Apache NetBeans platform
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Open OptionsDisplayerImpl.java in the Options Dialog and SPI package and inspect the button-order logic around line 175. Compare it with the useMacButtonOrder handling in NbPresenter.java around line 647, then reproduce the Options dialog from the Tools menu on Linux. Done means the OK button appears on the right consistently with the other NetBeans dialogs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100