apache / apache/netbeans

Caret color does not change when changing it in options->fonts and colors->highlighting

Open
#5,001 4 comments 0 reactions 0 assignees View on GitHub
Contribution welcome kind:bug UI
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 15

### What happened

The caret color does not change when changing it from the options dialog window and clicking "apply". Note that the caret color on the template editor (in the same dialog window) does change. But the caret color in the editor itself does not.

### How to reproduce

1. From a normal project window, open the "Options" window
2. Go to Fonts & Colors, then "highlighting" tab
3. change the caret color
4. click "apply"
5. See that the caret color on the main window does not change
6. Close the options window
7. Still no change.

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

No / Don't know

### Operating System

Mac OS Ventura

### JDK

OpenJDK Runtime Environment 17.0.2+8-LTS

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

This happens every time I try. There's an old workaround here:

https://superuser.com/questions/1368052/how-to-change-the-color-of-netbeans-cursor

but it does not work anymore. After restarting NetBeans the new caret color is updates.

Thanks so much for keeping NetBeans great! Love this IDE.

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

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the problem through Options > Fonts & Colors > Highlighting, comparing the template editor with the main editor after applying a caret color. Done means the main editor updates immediately when Apply is clicked and retains the color after the Options window is closed and NetBeans is restarted.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.