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

Win: Fatal errors using JavaFX ChoiceBox, Tooltip, Popup in Eclipse (RCP) View

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0.2, fx2.1
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Environment:

      I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit). My RCP target platform is based on eclipse 3.6 (galileo).

      Description

      I'm using JavaFX within an Eclipse RCP application. Any JavaFX popup (ChoiceBox, Tooltip, etc..) within an eclipse view causes a fatal exception to occur when clicking on the popup. The popups do appear, but clicking on them causes the fatal error.

      I created a standalone JavaFX application to confirm that the Popups work fine in that environment. They do.

      I also created a standalone SWT-based application (outside of an RCP) that embeds the FXCanvas within an SWT shell and the problem doesn't occur there either.

      But when the Combo is contained in an FXCanvas within and RCP view, the fatal exception occurs.

      Has anybody else seen this behavior?

      I tried it with JavaFX 2.0.2, 2.1 b17, 2.1 b19 (all 32bit)

      I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit).

      My RCP target platform is based on eclipse 3.6 (galileo).

      A simple example:

      <code>
      public class FXTestView extends ViewPart {
           public void createPartControl(Composite parent) {
                parent.setLayout(new FillLayout());
                new MyCanvas(parent, SWT.None);
           }

           static class MyCanvas extends FXCanvas {
                public MyCanvas(Composite parent, int style) {
                     super(parent, style);
                     configureScene();
                }

                private void configureScene() {
                     ChoiceBox combo = new ChoiceBox(FXCollections.observableArrayList("Choice 1", "Choice 2"));
                     
                     VBox vbox = new VBox();
                     vbox.getChildren().add(combo);

                     Scene scene = new Scene(vbox);
                     setScene(scene);
                }
           }
      }
      </code>

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              cbridgersjfx Chris Bridgers (Inactive)
            • Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: