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.

Solution Preview

Following the description given in the question, attached solution ( 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.