将 JFXTextField 右键菜单改为 JFX 样式#5292
Merged
Glavo merged 11 commits intoHMCL-dev:mainfrom Jan 25, 2026
Hidden character warning
The head ref may contain hidden characters: "\u8fd0\u5e37\u5e44\u82f1\u96c4\u51e0\u62c2\u8896\u9634\u8c0b\u9633\u8c0b\u660e\u4ec7\u6697\u6597\u5316\u4f5c\u4e00\u6c5f\u6d4a\u6d6a\u4e1c\u6d41"
Merged
Conversation
Contributor
Contributor
Contributor
Contributor
Contributor
|
「设置 > 通用 > 下载 > 代理」的四个字段框也会崩,和上面的崩溃报告几近相同。 编辑:发现只有字段为空时会崩溃,有内容时不会。 |
Contributor
|
「账户列表 > 上传/编辑皮肤 > 本地皮肤图片文件 / Blessing Skin 服务器」的字段框也会崩,日志和上面几近相同。 |
Member
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request replaces the default JavaFX context menus in text input controls (JFXTextField, JFXTextArea, JFXPasswordField, and editable JFXComboBox) with custom JFX-styled context menus. The implementation provides a consistent Material Design look for right-click menus across text input controls.
Changes:
- Added internationalization strings for context menu items (undo, redo, cut, copy, paste, delete, select all) in English, Simplified Chinese, and Traditional Chinese
- Created new JFX control classes (JFXTextField, JFXTextArea, JFXPasswordField, JFXComboBox) with custom context menu integration
- Added new SVG icons (CONTENT_CUT, CONTENT_PASTE, REDO, UNDO) and CSS styling for popup menu scrollbars
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 20 comments.
Show a summary per file
| File | Description |
|---|---|
| I18N.properties, I18N_zh.properties, I18N_zh_CN.properties | Added internationalized strings for context menu items |
| root.css | Added CSS styling to hide scrollbars in popup menus |
| PopupMenu.java | Updated scroll pane initialization (introduces redundant code) |
| SVG.java | Added SVG path definitions for new menu icons |
| FXUtils.java | Added useJFXContextMenu utility method and organized imports |
| JFXTextField.java | New control class with JFX-styled context menu |
| JFXTextArea.java | New control class with JFX-styled context menu |
| JFXPasswordField.java | New control class with JFX-styled context menu (contains issues) |
| JFXComboBox.java | New control class with JFX-styled context menu for editable mode (contains critical issue) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Glavo
pushed a commit
that referenced
this pull request
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





https://github.com/sshahine/JFoenix/blob/edebf277497437bcc2298f41f30ebfefa8fa3e13/jfoenix/src/main/java/com/jfoenix/controls/JFXTextField.java