I have an application that is developed in Java swing and the NetBens 7 IDE
Steps:
I want to use a Jbutton to perform two different functions depending on the user mode. for example I want to label a single button with the following text "New Record" and "Exit New Record"
The default text is the "New Record". This will enable the user enter new record.
Whiles in the new record mode, the text on the jButton changes to "Exit New Record". To exit the new record mode the user clicks on the same button to exit.
This will then change the text on button to the default enter "Enter New Record"
Is there any suggestion on how to do this with the netbeans IDE or do I manually override a method?