title: How to do I configure a JavaFX Window to float above the Mac OSX Dock/Menubar?
body: <p>I am attempting to create a transparent borderless JavaFX window/overlay on Mac OSX to allow users to select an area of the screen via drawing a rectangle and then screenshotting that area. </p>
  
  <p>In order to do this on OSX, I must somehow configure my JavaFX window to float above the Mac OSX Dock/Menubar, as the window is automatically forced underneath both by default. By this, I mean I cannot drag a window <strong>over the dock or menu bar</strong> as it is forced underneath it, making a proper overlay very difficult to achieve.</p>
  
  <p>How can I configure a JavaFX window's level similar to that of the NSWindow level via Cocoa? </p>
  
  <p>The screenshots below (taken from a similar Electron-related post) highlight the issue and what I aim to achieve:</p>
  
  <p>Current Result: <a href="https://i.stack.imgur.com/nmGvG.png" rel="nofollow noreferrer">https://i.stack.imgur.com/nmGvG.png</a></p>
  
  <p>Intented Result: <a href="https://i.stack.imgur.com/kD6MR.png" rel="nofollow noreferrer">https://i.stack.imgur.com/kD6MR.png</a></p>