'How To Round the Corners of a JavaFX Popup
I've seen a few posts about how to round the outer corners of anchorpanes and similar nodes, but I need the functionality provided by popups, and therefore they're the only type of node I can use (or are by far the easiest to use in this case).
I know you can use CSS with a PopupControl to achieve this, but then I can't add nodes to the PopupControl through java classes. Conversely, I can add nodes to a Popup, but cannot apply a stylesheet to it.
Therefore, is there anyway to round the corners of a Popup? Or is there a way to consolidate/link a Popup and a CSS styled PopupControl, considering they both extend PopupWindow? If so, what would the CSS code look like (I'm new to CSS)?
Any help is appreciated. Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
