8

When a mnemonic character "_" is added to the menu text, we have to press the Alt key to make the mnemonic underline appear. How to let the menu mnemonic underline appear always before we press Alt?

4

1 回答 1

11

要使助记符下划线始终可见,只需将以下内容添加到您的 css 文件中:

.mnemonic-underline {
    -fx-stroke: -fx-text-base-color;
}
于 2013-12-17T01:07:22.767 回答