Questions from Starting Out With Java


Q: Create an application for Paula’s Portraits, a photography studio. The

Create an application for Paula’s Portraits, a photography studio. The application allows users to compute the price of a photography session. Paula’s base price is $40 for an in-studio photo session...

See Answer

Q: Write an application that instantiates a JFrame that contains a JButton.

Write an application that instantiates a JFrame that contains a JButton. Disable the JButton after the user clicks it. Save the file as JFrameDisableButton.java. b. Modify the JFrameDisableButton prog...

See Answer

Q: Create an application with a JFrame and at least six labels that

Create an application with a JFrame and at least six labels that contain facts about your favorite topic—for example, the French Revolution or astronomy. Every time the user clicks a JButton, remove o...

See Answer

Q: Write an application for Lambert’s Vacation Rentals. Use separate ButtonGroups to

Write an application for Lambert’s Vacation Rentals. Use separate ButtonGroups to allow a client to select one of three locations, the number of bedrooms, and whether meals are included in the rental....

See Answer

Q: In previous chapters, you have created an Event class for Yummy

In previous chapters, you have created an Event class for Yummy Catering. The class contains a default constructor as well as an overloaded constructor that requires an event number (a letter followed...

See Answer

Q: Write an application that allows a user to select one of at

Write an application that 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. Save the file as JTVDownload.java. b...

See Answer

Q: Design an application for the Sublime Sandwich Shop. The user makes

Design an application for the Sublime Sandwich Shop. The user makes sandwich order choices from list boxes, and the application displays the price. The user can choose from three main sandwich ingredi...

See Answer

Q: Write an application that allows a user to select a country from

Write an application that allows a user to select a country from a list box that contains at least seven options. After the user makes a selection, display the country’s capital city. Save the file as...

See Answer

Q: Write an application that allows the user to choose insurance options in

Write an application that allows the user to choose insurance options in JCheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance types—HMO (health maintenance organization...

See Answer

Q: Search the Internet for information about how to use a JTextArea,

Search the Internet for information about how to use a JTextArea, its constructors, and its setText() and append() methods. Write an application that allows the user to select options for a dormitory...

See Answer