Forum Stats

  • 3,783,734 Users
  • 2,254,825 Discussions
  • 7,880,523 Comments

Discussions

How I can resize lines in Panel after full screen

User_ZFPS0
User_ZFPS0 Member Posts: 1 Green Ribbon

I have lines and circles in Panel (I can change layout)

After click to full screen button.

How I can resize it.

I tried that. But it very slow

   class WindowsResizeListener implements ChangeListener<Number> {

      @Override
      public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
         Scene scene = SceneMaker.make(metric, stage.getWidth(), stage.getHeight());
         stage.setScene(scene);
      }
   }


Tagged: