如何创建NetBeans工具栏中的自定义按钮? [英] How to create a custom button in Netbeans toolbar?

查看:492
本文介绍了如何创建NetBeans工具栏中的自定义按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个命令行脚本,我救在我的电脑上的文件。我怎样才能创建NB 7.0工具栏按钮,点击此按钮,将运行我保存的脚本?此外,什么文件的扩展名应我的名字我的脚本文件,所以这将是可执行的,或者它在所有问题?

I have a command line script I saved in a file on my PC. How can I create a toolbar button in NB 7.0 so that clicking on this button will run my saved script? Also, what file extension should I name my script file so it will be executable, or does it matter at all?

推荐答案

下面是一个工具栏按钮教程
和你的脚本可以是可以或Java中执行任何东西,NetBeans平台并不限制你以这种方式

Here is a Toolbar button tutorial. And your script can be anything that can be executed in or by Java, the NetBeans Platform does not constrain you in that manner

这篇关于如何创建NetBeans工具栏中的自定义按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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