Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

The main Options dialog window has buttons with OK on the left instead of on the right on Linux

未关闭 适合新手
#9,024 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
java
领域
desktop

调研方向

打开 Options Dialog and SPI package 中的 OptionsDisplayerImpl.java,检查第 175 行附近的按钮顺序逻辑。将其与 NbPresenter.java 第 647 行附近对 useMacButtonOrder 的处理进行比较,然后在 Linux 上从 Tools 菜单重现 Options 对话框。完成标准是 OK 按钮与其他 NetBeans 对话框一致地显示在右侧。

由索引模型根据 Issue 内容生成。

描述

kind:bug needs:triage os:linux os:macos Platform UI
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

主要语言
Java
星标
3.1k
派生
939
平均合并
4 天 21 小时
30 天内合并 PR
24

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/netbeans 的其他 Issue

查看 apache/netbeans 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。