I have an applet program here that allows the user to choose a movie then a number of tickets from a drop-down list. A check box should display for users to click so they can receive a discount for matinee movies. The user should be able to click a calculate price button to display the total cost and a clear button to clear each drop-down list and the check box. The program compiled but when I clicked the calculate button, it generated so many error codes like java.lang.nullPointerException and a lot more. I just wanted the program to work properly so please help me. Please refer to the code below:
The applet code:
Pardon me for the clumsy design because I didn't create a layout manager. I very much welcome tips and comments to further improve the code for this program. Thank you so much!
The applet code:
Pardon me for the clumsy design because I didn't create a layout manager. I very much welcome tips and comments to further improve the code for this program. Thank you so much!