/******** implementation of focus listener, for slow click rename cancelling ******/
@Override
public void focusGained(FocusEvent e) {
// don't allow to invoke click to rename immediatelly after focus gain
// what may happen is that tree gains focus by mouse
// click on selected item - on some platforms selected item
// is not visible without focus and click to rename will
// be unwanted and surprising for users
// see run method
SwingUtilities.invokeLater(this);
}
DirectoryChooserUI.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录