如果目录中文件的数量发生变化,则通知按钮 [英] Notify a Button if the number of files in a directory change
本文介绍了如果目录中文件的数量发生变化,则通知按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只要目录中没有特定数量的文件,就有一个要禁用的按钮。
目前有什么样的监听程序通知我一个文件被创建或删除了吗?
I have a button that I want to disable as long as there isn't a specific number of files in a directory. Is there some kind of listener that notifies me at the moment a file is created or deleted in a directory?
推荐答案
Java 7将支持文件系统事件内置。
Java 7 will have file system event support built into it.
这篇关于如果目录中文件的数量发生变化,则通知按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文