Discussion 1:
Compare Swing Java GUI components to AWT components. Explain at least one way the components are similar and at least one way they are different. Provide examples to support your rationale.

Discussion 2:
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.
You need to submit original .java files as an attachment to your initial response. (Please do not copy/paste the whole file code into your response.) Zip them into a single .zip file and attach the .zip file to your post. In the initial response itself, please provide comments and explanations of your solution.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public class Discussion1 extends JFrame implements ActionListener{

    private Button awt;
    private JButton swing;
    private JLabel output;
    private Container con;
    public Discussion1() {
       super("Dicussion 1");
       setSize(100,150);; // windows size
       setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // closed operation
       setLayout(new FlowLayout());
       swing = new JButton("Swing button");
       awt = new Button("AWT button ");
       output = new JLabel();
       // add(swing);
$40.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats