apache / apache/netbeans

Double HiDPI scaling when started on JetBrains JDK

Open
#7,780 10 comments 1 reaction 0 assignees View on GitHub
kind:bug needs:triage os:linux UI
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 23 release candidate

### What happened

Netbeans 23 launcher auto-detects HiDPI and set's `GDK_SCALE=2`. However, some jdk especially 21 and JBR distributions handle scaling naively. Setting `GDK_SCALE=2` in launch script results in 4x scaling.

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

Use temurin jdk 21 or Jetbrain JDK 21 and luanch netbeans 23. The netbeans UI on HiDPI screen with 2x scale looks like 4x scaled.

### Did this work correctly in an earlier version?

Apache NetBeans 22

### Operating System

Arch Linux

### JDK

21

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

Start with the NetBeans launcher script and reproduce the issue on Arch Linux with a HiDPI display, JDK 21, and the binary ZIP. Compare Temurin and JetBrains JDK behavior around GDK_SCALE=2; done means NetBeans no longer renders at 4x scale while HiDPI scaling remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, linux
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.