12:17 PM ooo AT&T; photo library.txt package cmsc131PhotoLibrary; import j awt B
ID: 3805592 • Letter: 1
Question
12:17 PM ooo AT&T; photo library.txt package cmsc131PhotoLibrary; import j awt BorderLayout import j awt .color: import java. awt.event. ActionEvent: import java. awt.event. ActionListener import j avax. swing .JButton import j swing JFrame: import j avax swing. JPanel: import javax.swing. Win dowConstants import javax.swing .JTextAre import javax.swing. JText Field class ImageselectionBox This field is required for any class that implements Serializable private static final long serialversionUID 0; The actual top-level window that will be displayed private JFrame window private JTextArea prompt Box new JTextArea private JTextField inputBox new JTextField(): private JButton button new JButton Get Photo Constructor that sets up the GUI ImageselectionBox (String initialPhoto) create panel for the stuff at the top of the display JPanel top Panel new JPanel. topPanel setLayout (new BorderLayout create the panes that make up the top panel final int NUM PANELS 3 JPanelll layers new JPanel[NUM PANELS]; i NUM PANELs; I++) for (int i layer sli new JPanel() button addAction Listener(new ActionListener() public void actionPerf ormed (ActionEvent e) synchronized (ImageselectionBox.this) ImageselectionBox.this.notifyAll(): inputBox.addaction Listener (new ActionListener public void actionPerformed (ActionEvent e) synchronized (ImageselectionBox.this) 1 of 3Explanation / Answer
Please make sure before changing any code by yourself, first try to compile the given code and check if it has an error or not. Further, Report the same if has errors to your teacher.
Can you tell me what is the acutual error message ? So that I can assist you further.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.