I am working with a Java Application. In this, I must copy a file from source to Multiple Destinations. The destinations are various USB drives. (ie) I’m copying a file for desktop and sending to a number of USB drives. Here, my problem is, I am sending files to all USB drives I attached, now I need to make the files UN-deletable. The undeletable process will be done in a single event. For example once I click the ok button, the Files, which are present in all USB drives are made undeletable. Any idea how to do this.
Share
When copying source file to other files, put the destination
Fileobjects in a collection. Then, in the event handler for your ‘set read only’ button, loop over that collection and callsetReadOnly()on each File.