Package javafx.stage

Examples of javafx.stage.Popup.show()


            });
            popup.setAutoHide(true);
            popup.getContent().add(frame);
            popup.setX(getScene().getWindow().getX() + getScene().getWindow().getWidth() / 2 - image.getWidth() / 2);
            popup.setY(getScene().getWindow().getY() + getScene().getWindow().getHeight() / 2 - image.getHeight() / 2);
            popup.show(getScene().getWindow());
          }
        });
        return zoomButton;
      }
      return null;
View Full Code Here


        stage.setScene(scene);
        stage.show();
       
        Popup popup = new Popup();
        popup.getContent().add(root);
        popup.show(stage);

        //Place the window to an optimal position
        Utils.adjustLocation(popup);
    }
View Full Code Here

            appointment.setSummary("custom popup");
            lAgenda.refresh();
          }
        });
        lPopup.getContent().add(lButton);
        lPopup.show(lImageView, NodeUtil.screenX(lImageView), NodeUtil.screenY(lImageView));
        return null;
      }
    });
       
    // setup appointment groups
View Full Code Here

        lPopup.hide();
      });
    }
   
    // show it just below the menu icon
    lPopup.show(abstractAppointmentPane, NodeUtil.screenX(abstractAppointmentPane), NodeUtil.screenY(abstractAppointmentPane.menuIcon) + abstractAppointmentPane.menuIcon.getHeight());
  }

  // ==================================================================================================================
  // SUPPORT
View Full Code Here

    // add to popup
    lPopup.getContent().add(lBorderPane);
   
    // show it just below the textfield
    textField.setDisable(true);
    lPopup.show(textField, NodeUtil.screenX(getSkinnable()), NodeUtil.screenY(getSkinnable()) + textField.getHeight());

    // move the focus over   
    calendarPicker.requestFocus(); // TODO: not working
  }
}
View Full Code Here

    popUp.getContent().add(mainContent);

    final EventHandler<MouseEvent> enteredEvent = new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent e) {
        popUp.show(getSkinnable(), e.getScreenX() - shift, e.getScreenY() - shift);
        takeSnap(e.getX(), e.getY());
      }
    };
    final EventHandler<MouseEvent> exitedEvent = new EventHandler<MouseEvent>() {
      @Override
View Full Code Here

        area.setMouseOverTextDelay(Duration.ofSeconds(1));
        area.addEventHandler(MouseOverTextEvent.MOUSE_OVER_TEXT_BEGIN, e -> {
            int chIdx = e.getCharacterIndex();
            Point2D pos = e.getScreenPosition();
            popupMsg.setText("Character '" + area.getText(chIdx, chIdx+1) + "' at " + pos);
            popup.show(area, pos.getX(), pos.getY() + 10);
        });
        area.addEventHandler(MouseOverTextEvent.MOUSE_OVER_TEXT_END, e -> {
            popup.hide();
        });
View Full Code Here

        area.setPopupAnchorOffset(new Point2D(4, 4));

        primaryStage.setScene(new Scene(new StackPane(area), 200, 200));
        primaryStage.setTitle("Popup Demo");
        primaryStage.show();
        popup.show(primaryStage);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.