How to paint an invisible JFrame elsewhere?

后端 未结 3 1294
無奈伤痛
無奈伤痛 2021-01-23 14:57

I want to paint the contents of a JFrame onto another frame. Currently, I only get it to work if the JFrame is visible.
Is there a way to paint a hidden JFrame?

Addi

3条回答
  •  日久生厌
    2021-01-23 15:25

    I want to get the graphical contents of a frame without having to make the frame visible for the user

    The Screen Image class should help. Although I think it will only work for the "content pane" of the frame and not the entire frame (with the title bar and borders) unless you use a decorated frame.

提交回复
热议问题