本文整理了Java中javax.swing.JFileChooser.addAncestorListener()
方法的一些代码示例,展示了JFileChooser.addAncestorListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.addAncestorListener()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:addAncestorListener
暂无
代码示例来源:origin: stanfordnlp/CoreNLP
JFileChooserLocation(JFileChooser jfc) {
this.jfc = jfc;
jfc.addAncestorListener(this);
}
代码示例来源:origin: edu.stanford.nlp/stanford-parser
JFileChooserLocation(JFileChooser jfc) {
this.jfc = jfc;
jfc.addAncestorListener(this);
}
代码示例来源:origin: com.jtattoo/JTattoo
protected void installListeners(JFileChooser fc) {
super.installListeners(fc);
ancestorListener = new AncestorListener() {
public void ancestorAdded(AncestorEvent event) {
Window w = SwingUtilities.getWindowAncestor(getFileChooser());
if (w != null) {
w.setMinimumSize(getPreferredSize(getFileChooser()));
}
}
public void ancestorRemoved(AncestorEvent event) {
}
public void ancestorMoved(AncestorEvent event) {
}
};
fc.addAncestorListener(ancestorListener);
}
内容来源于网络,如有侵权,请联系作者删除!