javafx scene builder setting accelerator sets the hot key as “N” instead of “ALT+N” for new menu item under the file menu of a text editor










0














I am creating a text editor using the gluon scene builder with java fx. The scene builder version is SceneBuilder-10.0.0 used with java version "10.0.1". I have a project to build a Text Editor. While building the components in the scene builder, under the File menu, I have the following menu items: New, Open, Save, Save As, and Close. I am trying to set the shortcut keys in the scene builder itself. There is an option to set the accelerator (under the Inspector Panel, in Properties) with a key. However, when I am setting it for the new menu item (and other menu items), it is set as this ignore ALT+N (Please click on the link to see the image) which makes the short cut key in the text editor to only "N" and not "ALT+N". I tried to code it in the controller class also with setAccelerator(), still it gives me similar results. I even donwloaded a fresh version of the scene builder and still does not work as expected. How can I get the short key to be as:



New ALT+N


under the new menu item, instead of the current:



New N









share|improve this question





















  • You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
    – Slaw
    Nov 12 at 15:22










  • I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
    – Sam Vitare
    Nov 12 at 15:57











  • Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
    – Sam Vitare
    Nov 12 at 16:12










  • The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
    – Slaw
    Nov 12 at 16:20











  • Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
    – Sam Vitare
    Nov 12 at 20:15
















0














I am creating a text editor using the gluon scene builder with java fx. The scene builder version is SceneBuilder-10.0.0 used with java version "10.0.1". I have a project to build a Text Editor. While building the components in the scene builder, under the File menu, I have the following menu items: New, Open, Save, Save As, and Close. I am trying to set the shortcut keys in the scene builder itself. There is an option to set the accelerator (under the Inspector Panel, in Properties) with a key. However, when I am setting it for the new menu item (and other menu items), it is set as this ignore ALT+N (Please click on the link to see the image) which makes the short cut key in the text editor to only "N" and not "ALT+N". I tried to code it in the controller class also with setAccelerator(), still it gives me similar results. I even donwloaded a fresh version of the scene builder and still does not work as expected. How can I get the short key to be as:



New ALT+N


under the new menu item, instead of the current:



New N









share|improve this question





















  • You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
    – Slaw
    Nov 12 at 15:22










  • I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
    – Sam Vitare
    Nov 12 at 15:57











  • Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
    – Sam Vitare
    Nov 12 at 16:12










  • The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
    – Slaw
    Nov 12 at 16:20











  • Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
    – Sam Vitare
    Nov 12 at 20:15














0












0








0







I am creating a text editor using the gluon scene builder with java fx. The scene builder version is SceneBuilder-10.0.0 used with java version "10.0.1". I have a project to build a Text Editor. While building the components in the scene builder, under the File menu, I have the following menu items: New, Open, Save, Save As, and Close. I am trying to set the shortcut keys in the scene builder itself. There is an option to set the accelerator (under the Inspector Panel, in Properties) with a key. However, when I am setting it for the new menu item (and other menu items), it is set as this ignore ALT+N (Please click on the link to see the image) which makes the short cut key in the text editor to only "N" and not "ALT+N". I tried to code it in the controller class also with setAccelerator(), still it gives me similar results. I even donwloaded a fresh version of the scene builder and still does not work as expected. How can I get the short key to be as:



New ALT+N


under the new menu item, instead of the current:



New N









share|improve this question













I am creating a text editor using the gluon scene builder with java fx. The scene builder version is SceneBuilder-10.0.0 used with java version "10.0.1". I have a project to build a Text Editor. While building the components in the scene builder, under the File menu, I have the following menu items: New, Open, Save, Save As, and Close. I am trying to set the shortcut keys in the scene builder itself. There is an option to set the accelerator (under the Inspector Panel, in Properties) with a key. However, when I am setting it for the new menu item (and other menu items), it is set as this ignore ALT+N (Please click on the link to see the image) which makes the short cut key in the text editor to only "N" and not "ALT+N". I tried to code it in the controller class also with setAccelerator(), still it gives me similar results. I even donwloaded a fresh version of the scene builder and still does not work as expected. How can I get the short key to be as:



New ALT+N


under the new menu item, instead of the current:



New N






javafx keyboard-shortcuts text-editor scenebuilder acceleratorkey






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 at 14:16









Sam Vitare

143




143











  • You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
    – Slaw
    Nov 12 at 15:22










  • I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
    – Sam Vitare
    Nov 12 at 15:57











  • Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
    – Sam Vitare
    Nov 12 at 16:12










  • The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
    – Slaw
    Nov 12 at 16:20











  • Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
    – Sam Vitare
    Nov 12 at 20:15

















  • You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
    – Slaw
    Nov 12 at 15:22










  • I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
    – Sam Vitare
    Nov 12 at 15:57











  • Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
    – Sam Vitare
    Nov 12 at 16:12










  • The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
    – Slaw
    Nov 12 at 16:20











  • Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
    – Sam Vitare
    Nov 12 at 20:15
















You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
– Slaw
Nov 12 at 15:22




You likely have the modifier set to ALT_ANY but I think you meant to set it to ALT_DOWN.
– Slaw
Nov 12 at 15:22












I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
– Sam Vitare
Nov 12 at 15:57





I set the modifier to ALT_ANY. Oh yes, it works when I set it to ALT_DOWN. And now I have ALT+N. But what does ALT_DOWN and ALT_Up mean? Thanks a lot. Was struggling with this the whole day yesterday.
– Sam Vitare
Nov 12 at 15:57













Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
– Sam Vitare
Nov 12 at 16:12




Now I have another problem. When I set a short cut key for the "File" menu and run the text editor and click ALT+F (for the file menu) with my editor window selected, it does not show me the drop down box with the File menu items (New, Open, Save, Save As, and Close). My shortcut keys for the menu items work fine, but for the File menu, does not work with ALT+F. How do I get the drop down box to work with ALT+F for the File menu?
– Sam Vitare
Nov 12 at 16:12












The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
– Slaw
Nov 12 at 16:20





The documentation of KeyCombination.ModifierValue explains what ANY, DOWN, and UP mean. Also, your new issue sounds like you're trying to use mnemonics, not accelerators. Set the text of the Menu to "_File" and set mnemonicParsing to true.
– Slaw
Nov 12 at 16:20













Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
– Sam Vitare
Nov 12 at 20:15





Thanks a lot. That worked too. I am so sorry but, I have an additional problem. I have a font menu under which I have radio button menu items (monospaced, serif, sans-serif) and checkbox menu items (italic, bold). The application does not show the circular graphics next to the radio button menu item names, neither does it show the square graphics next to the checkbox menu item names. They operate perfectly, except for the invisible graphical representation (circle for radio buttons and boxes for checkboxes) next to the menu item names. What can I do to make these show up?
– Sam Vitare
Nov 12 at 20:15


















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264040%2fjavafx-scene-builder-setting-accelerator-sets-the-hot-key-as-n-instead-of-alt%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264040%2fjavafx-scene-builder-setting-accelerator-sets-the-hot-key-as-n-instead-of-alt%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Museum of Modern and Contemporary Art of Trento and Rovereto

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully