0

I have a simple JavaFX stage. It has a default close button on the upper right corner. When user drags mouse over it and wait a while, "Close" tooltip appears. I need to change the text of that tooltip. Is there any way to achieve this?

Here is a screenshot:

Stage Screenshot

Vampire
  • 35,631
  • 4
  • 76
  • 102
  • i am not quite sure about javafx but as i know in swing it is not possible to set the tooltip for that button – XtremeBaumer Dec 02 '16 at 12:26
  • Remove the default buttons and create your own. How to remove default buttons->http://stackoverflow.com/questions/8341305/how-to-remove-javafx-stage-buttons-minimize-maximize-close Help recreating buttons->http://www.programering.com/q/MjN1UTNwATg.html – SedJ601 Dec 02 '16 at 14:52
  • @Sedrick Jefferson, I will probably do that as no other way seems possible. – FShieldheart Dec 03 '16 at 10:36
  • If all you need is a custom close button it is very simple. – SedJ601 Dec 03 '16 at 10:57
  • @Sedrick Jefferson, I know and I will do that. Thanks for your answer. – FShieldheart Dec 03 '16 at 11:04

0 Answers0