1 голос
 
1233 просмотра
1.04.2017 / 07:12  Aladdin

Увеличить размер окна Javafx

код
  1. primaryStage.setMaximized(true);
увеличивает размер окна во весь экран, как сделать так что был виден панель задач?
Ответы
 
2 голоса
 
# 13.04.2017 / 14:18  DominaN
setMaximized это по сути аналог bordered fullscreen. Попробуй вместо него:
  1. Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
  2. stage.setX(primaryScreenBounds.getMinX());
  3. stage.setY(primaryScreenBounds.getMinY());
  4. stage.setWidth(primaryScreenBounds.getWidth());
  5. stage.setHeight(primaryScreenBounds.getHeight());
Всего: 1

Реклама

Мы в соцсетях

tw tg yt gt