Ok so I am struggling to get this done. I know it is very simple but can't find my way around it. If you can help I will be more than thankful.
I have isolated the main problem from the whole Applet so I am presenting just that part of the Applet which is giving me problems:
Objective: To have two drop down boxes and a button to get their values and display them, so i can pass the variables to another class for complex calculations - simple I am just concerned about getting two values from drop down boxes here is the code:
/*BELOW ARE ALL THE METHODS I HAVE BEEN TRYING THIS IS WHERE I NEED HELP TO GET THE VALUE OF BOTH THE DROP DOWN BOXES AND ADD THEM. It compiles gracefully but at execution I get the NULL POINTER EXCEPTION */