NetBeans 平台:如何禁用特定选项对话框类别?

问题描述

我必须使用 NetBeans 平台和 JavaFX 11 对胖客户端进行编程。其中一项要求是为整个应用程序提供认的深色主题模式,并删除选项对话框类别 Keymaps 和子类别 Look并感觉在外观类别中@H_404_2@。我在网上搜索了合适的 API,但只找到了 an API to add new (sub) categories to the options dialog

enter image description here

解决方法

为了完整起见,我添加了解决我的问题的代码片段:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
     <folder name="OptionsDialog">
         <folder name="Appearance">
             <file name="org-netbeans-core-windows-options-LafOptionsPanelController.instance_hidden"/>
         </folder>
         <file name="Keymaps.instance_hidden"/>
     </folder>
</filesystem>

layer.xml 中的上述代码导致 enter image description here