Italy
Joined: Nov 17, 2021
Post Count: 466
Status:
Offline
Re: Plugin Load
Maybe you should first understand the workflow.
You have to create at least 2 classes: - a class which extends Plugin; - one or more classes which extend PluginAction. One for each menu entry or toolbar button.
The first class must implement the getActions method, which must return an array of instances of the second classes (one instance for each of them). Each of these instances will be rendered as a menu item or a toolbar button. These classes must implement the execute method which will be called whenever the user clicks on the corresponding menu item/toolbar button. What to do in this method is up to you, you may open a window or shutdown the user's pc, it depends on what your plugin should do.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Plugin Load
You could try to modify the execute method in the Volume plug-in you succeeded to generate, but if you’re new to Java and don’t understand its statements, I fear you won’t go very far. What about learning more Java and Swing on your side first?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Plugin Load
Sorry, even if I teach Java from time to time, my support on this forum doesn’t consist of helping users learning a programming language, and certainly not programming for them.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator