Mnemonics on Linux is not working as expected

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • Environment:

      jdk 1.8.0 b76
      Ubuntu 12.04

      To reproduce push Alt key.
      The line under the 'B' button is expected to remain but it disappears.

      public class MnemonicsTest extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              
              Parent root = createScene();
              
              Scene scene = new Scene(root, 300, 250);
              
              primaryStage.setTitle(VersionInfo.getRuntimeVersion());
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }

          private Parent createScene() {
              
              Button button = new Button("_Button");
              button.setMnemonicParsing(true);
              
              HBox root = new HBox(5);
              root.getChildren().add(button);
              
              return root;
          }
      }

            Assignee:
            Mick Fleming
            Reporter:
            Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: