“Robot needs to be powered ON to proceed” tooltip

I’m in the process of developing a URCap (in Swing) and I have a button that executes some code requiring the robot to be on.
Now I know I can check robot status and even turn it on if required with the Dashboard interface, but I was wondering if there is a way to display that neat tootltip to let the user know and do it all by himself:

Thanks !