User Right clicks on a folder
User Selects "Copy"
Program retrieves the folder that was copied.
Now as far as code, i don't have much in this section. My previous thoughts however was to try something like this:
public void clipboardTest()
{
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable tran = clipboard.getContents(null);
try
{
if(tran != null && tran.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
{
File[] list = (File[]) tran.getTransferData(DataFlavor.javaFileListFlavor);
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
but it clearly didn't work
Is there anyway to accomplish this task? (well clearly there is if you can get the images off of the system clipboard). Or does XP, Vista, and Win7 put that file elsewhere other than the System Clipboard? Any Help is greatly appreciated!

New Topic/Question
Reply



MultiQuote



|