关于setActionCommand方法 [英] about setActionCommand method

查看:109
本文介绍了关于setActionCommand方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是java的初学者

我需要了解更多关于

button.setActionCommand(String command)

我需要一个读取变量值的命令,或者从文本文件中读取整数

I need a command that read variable value, or read integers from text file

提前超过

推荐答案

以下是全部你需要知道按钮中的 setActionCommand()方法/docs.oracle.com/javase/7/docs/api/java/awt/Button.html#setActionCommand%28java.lang.String%29rel =nofollow> javadocs 。现在我们就是这样,我宁愿建议你使用 JButton 而不是。

Here's all you need to know about the setActionCommand() method in a Button, in the javadocs. Now that we're at it, I'd rather recommend you use JButton instead.

请检查教程,这是你学习新编程语言时最好的。

And please check a tutorial, it's the best you can do when you're learning a new programming language.

这篇关于关于setActionCommand方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆