Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118871

Mnemonics on Linux is not working as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • 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;
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported: