[solved]-Task Assignment Per Course Textbook 17 Page 1022 Slightly Reworded Design Code Swing Gui T Q39034269
he task for this assignment is per the course textbook in §17 onpage 1022 (slightly reworded):
Design and code a Swing GUI for a two-(human)-playertic-tac-toe game on a 3-by-3 game board. The JFramemust use a BorderLayout with a JLabel in the NORTHregion to display messages (e.g., who won the game), and a JPanelin the CENTER region to display the game board. For the game boardin the JPanel, use a GridLayout (or a GridBagLayout) manager with a3-by3 layout of JButton’s in each cell to display the game board.The button labels should initially be blank. When a player clickson an empty button, an appropriate “X” or “O” should be placed inthe label field of the button. If there is a winner (three in arow), then the program should display the winner in the JLabellocated at the top of the window. If all nine cells have beenfilled without a winner, the program should indicate that there isa tie.
Additionally:
- When the user closes the window the program must exitregardless of whether or not the game is over.
- All of your code must be in the comp2120package.
- The class with main() must be called A8. Noother code other than main() must be in A8.java.
- This implies we will be able to compile the code with “javaccomp2120.A8.java” and run it “java comp2120.A8”.
- This implies you will have at least two .java files in thisassignment –but you may well have additional files.
Tips:
- The content presented in §17 will help with thisassignment.
- Do seek help from the assistants!
Expert Answer
Answer to he task for this assignment is per the course textbook in §17 on page 1022 (slightly reworded): Design and code a Swing… . . .
OR

