<prompt> Matumizi ya maktaba Java kuunda interface GUI ambayo inaonyesha sanduku maandishi na kifungo wasilisha.  <response>: Here is an example code using Java Swing library to create a GUI with a text box and a button:import javax.swing.;public class MyGUI public static void mainString args JFrame frame new JFrameMy GUI; frame.setSize300, 200; frame.setDefaultCloseOperationJFrame.EXIT_ON_CLOSE; JPanel panel new JPanel; JTextField textField new JTextField20; panel.addtextField; JButton submitButton new JButtonSubmit; panel.addsubmitButton; frame.addpanel; frame.setVisibletrue; This code creates a window with a title My GUI and sets its size to 300 pixels wide and 200 pixels tall. It creates a panel, adds a text box and a button to the panel, and then adds the panel to the window. Finally, it sets the visibility of the window to true so that it is displayed on the screen. 