Mohamed Sanaulla wrote:
nalaka info wrote:
I have created my own nested class action listener by implementing ActionListner class. Now I want some of the buttons in the GUI to be listened by my listener. How can I do that? Properties -> Events do not see my coded listener. There fore I want to by code add my action listener to buttons.
You need not set the Action listener from the UI. What you can do is- after the call to initComponents() [dont know the exact name of the method for initializing components] you can add a line there- button.setActionListener()
Mohamed Sanaulla wrote:I dont know if that is possible right from the Netbeans IDE. But one way which I had followed was to open the source file in a normal editor and then make the changes there.
But for most of the changes- the UI provides an option. What kind of changes/tweaks are you planning to do?