Create JInternalFrames and save the one which is selected

前端 未结 1 1910
花落未央
花落未央 2021-01-26 12:10

I am learning Java now and I was wondering how to create JInternalFrames in a JFrame and save them as files. I draw some objects on the internal frames and I have a button \'Sav

相关标签:
1条回答
  • 2021-01-26 12:51
    1. Read the JDesktopPane API. You will find a method that will get you the currenctly selected internal frame.

    2. Check out Screen Image. This will allow you to create an image of any Swing component. It will also allow you to save this image to a file.

    0 讨论(0)
提交回复
热议问题