Finish the JTVDownload application which allows a user to select one of at least five television shows to watch on demand. When the user selects a show, display a brief synopsis. Include an editable combo box and allow the user to type the name of a television show and display an appropriate error message if the desired show is not available.
Finish the JTVDownload application which allows a user to select one of at least five television shows to watch on demand. When the user selects a show, display a brief synopsis. Include an editable combo box and allow the user to type the name of a television show and display an appropriate error message if the desired show is not available.
JTVDownload.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JTVDownload extends JFrame implements ItemListener {
JComboBox<String> programBox = new JComboBox<String>();
JLabel programList = new JLabel("***
JLabel stars = new JLabel("*****************************");
JTextField descripField = new JTextField(20);
String[] progs = {"Breaking Bad",
"Orange is the New Black", "Twilight Zone",
"Parks and Recreation", "Everybody Loves Raymond"
};
String[] descrips = {"", "Teacher becomes meth dealer",
"Life in women's prison",
"Classic science fiction episodes",
"Comedy in local government office",
"Family comedy with meddling in-laws"
};
public JTVDownload() {
// put code here
}
public static void main(String[] arguments) {
JTVDownload frame = new JTVDownload();
frame.setSize(300, 150);
frame.setVisible(true);
}
@Override
public void itemStateChanged(ItemEvent list) {
// put code here
}
}
JTVDownload2.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JTVDownload2 extends JFrame implements ItemListener {
JComboBox<String> programBox = new JComboBox<String>();
JLabel programList = new JLabel("*** Program List ***");
JLabel stars = new JLabel("*****************************");
JTextField descripField = new JTextField(20);
String[] progs = {"Breaking Bad",
"Orange is the New Black", "Twilight Zone",
"Parks and Recreation", "Everybody Loves Raymond"
};
String[] descrips = {"", "Teacher becomes meth dealer",
"Life in women's prison",
"Classic science fiction episodes",
"Comedy in local government office",
"Family comedy with meddling in-laws"
};
public JTVDownload2() {
// put code here
}
public static void main(String[] arguments) {
JTVDownload2 frame = new JTVDownload2();
frame.setSize(350, 150);
frame.setVisible(true);
}
@Override
public void itemStateChanged(ItemEvent list) {
// put code here
}
}
![4 JTVDownload
Program List
*****
***** *** ***
to
Everybody Loves Raymond
Family comedy with meddling in-laws
Dicturor](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6860f727-846a-4aef-a13d-345ae2e9be0e%2Fb212efc8-445d-41cb-b931-d7959ec0cdbe%2Fyfukbk_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)