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

[ComboBox] [ColorPicker] [DatePicker] Incorrect behavior of ContextMenu.

XMLWordPrintable

      There are two wrong behaviors observed with ContextMenu added to the three controls ComboBox, DatePicker & ColorPicker.
      1. Popup is displayed on mouse right button click.
      2. ContextMenu does not hide when the control is removed from scene.

      Steps:
      1. Execute the attached program.
      2. Right click on any control to show the related ContextMenu.
      => Observe that both context menu & popup are displayed.

      3. Click on the popup.
      4. onAction listener is called and the listener remove that control from scene.
      => Observe that the ContextMenu is still shown.

      Expected behavior:
      1. Popup should be displayed only on left mouse click.
      2. ContextMenu should hide when the control is removed from scene.

            arapte Ambarish Rapte
            arapte Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: