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

Mnemonics on Linux is not working as expected

    Details

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

      jdk 1.8.0 b76
      Ubuntu 12.04

      Description

      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;
          }
      }

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: