Solved

The GUI Should React Whenever the JButton Is Clicked, So

Question 38

Essay

The GUI should react whenever the JButton is clicked, so the JFrame will need an ActionListener. Write the actionPerformed method to implement the ActionListener so that the GUI will compute the cost of the movie when the JButton is clicked. This method will have to obtain the values specified in the JComboBox and the JSlider and output the computed cost in the JLabel. Assume that a Matinee costs $5.00 per ticket, a Rush Hour show $3.50 per ticket and Normal show costs $7.50 per ticket.

Correct Answer:

verifed

Verified

public void actionPerformed(ActionEvent ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions