Hello
I have a problem that I cannot solve by myself. I'm making kind of calculator. I wanted to make one general method that handles all events for some buttons, because all of them are similar.

My problem is that in NetBeans code for handling events is generated automatically and I cannot add the same method for several buttons. Is it possible to fix somehow or all I can do is to try it in another IDE?

Thanks for any help.

ehm .. sure
you can choose not to use the WYSIWYG-editor from NetBeans, and write the code yourself: no messy generated code
or, you can create that one method and refer to it from within the by NetBeans generated methods (which still may look a bit messy)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.