Convert JPanel to image

前端 未结 4 2028
盖世英雄少女心
盖世英雄少女心 2020-12-03 17:12

Is there a way to convert a JPanel (that has not yet been displayed) to a BufferedImage?

thanks,

Jeff

4条回答
  •  难免孤独
    2020-12-03 17:38

    Take a look at BasicTableUI. The cell renderer is drawn on image without showing and then drawn on visible table component.

提交回复
热议问题