Question: 1. Create a JFrame application that has One JButton labeled AC Milan Another JButton labeled Real Madrid A JLabel with the text Result: 0X 0

1. Create a JFrame application that has One JButton labeled "AC Milan" Another JButton labeled "Real Madrid" A JLabel with the text "Result: 0X 0" A JLabel with the text "Last Scorer: N/A" A Label with the text "Winner: DRAW" Now whenever you click on the AC Milan button, the result will be incremented for AC Milan to become 1 X 0, then 2 X 0. The Last Scorer means the last team to have scored. In this case: AC Milan. And the winner is the team that has more button clicks than the other This is how your program should look like: AC Milan Real Madrid Result: OXO Last Scorer: NIA Winner: Draw AC Milan Real Madrid Result: 1X0 Last Scorer: AC Milan Winner: AC Milan AC Milan Real Madrid Result: 1X0 Last Scorer: AC Milan Winner: AC Milan MatchOMatchDX AC Milan Real Madrid Result: 2x 1 Last Scorer: Real Madrid Winner : AC Milan AC Milan Real Madrid Result: 2x2 Last Scorer: Real Madrid Winner : Draw Scenario: Milan scores two goals, then Madrid scores two goals. 2. Implement a JFrame that has four Buttons that are labeled as follows: Red White. ue *Green Now when the button Red is pressed the main Frame should be colored Red. And so on for the other buttons. (hint: use frame.getcontentPane.setBackground (Color.RED) for coloring the frame red
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
