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

Pane as root breaks the Scene(originally could only move horizontal, now barely is clickable to move)/ Light issue?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • None

      From part of the thread here https://javafx-jira.kenai.com/browse/RT-31021#comment-347296

      and shown in the last part of my video here http://s1139.photobucket.com/user/ThekonradZuse/media/Coding/Video10_zps0e7a3112.mp4.html

          
          public void setDisplay()
          {
              dis = new Display(screenSize.getWidth()/2,screenSize.getHeight()/2, 600.0,800.0);
          }
          
          public void setRoot()
          {
            root = new Pane(w,w2,dis);
          // addLight(root);
          }
          
          public void setScene()
          {
              
              scene = new Scene(root,screenSize.getWidth(),screenSize.getWidth(),true);
             // scene.getStylesheets().add("css/menu.css");
              addCamera(scene);
              
          }
          
          public void setStage()
          {
         // stage.initStyle(StageStyle.DECORATED);
              stage.setTitle("Plan Smasher");
              stage.setHeight(screenSize.getHeight());
              stage.setWidth(screenSize.getWidth());
              
              
              stage.setScene(scene);
              stage.show();
          }

      I am having an issue when I change my root to a Pane, from a Group.

      Everything works when I use a Group as the root, but when the Pane is placed at first caused only the Pane to move horizontally(Build 89), but now Build 94 makes it so only a certain area on the right side is clickable, and if I drag the "Display" out too far it wont connect. As you see the Shelf I drag onto it also is working with that position on the edge too.

      I also can ONLY drag the w2 node, with the shelves, the other w window wont move, and the pane moves barely.

      It might have something to do with what Pavel mentioned in another thread, with the computed size and such.

      I really don't have a short code example atm(will make one after I post this), and I rather not post all of my code here, but Pavel S has it all, and if someone else needs it I will feel free to add it. I have posted a little bit that might be useful with 1 error.

      But as you can see from the video I am changing Group root; root = new Group(w,w2,dis); to Pane. Then changing the Iight to a Pane.

      If I get rid of the line

          
          public void setRoot()
          {
            root = new Pane(w,w2,dis);
          // addLight(root);
          }
      for adding the light I can move the pane around fine, but the first window is still non-clickable at all.


      If I get rid of the lighting, for some reason I still get light, but it will break Pane, in this video.

      http://s1139.photobucket.com/user/ThekonradZuse/media/Coding/Video12_zpsb4b8ff93.mp4.html

      If I use Group as the Root, it still shows a light, but when I place my objects, the light is gone.......... The lighting is disabled though?

      First part: Originally Pane was draggable on the edge with the lighting, but for some reason tha isn't the case anymore.

      Second Part: Now I get the issue with the light off, and It for some reason clips my box's as you can see when I rotate it. Half of the display is gone. (Light still exists)?

      Third Part: When I use Group with light off it still shows the lighting, and when I drag/drop a shelf it's fine, but if I do a model it will break the lighting the shouldn't even exist in the first place. and create a dimmer light which I noticed originally when upgrading to 94, which I also made a bug report on.

      https://javafx-jira.kenai.com/browse/RT-31203


            yaow Yao Wang (Inactive)
            jorsawjfx Jay Orsaw (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: