Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stage at the right corner of the screen  RSS feed

 
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: 337
21
  • 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!!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!