java - 在代码中调用 ActionListener 的 actionPerformed() 的地方
问题描述
这是处理按钮单击的代码:
JButton button = new JButton();
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// handle the button click
}
});
我知道actionPerfomed
当用户单击按钮时会调用它。但是在 Java 源代码库中哪里可以找到调用呢?所有的魔法发生在哪里?
解决方案
推荐阅读
- android - 在 React-native-video 中,一些视频无法在三星设备中播放
- node.js - 我们可以在 TypeORM 中为来自不同数据库的表创建一个联合表吗?
- api - 我怎样才能将这个 curl 作为 tcl/http 发送呢?
- r - 按列查找两个数据框之间的差异不起作用
- python - Python gnupg encrypt_file(StringIO()) 创建内容为空的加密 PGP 消息?
- visual-studio - 为什么我不能在 Visual Studio 中将我的 NuGet 包添加到我的应用程序?
- google-api - Google Search Console API:如何解决“用户没有足够的站点权限”?(当用户有权限时)
- c++ - C++中priority_queue的时间复杂度
- sql-server - 扩展事件检测语句何时导致更新
- python - 生成折线图时轴值重叠