I am trying to take screeshots of any file open currently on screen. After google all i got is to take screenshot of scene only in javafx. I don't want to use any AWT or Swing component. So is there any way ?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
This is the main mechanism I have used: A transparent
Stage
with TransparentCanvas
which has aBorderPane
with Opacity0.1
Here is the simple example (it is just for selecting areas...):
WHEN YOU START THE APP THE ONLY WAY TO CLOSE IT IS USING ESCAPE
Tester class:
Capture Window class:
Here is a full advanced example.It is part of a GitHub Project Here . You can clone the project and modify on your needs.