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?
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
In addition to Tim's answer, you can create a simple shortcut to an Ant target, as outlined in the Netbeans Wiki:
This can be used to create a menu item, toolbar button, keyboard shortcut or a custom Ant "mini-script."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With