This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to disable up Folder Icon for this directory as it is the top directory.
But when i create a new folder in the directory and tries to save files to new folder , i want to enable up Folder button.
And also i need to disable the drop down box for Save In.
I need to disable the new Folder button after i created 2 recursive folders in Test Directory.. say Test/ New Folder 1 / New Folder 2. After i add New Folder 2 inside New Folder 1 , i want to disable the new Folder button. How to identify whether i have clicked new Folder button recursively two times..
NB: I can have any number of folders in test directory. But each folder can have only one sub folder inside it.
Perhaps it is an easier idea to subclass FileSystemView and make it a wrapper around the default:
Perhaps you can override createNewFolder to restrict the sub folder levels as well; throw an IOException if it will be one level lower.