• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stage at the right corner of the screen

 
Bon Gun
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! When you run a javafx application the Stage is located at the center of the screen, is there a way to translate it at the right corner of the screen?
 
John Damien Smith
Ranch Hand
Posts: 271
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Screen javadoc has some sample code for positioning a stage based on screen co-ordinates.

Here is a slightly modified version to position a stage at the lower right corner of the screen.

 
Bon Gun
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sir!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic