Home / Expert Answers / Computer Science / code-in-java-the-code-below-creates-a-gui-as-shown-in-the-figure-below-the-constructor-metho-pa230

(Solved): code in Java The code below creates a GUI, as shown in the figure below. The constructor metho ...



student submitted image, transcription available below

code in Java

The code below creates a GUI, as shown in the figure below. The constructor method has been omitted and you must not write it. You must write the actionPerformed() method for this GUI. Page 5 of 8 When the user clicks the "Enter text" button (btnSet), the user is prompted to enter some text using a pop-up window which must then be placed in the textbox (textField). When the user clicks the "Change to UPPERCASE" button (btnUpper), the text in the textbox is changed to uppercase. import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Test extends JFrame implements ActionListener JButton btnUpper, btnSet; JPanel pnlButton, pnlTextBoxes, pnlEnter; JTextField textField; Container ; public static void main(String[] args) \{ Test window new Test () ; window. setVisible(true); \} Test( ) \{ \\ OMITTED \} I\ YOUR ANSWER GOES HERE \}


We have an Answer from Expert

View Expert Answer

Expert Answer




We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe