Write a graphical user interface (
GUI) for any class implementing the Queue<String> interface. The
GUI should look roughly like the figure below (it doesn't matter if it looks exactly like that, so long as all the components are there). On the top row, from left to right, we have a JTextField and two buttons – when the “enter” button is clicked, the text in the JTextField is entered into the queue. On the second row, we have a JTextField – when the “exit” button is clicked, this JTextField displays the string that exits the queue; however, if the queue is empty when “exit” is clicked, then this field displays “(empty)”.