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

ChoiceBox on Kubuntu "locks" after initial selection.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u65
    • javafx

      FULL PRODUCT VERSION :
      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)



      ADDITIONAL OS VERSION INFORMATION :
      Linux Syntax 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      On my Kubuntu 14.04 Linux system the ChoiceBox does not properly respond to mouse clicks, or touchpad taps, after a first selection is made. This is true if the first selection comes from a ".getSelectionModel().selectFirst()" call, or from the user.

      The problem shows-up with all of the ChoiceBox sample code that I have tested. My mouse and touchpad work fine. I have tried making a jar file of the test, and running that on my Windows system, and that works as expected.


      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Save the test to the file "BadChoiceBox.java".
      2. Run: javac -Xlint BadChoiceBox.java
      3. Run: java BadChoiceBox
      4. In the GUI, in the empty ChoiceBox, select "item2".
      5. Then attempt to make a different selection. The ChoiceBox highlights when the mouse moves over it, but it will not click open to allow a different selection to be made.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The ChoiceBox should allow multiple changes of the selected choice item.
      ACTUAL -
      After the first selection, the ChoiceBox does not allow any subsequent selection.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.*;
      import javafx.scene.*;
      import javafx.scene.control.*;
      import javafx.scene.layout.*;
      import javafx.stage.*;

      public class BadChoiceBox extends Application {

        public void start(Stage primaryStage) {
          ChoiceBox<String> cb = new ChoiceBox<String>();
          cb.getItems().addAll("item1", "item2", "item3");
          VBox root = new VBox();
          root.getChildren().addAll(cb);
          Scene scene = new Scene(root,200,200);
          primaryStage.setScene(scene);
          primaryStage.show();
        }

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

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Use a different UI control.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: