(资料图片)
1、ActionListener al = new ActionListener();font.addActionListener(al);class font.addActionListener(){public void actionPerformed(ActionEvent e){fileColor_actionPerformed(e); }}他这里添加监听是用匿名内部类来实现的。
本文就为大家分享到这里,希望小伙伴们会喜欢。
关键词:
Copyright 2015-2022 北方食品网 版权所有 备案号:京ICP备2021034106号-50 联系邮箱: 55 16 53 8@qq.com