Explore BrainMass

Creating GUI Applications with JFrame

Create a GUI application with JFrame that contains five labels describing reasons that a customer might not buy a specific product (e.g. "too expensive"). Place a JButton on the JFrame, and code its functionality so that every time the user clicks on the button one of the reasons is removed from a label.

© BrainMass Inc. brainmass.com June 22, 2018, 7:04 pm ad1c9bdddf

Solution Preview

Following the description given in the question, attached solution (558735-NotBuyReasons.java) displays 5 labels followed by a button. On clicking ...

Solution Summary

Java version "1.7.0_21" was used during development and testing of the attached program.